Class CloudServiceRoleSku
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.CloudServiceRoleSku
-
public final class CloudServiceRoleSku extends Object
Describes the cloud service role sku.
-
-
Constructor Summary
Constructors Constructor Description CloudServiceRoleSku()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longcapacity()Get the capacity property: Specifies the number of role instances in the cloud service.Stringname()Get the name property: The sku name.Stringtier()Get the tier property: Specifies the tier of the cloud service.voidvalidate()Validates the instance.CloudServiceRoleSkuwithCapacity(Long capacity)Set the capacity property: Specifies the number of role instances in the cloud service.CloudServiceRoleSkuwithName(String name)Set the name property: The sku name.CloudServiceRoleSkuwithTier(String tier)Set the tier property: Specifies the tier of the cloud service.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.- Returns:
- the name value.
-
withName
public CloudServiceRoleSku withName(String name)
Set the name property: The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.- Parameters:
name- the name value to set.- Returns:
- the CloudServiceRoleSku object itself.
-
tier
public String tier()
Get the tier property: Specifies the tier of the cloud service. Possible Values are <br /><br /> **Standard** <br /><br /> **Basic**.- Returns:
- the tier value.
-
withTier
public CloudServiceRoleSku withTier(String tier)
Set the tier property: Specifies the tier of the cloud service. Possible Values are <br /><br /> **Standard** <br /><br /> **Basic**.- Parameters:
tier- the tier value to set.- Returns:
- the CloudServiceRoleSku object itself.
-
capacity
public Long capacity()
Get the capacity property: Specifies the number of role instances in the cloud service.- Returns:
- the capacity value.
-
withCapacity
public CloudServiceRoleSku withCapacity(Long capacity)
Set the capacity property: Specifies the number of role instances in the cloud service.- Parameters:
capacity- the capacity value to set.- Returns:
- the CloudServiceRoleSku object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-