java.lang.Object
com.azure.resourcemanager.datamigration.models.ServiceSku

public final class ServiceSku extends Object
An Azure SKU instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ServiceSku class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the capacity property: The capacity of the SKU, if it supports scaling.
    Get the family property: The SKU family, used when the service has multiple performance classes within a tier, such as 'A', 'D', etc.
    Get the name property: The unique name of the SKU, such as 'P3'.
    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.
    Get the tier property: The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'.
    void
    Validates the instance.
    Set the capacity property: The capacity of the SKU, if it supports scaling.
    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'.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServiceSku

      public ServiceSku()
      Creates an instance of ServiceSku class.
  • Method Details

    • name

      public String name()
      Get the name property: The unique name of the SKU, such as 'P3'.
      Returns:
      the name value.
    • withName

      public ServiceSku withName(String name)
      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

      public String tier()
      Get the tier property: The tier of the SKU, such as 'Free', 'Basic', 'Standard', or 'Premium'.
      Returns:
      the tier value.
    • withTier

      public ServiceSku withTier(String tier)
      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

      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:
      the family value.
    • 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:
      family - the family value to set.
      Returns:
      the ServiceSku object itself.
    • 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:
      the size value.
    • 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:
      size - the size value to set.
      Returns:
      the ServiceSku object itself.
    • capacity

      public Integer capacity()
      Get the capacity property: The capacity of the SKU, if it supports scaling.
      Returns:
      the capacity value.
    • withCapacity

      public ServiceSku withCapacity(Integer capacity)
      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.