CloudServiceRoleSku Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CloudServiceRoleSku
- com.
Implements
public final class CloudServiceRoleSku
implements JsonSerializable<CloudServiceRoleSku>
Describes the cloud service role sku.
Constructor Summary
Constructor | Description |
---|---|
CloudServiceRoleSku() |
Creates an instance of Cloud |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
capacity()
Get the capacity property: Specifies the number of role instances in the cloud service. |
static
Cloud |
fromJson(JsonReader jsonReader)
Reads an instance of Cloud |
String |
name()
Get the name property: The sku name. |
String |
tier()
Get the tier property: Specifies the tier of the cloud service. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cloud |
withCapacity(Long capacity)
Set the capacity property: Specifies the number of role instances in the cloud service. |
Cloud |
withName(String name)
Set the name property: The sku name. |
Cloud |
withTier(String tier)
Set the tier property: Specifies the tier of the cloud service. |
Methods inherited from java.lang.Object
Constructor Details
CloudServiceRoleSku
public CloudServiceRoleSku()
Creates an instance of CloudServiceRoleSku class.
Method Details
capacity
public Long capacity()
Get the capacity property: Specifies the number of role instances in the cloud service.
Returns:
fromJson
public static CloudServiceRoleSku fromJson(JsonReader jsonReader)
Reads an instance of CloudServiceRoleSku from the JsonReader.
Parameters:
Returns:
Throws:
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:
tier
public String tier()
Get the tier property: Specifies the tier of the cloud service. Possible Values are
**Standard**
**Basic**.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCapacity
public CloudServiceRoleSku withCapacity(Long capacity)
Set the capacity property: Specifies the number of role instances in the cloud service.
Parameters:
Returns:
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:
Returns:
withTier
public CloudServiceRoleSku withTier(String tier)
Set the tier property: Specifies the tier of the cloud service. Possible Values are
**Standard**
**Basic**.
Parameters:
Returns:
Applies to
Azure SDK for Java