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 Summary
ConstructorsConstructorDescriptionCreates an instance of DualStackEndpointPreference class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DualStackEndpointPreferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DualStackEndpointPreference from the JsonReader.Get the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be published.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPublishIpv6Endpoint(Boolean publishIpv6Endpoint) Set the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be published.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DualStackEndpointPreference
public DualStackEndpointPreference()Creates an instance of DualStackEndpointPreference class.
-
-
Method Details
-
publishIpv6Endpoint
Get the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be published.- Returns:
- the publishIpv6Endpoint value.
-
withPublishIpv6Endpoint
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
- Specified by:
toJsonin interfacecom.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.
-