Class RoutingRuleRouteDestination

java.lang.Object
com.azure.resourcemanager.network.models.RoutingRuleRouteDestination
All Implemented Interfaces:
com.azure.json.JsonSerializable<RoutingRuleRouteDestination>

public final class RoutingRuleRouteDestination extends Object implements com.azure.json.JsonSerializable<RoutingRuleRouteDestination>
Route destination.
  • Constructor Details

    • RoutingRuleRouteDestination

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

    • type

      Get the type property: Destination type.
      Returns:
      the type value.
    • withType

      Set the type property: Destination type.
      Parameters:
      type - the type value to set.
      Returns:
      the RoutingRuleRouteDestination object itself.
    • destinationAddress

      public String destinationAddress()
      Get the destinationAddress property: Destination address.
      Returns:
      the destinationAddress value.
    • withDestinationAddress

      public RoutingRuleRouteDestination withDestinationAddress(String destinationAddress)
      Set the destinationAddress property: Destination address.
      Parameters:
      destinationAddress - the destinationAddress value to set.
      Returns:
      the RoutingRuleRouteDestination 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<RoutingRuleRouteDestination>
      Throws:
      IOException
    • fromJson

      public static RoutingRuleRouteDestination fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RoutingRuleRouteDestination from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RoutingRuleRouteDestination if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the RoutingRuleRouteDestination.