Class ResourceSkuInner

java.lang.Object
com.azure.resourcemanager.compute.fluent.models.ResourceSkuInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceSkuInner>

public final class ResourceSkuInner extends Object implements com.azure.json.JsonSerializable<ResourceSkuInner>
Describes an available Compute SKU.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the apiVersions property: The api versions that support this SKU.
    Get the capabilities property: A name value pair to describe the capability.
    Get the capacity property: Specifies the number of virtual machines in the scale set.
    Get the costs property: Metadata for retrieving price info.
    Get the family property: The Family of this particular SKU.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ResourceSkuInner from the JsonReader.
    Get the kind property: The Kind of resources that are supported in this SKU.
    Get the locationInfo property: A list of locations and availability zones in those locations where the SKU is available.
    Get the locations property: The set of locations that the SKU is available.
    Get the name property: The name of SKU.
    Get the resourceType property: The type of resource the SKU applies to.
    Get the restrictions property: The restrictions because of which SKU cannot be used.
    Get the size property: The Size of the SKU.
    Get the tier property: Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ResourceSkuInner

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

    • resourceType

      public String resourceType()
      Get the resourceType property: The type of resource the SKU applies to.
      Returns:
      the resourceType value.
    • name

      public String name()
      Get the name property: The name of SKU.
      Returns:
      the name value.
    • tier

      public String tier()
      Get the tier property: Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**.
      Returns:
      the tier value.
    • size

      public String size()
      Get the size property: The Size of the SKU.
      Returns:
      the size value.
    • family

      public String family()
      Get the family property: The Family of this particular SKU.
      Returns:
      the family value.
    • kind

      public String kind()
      Get the kind property: The Kind of resources that are supported in this SKU.
      Returns:
      the kind value.
    • capacity

      public ResourceSkuCapacity capacity()
      Get the capacity property: Specifies the number of virtual machines in the scale set.
      Returns:
      the capacity value.
    • locations

      public List<String> locations()
      Get the locations property: The set of locations that the SKU is available.
      Returns:
      the locations value.
    • locationInfo

      public List<ResourceSkuLocationInfo> locationInfo()
      Get the locationInfo property: A list of locations and availability zones in those locations where the SKU is available.
      Returns:
      the locationInfo value.
    • apiVersions

      public List<String> apiVersions()
      Get the apiVersions property: The api versions that support this SKU.
      Returns:
      the apiVersions value.
    • costs

      public List<ResourceSkuCosts> costs()
      Get the costs property: Metadata for retrieving price info.
      Returns:
      the costs value.
    • capabilities

      public List<ResourceSkuCapabilities> capabilities()
      Get the capabilities property: A name value pair to describe the capability.
      Returns:
      the capabilities value.
    • restrictions

      public List<ResourceSkuRestrictions> restrictions()
      Get the restrictions property: The restrictions because of which SKU cannot be used. This is empty if there are no restrictions.
      Returns:
      the restrictions value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResourceSkuInner>
      Throws:
      IOException
    • fromJson

      public static ResourceSkuInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResourceSkuInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResourceSkuInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ResourceSkuInner.