Share via


GatewayRouteSet Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.GatewayRouteSet

Implements

public final class GatewayRouteSet
implements JsonSerializable<GatewayRouteSet>

The GatewayRouteSet model.

Constructor Summary

Constructor Description
GatewayRouteSet()

Creates an instance of GatewayRouteSet class.

Method Summary

Modifier and Type Method and Description
Map<String,List<RouteSourceDetails>> details()

Get the details property: List of different Route Sources.

static GatewayRouteSet fromJson(JsonReader jsonReader)

Reads an instance of GatewayRouteSet from the JsonReader.

List<String> locations()

Get the locations property: List of different locations from where the routes are learned.

String name()

Get the name property: Route Set name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GatewayRouteSet withDetails(Map<String,List<RouteSourceDetails>> details)

Set the details property: List of different Route Sources.

GatewayRouteSet withLocations(List<String> locations)

Set the locations property: List of different locations from where the routes are learned.

GatewayRouteSet withName(String name)

Set the name property: Route Set name.

Methods inherited from java.lang.Object

Constructor Details

GatewayRouteSet

public GatewayRouteSet()

Creates an instance of GatewayRouteSet class.

Method Details

details

public Map<String,List<RouteSourceDetails>> details()

Get the details property: List of different Route Sources.

Returns:

the details value.

fromJson

public static GatewayRouteSet fromJson(JsonReader jsonReader)

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.

locations

public List<String> locations()

Get the locations property: List of different locations from where the routes are learned.

Returns:

the locations value.

name

public String name()

Get the name property: Route Set name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDetails

public GatewayRouteSet withDetails(Map<String,List<RouteSourceDetails>> details)

Set the details property: List of different Route Sources.

Parameters:

details - the details value to set.

Returns:

the GatewayRouteSet object itself.

withLocations

public GatewayRouteSet withLocations(List<String> locations)

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.

withName

public GatewayRouteSet withName(String name)

Set the name property: Route Set name.

Parameters:

name - the name value to set.

Returns:

the GatewayRouteSet object itself.

Applies to