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 Details

    • RoutingPreference

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

    • routingChoice

      public RoutingChoice routingChoice()
      Get the routingChoice property: Routing Choice defines the kind of network routing opted by the user.
      Returns:
      the routingChoice value.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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<RoutingPreference>
      Throws:
      IOException
    • fromJson

      public static RoutingPreference fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.