RoutingPreference Class

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

Implements

public final class RoutingPreference
implements JsonSerializable<RoutingPreference>

Routing preference defines the type of network, either microsoft or internet routing to be used to deliver the user data, the default option is microsoft routing.

Constructor Summary

Constructor Description
RoutingPreference()

Creates an instance of RoutingPreference class.

Method Summary

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

Reads an instance of RoutingPreference from the JsonReader.

Boolean publishInternetEndpoints()

Get the publishInternetEndpoints property: A boolean flag which indicates whether internet routing storage endpoints are to be published.

Boolean publishMicrosoftEndpoints()

Get the publishMicrosoftEndpoints property: A boolean flag which indicates whether microsoft routing storage endpoints are to be published.

RoutingChoice routingChoice()

Get the routingChoice property: Routing Choice defines the kind of network routing opted by the user.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RoutingPreference withPublishInternetEndpoints(Boolean publishInternetEndpoints)

Set the publishInternetEndpoints property: A boolean flag which indicates whether internet routing storage endpoints are to be published.

RoutingPreference withPublishMicrosoftEndpoints(Boolean publishMicrosoftEndpoints)

Set the publishMicrosoftEndpoints property: A boolean flag which indicates whether microsoft routing storage endpoints are to be published.

RoutingPreference withRoutingChoice(RoutingChoice routingChoice)

Set the routingChoice property: Routing Choice defines the kind of network routing opted by the user.

Methods inherited from java.lang.Object

Constructor Details

RoutingPreference

public RoutingPreference()

Creates an instance of RoutingPreference class.

Method Details

fromJson

public static RoutingPreference fromJson(JsonReader jsonReader)

Reads an instance of RoutingPreference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RoutingPreference 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 RoutingPreference.

publishInternetEndpoints

public Boolean publishInternetEndpoints()

Get the publishInternetEndpoints property: A boolean flag which indicates whether internet routing storage endpoints are to be published.

Returns:

the publishInternetEndpoints value.

publishMicrosoftEndpoints

public Boolean publishMicrosoftEndpoints()

Get the publishMicrosoftEndpoints property: A boolean flag which indicates whether microsoft routing storage endpoints are to be published.

Returns:

the publishMicrosoftEndpoints value.

routingChoice

public RoutingChoice routingChoice()

Get the routingChoice property: Routing Choice defines the kind of network routing opted by the user.

Returns:

the routingChoice value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPublishInternetEndpoints

public RoutingPreference withPublishInternetEndpoints(Boolean publishInternetEndpoints)

Set the publishInternetEndpoints property: A boolean flag which indicates whether internet routing storage endpoints are to be published.

Parameters:

publishInternetEndpoints - the publishInternetEndpoints value to set.

Returns:

the RoutingPreference object itself.

withPublishMicrosoftEndpoints

public RoutingPreference withPublishMicrosoftEndpoints(Boolean publishMicrosoftEndpoints)

Set the publishMicrosoftEndpoints property: A boolean flag which indicates whether microsoft routing storage endpoints are to be published.

Parameters:

publishMicrosoftEndpoints - the publishMicrosoftEndpoints value to set.

Returns:

the RoutingPreference object itself.

withRoutingChoice

public RoutingPreference withRoutingChoice(RoutingChoice routingChoice)

Set the routingChoice property: Routing Choice defines the kind of network routing opted by the user.

Parameters:

routingChoice - the routingChoice value to set.

Returns:

the RoutingPreference object itself.

Applies to