Class QuotaBaseProperties
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.QuotaBaseProperties
-
public final class QuotaBaseProperties extends Object
The properties for Quota update or retrieval.
-
-
Constructor Summary
Constructors Constructor Description QuotaBaseProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
id()
Get the id property: Specifies the resource ID.Long
limit()
Get the limit property: Limit.String
type()
Get the type property: Specifies the resource type.QuotaUnit
unit()
Get the unit property: An enum describing the unit of quota measurement.void
validate()
Validates the instance.QuotaBaseProperties
withId(String id)
Set the id property: Specifies the resource ID.QuotaBaseProperties
withLimit(Long limit)
Set the limit property: Limit.QuotaBaseProperties
withType(String type)
Set the type property: Specifies the resource type.QuotaBaseProperties
withUnit(QuotaUnit unit)
Set the unit property: An enum describing the unit of quota measurement.
-
-
-
Method Detail
-
id
public String id()
Get the id property: Specifies the resource ID.- Returns:
- the id value.
-
withId
public QuotaBaseProperties withId(String id)
Set the id property: Specifies the resource ID.- Parameters:
id
- the id value to set.- Returns:
- the QuotaBaseProperties object itself.
-
type
public String type()
Get the type property: Specifies the resource type.- Returns:
- the type value.
-
withType
public QuotaBaseProperties withType(String type)
Set the type property: Specifies the resource type.- Parameters:
type
- the type value to set.- Returns:
- the QuotaBaseProperties object itself.
-
limit
public Long limit()
Get the limit property: Limit. The maximum permitted quota of the resource.- Returns:
- the limit value.
-
withLimit
public QuotaBaseProperties withLimit(Long limit)
Set the limit property: Limit. The maximum permitted quota of the resource.- Parameters:
limit
- the limit value to set.- Returns:
- the QuotaBaseProperties object itself.
-
unit
public QuotaUnit unit()
Get the unit property: An enum describing the unit of quota measurement.- Returns:
- the unit value.
-
withUnit
public QuotaBaseProperties withUnit(QuotaUnit unit)
Set the unit property: An enum describing the unit of quota measurement.- Parameters:
unit
- the unit value to set.- Returns:
- the QuotaBaseProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-