Class GatewayRouteSet
java.lang.Object
com.azure.resourcemanager.network.models.GatewayRouteSet
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GatewayRouteSet>
public final class GatewayRouteSet
extends Object
implements com.azure.json.JsonSerializable<GatewayRouteSet>
The GatewayRouteSet model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetails()Get the details property: List of different Route Sources.static GatewayRouteSetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayRouteSet from the JsonReader.Get the locations property: List of different locations from where the routes are learned.name()Get the name property: Route Set name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDetails(Map<String, List<RouteSourceDetails>> details) Set the details property: List of different Route Sources.withLocations(List<String> locations) Set the locations property: List of different locations from where the routes are learned.Set the name property: Route Set name.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
-
GatewayRouteSet
public GatewayRouteSet()Creates an instance of GatewayRouteSet class.
-
-
Method Details
-
name
Get the name property: Route Set name.- Returns:
- the name value.
-
withName
Set the name property: Route Set name.- Parameters:
name- the name value to set.- Returns:
- the GatewayRouteSet object itself.
-
locations
Get the locations property: List of different locations from where the routes are learned.- Returns:
- the locations value.
-
withLocations
Set the locations property: List of different locations from where the routes are learned.- Parameters:
locations- the locations value to set.- Returns:
- the GatewayRouteSet object itself.
-
details
Get the details property: List of different Route Sources.- Returns:
- the details value.
-
withDetails
Set the details property: List of different Route Sources.- Parameters:
details- the details value to set.- Returns:
- the GatewayRouteSet 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<GatewayRouteSet>- Throws:
IOException
-
fromJson
Reads an instance of GatewayRouteSet from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GatewayRouteSet 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 GatewayRouteSet.
-