Freigeben über


DualStackEndpointPreference Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.DualStackEndpointPreference

Implements

public final class DualStackEndpointPreference
implements JsonSerializable<DualStackEndpointPreference>

Dual-stack endpoint preference defines whether IPv6 endpoints are going to be published.

Constructor Summary

Constructor Description
DualStackEndpointPreference()

Creates an instance of DualStackEndpointPreference class.

Method Summary

Modifier and Type Method and Description
static DualStackEndpointPreference fromJson(JsonReader jsonReader)

Reads an instance of DualStackEndpointPreference from the JsonReader.

Boolean publishIpv6Endpoint()

Get the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be published.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DualStackEndpointPreference withPublishIpv6Endpoint(Boolean publishIpv6Endpoint)

Set the publishIpv6Endpoint property: A boolean flag which indicates whether IPv6 storage endpoints are to be published.

Methods inherited from java.lang.Object

Constructor Details

DualStackEndpointPreference

public DualStackEndpointPreference()

Creates an instance of DualStackEndpointPreference class.

Method Details

fromJson

public static DualStackEndpointPreference fromJson(JsonReader jsonReader)

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

Applies to