Class DualStackEndpointPreference

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

public final class DualStackEndpointPreference extends Object implements com.azure.json.JsonSerializable<DualStackEndpointPreference>
Dual-stack endpoint preference defines whether IPv6 endpoints are going to be published.
  • Constructor Details

    • DualStackEndpointPreference

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

    • publishIpv6Endpoint

      public Boolean publishIpv6Endpoint()
      Get the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be published.
      Returns:
      the publishIpv6Endpoint value.
    • withPublishIpv6Endpoint

      public DualStackEndpointPreference withPublishIpv6Endpoint(Boolean publishIpv6Endpoint)
      Set the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be published.
      Parameters:
      publishIpv6Endpoint - the publishIpv6Endpoint value to set.
      Returns:
      the DualStackEndpointPreference 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<DualStackEndpointPreference>
      Throws:
      IOException
    • fromJson

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