Class PublicIpAddressSku

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

public final class PublicIpAddressSku extends Object implements com.azure.json.JsonSerializable<PublicIpAddressSku>
Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.
  • Constructor Details

    • PublicIpAddressSku

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

    • name

      public PublicIpAddressSkuName name()
      Get the name property: Specify public IP sku name.
      Returns:
      the name value.
    • withName

      Set the name property: Specify public IP sku name.
      Parameters:
      name - the name value to set.
      Returns:
      the PublicIpAddressSku object itself.
    • tier

      public PublicIpAddressSkuTier tier()
      Get the tier property: Specify public IP sku tier.
      Returns:
      the tier value.
    • withTier

      Set the tier property: Specify public IP sku tier.
      Parameters:
      tier - the tier value to set.
      Returns:
      the PublicIpAddressSku object itself.
    • 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<PublicIpAddressSku>
      Throws:
      IOException
    • fromJson

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