Class SkuSetting
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.SkuSetting
-
public final class SkuSetting extends Object
SkuSetting fulfills the need for stripped down SKU info in ARM contract.
-
-
Constructor Summary
Constructors Constructor Description SkuSetting()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Get the name property: [Required] The name of the SKU.SkuTier
tier()
Get the tier property: This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.void
validate()
Validates the instance.SkuSetting
withName(String name)
Set the name property: [Required] The name of the SKU.SkuSetting
withTier(SkuTier tier)
Set the tier property: This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
-
-
-
Method Detail
-
name
public String name()
Get the name property: [Required] The name of the SKU. Ex - P3. It is typically a letter+number code.- Returns:
- the name value.
-
withName
public SkuSetting withName(String name)
Set the name property: [Required] The name of the SKU. Ex - P3. It is typically a letter+number code.- Parameters:
name
- the name value to set.- Returns:
- the SkuSetting object itself.
-
tier
public SkuTier tier()
Get the tier property: This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.- Returns:
- the tier value.
-
withTier
public SkuSetting withTier(SkuTier tier)
Set the tier property: This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.- Parameters:
tier
- the tier value to set.- Returns:
- the SkuSetting object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-