Class RoutingPreference
java.lang.Object
com.azure.resourcemanager.storage.models.RoutingPreference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RoutingPreference>
public final class RoutingPreference
extends Object
implements com.azure.json.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RoutingPreferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoutingPreference from the JsonReader.Get the publishInternetEndpoints property: A boolean flag which indicates whether internet routing storage endpoints are to be published.Get the publishMicrosoftEndpoints property: A boolean flag which indicates whether microsoft routing storage endpoints are to be published.Get the routingChoice property: Routing Choice defines the kind of network routing opted by the user.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPublishInternetEndpoints(Boolean publishInternetEndpoints) Set the publishInternetEndpoints property: A boolean flag which indicates whether internet routing storage endpoints are to be published.withPublishMicrosoftEndpoints(Boolean publishMicrosoftEndpoints) Set the publishMicrosoftEndpoints property: A boolean flag which indicates whether microsoft routing storage endpoints are to be published.withRoutingChoice(RoutingChoice routingChoice) Set the routingChoice property: Routing Choice defines the kind of network routing opted by the user.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
-
RoutingPreference
public RoutingPreference()Creates an instance of RoutingPreference class.
-
-
Method Details
-
routingChoice
Get the routingChoice property: Routing Choice defines the kind of network routing opted by the user.- Returns:
- the routingChoice value.
-
withRoutingChoice
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.
-
publishMicrosoftEndpoints
Get the publishMicrosoftEndpoints property: A boolean flag which indicates whether microsoft routing storage endpoints are to be published.- Returns:
- the publishMicrosoftEndpoints value.
-
withPublishMicrosoftEndpoints
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.
-
publishInternetEndpoints
Get the publishInternetEndpoints property: A boolean flag which indicates whether internet routing storage endpoints are to be published.- Returns:
- the publishInternetEndpoints value.
-
withPublishInternetEndpoints
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RoutingPreference>- Throws:
IOException
-
fromJson
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.
-