Class ServiceSku
java.lang.Object
com.azure.resourcemanager.datamigration.models.ServiceSku
An Azure SKU instance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncapacity()
Get the capacity property: The capacity of the SKU, if it supports scaling.family()
Get the family property: The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc.name()
Get the name property: The unique name of the SKU, such as 'P3'.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.tier()
Get the tier property: The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'.void
validate()
Validates the instance.withCapacity
(Integer capacity) Set the capacity property: The capacity of the SKU, if it supports scaling.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.Set the name property: The unique name of the SKU, such as 'P3'.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.Set the tier property: The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'.
-
Constructor Details
-
ServiceSku
public ServiceSku()Creates an instance of ServiceSku class.
-
-
Method Details
-
name
Get the name property: The unique name of the SKU, such as 'P3'.- Returns:
- the name value.
-
withName
Set the name property: The unique name of the SKU, such as 'P3'.- Parameters:
name
- the name value to set.- Returns:
- the ServiceSku object itself.
-
tier
Get the tier property: The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'.- Returns:
- the tier value.
-
withTier
Set the tier property: The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'.- Parameters:
tier
- the tier value to set.- Returns:
- the ServiceSku object itself.
-
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:
- the family value.
-
withFamily
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:
family
- the family value to set.- Returns:
- the ServiceSku object itself.
-
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:
- the size value.
-
withSize
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:
size
- the size value to set.- Returns:
- the ServiceSku object itself.
-
capacity
Get the capacity property: The capacity of the SKU, if it supports scaling.- Returns:
- the capacity value.
-
withCapacity
Set the capacity property: The capacity of the SKU, if it supports scaling.- Parameters:
capacity
- the capacity value to set.- Returns:
- the ServiceSku object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-