Class ResourceSkuRestrictions

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

public final class ResourceSkuRestrictions extends Object implements com.azure.json.JsonSerializable<ResourceSkuRestrictions>
Describes scaling information of a SKU.
  • Constructor Details

    • ResourceSkuRestrictions

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

    • type

      Get the type property: The type of restrictions.
      Returns:
      the type value.
    • values

      public List<String> values()
      Get the values property: The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
      Returns:
      the values value.
    • restrictionInfo

      public ResourceSkuRestrictionInfo restrictionInfo()
      Get the restrictionInfo property: The information about the restriction where the SKU cannot be used.
      Returns:
      the restrictionInfo value.
    • reasonCode

      public ResourceSkuRestrictionsReasonCode reasonCode()
      Get the reasonCode property: The reason for restriction.
      Returns:
      the reasonCode 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<ResourceSkuRestrictions>
      Throws:
      IOException
    • fromJson

      public static ResourceSkuRestrictions fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResourceSkuRestrictions from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResourceSkuRestrictions 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 ResourceSkuRestrictions.