ServiceSku Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. ServiceSku
- com.
Implements
public final class ServiceSku
implements JsonSerializable<ServiceSku>
An Azure SKU instance.
Constructor Summary
| Constructor | Description |
|---|---|
| ServiceSku() |
Creates an instance of Service |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
capacity()
Get the capacity property: The capacity of the SKU, if it supports scaling. |
| String |
family()
Get the family property: The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. |
|
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
| String |
name()
Get the name property: The unique name of the SKU, such as 'P3'. |
| String |
size()
Get the size property: The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e. |
| String |
tier()
Get the tier property: The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Service |
withCapacity(Integer capacity)
Set the capacity property: The capacity of the SKU, if it supports scaling. |
|
Service |
withFamily(String family)
Set the family property: The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. |
|
Service |
withName(String name)
Set the name property: The unique name of the SKU, such as 'P3'. |
|
Service |
withSize(String size)
Set the size property: The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e. |
|
Service |
withTier(String tier)
Set the tier property: The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'. |
Methods inherited from java.lang.Object
Constructor Details
ServiceSku
public ServiceSku()
Creates an instance of ServiceSku class.
Method Details
capacity
public Integer capacity()
Get the capacity property: The capacity of the SKU, if it supports scaling.
Returns:
family
public String family()
Get the family property: The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual machines.
Returns:
fromJson
public static ServiceSku fromJson(JsonReader jsonReader)
Reads an instance of ServiceSku from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The unique name of the SKU, such as 'P3'.
Returns:
size
public String size()
Get the size property: The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines.
Returns:
tier
public String tier()
Get the tier property: The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCapacity
public ServiceSku withCapacity(Integer capacity)
Set the capacity property: The capacity of the SKU, if it supports scaling.
Parameters:
Returns:
withFamily
public ServiceSku withFamily(String family)
Set the family property: The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc. for virtual machines.
Parameters:
Returns:
withName
public ServiceSku withName(String name)
Set the name property: The unique name of the SKU, such as 'P3'.
Parameters:
Returns:
withSize
public ServiceSku withSize(String size)
Set the size property: The size of the SKU, used when the name alone does not denote a service size or when a SKU has multiple performance classes within a family, e.g. 'A1' for virtual machines.
Parameters:
Returns:
withTier
public ServiceSku withTier(String tier)
Set the tier property: The tier of the SKU, such as 'Basic', 'General Purpose', or 'Business Critical'.
Parameters:
Returns: