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 Summary
ConstructorsConstructorDescriptionCreates an instance of RoutingRuleRouteDestination class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationAddress property: Destination address.static RoutingRuleRouteDestinationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RoutingRuleRouteDestination from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Destination type.voidvalidate()Validates the instance.withDestinationAddress(String destinationAddress) Set the destinationAddress property: Destination address.Set the type property: Destination type.Methods inherited from class java.lang.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
-
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
Get the destinationAddress property: Destination address.- Returns:
- the destinationAddress value.
-
withDestinationAddress
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
- Specified by:
toJsonin interfacecom.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.
-