Parameter Class

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

Implements

public final class Parameter
implements JsonSerializable<Parameter>

Parameters for an Action.

Constructor Summary

Constructor Description
Parameter()

Creates an instance of Parameter class.

Method Summary

Modifier and Type Method and Description
List<String> asPath()

Get the asPath property: List of AS paths.

List<String> community()

Get the community property: List of BGP communities.

static Parameter fromJson(JsonReader jsonReader)

Reads an instance of Parameter from the JsonReader.

List<String> routePrefix()

Get the routePrefix property: List of route prefixes.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Parameter withAsPath(List<String> asPath)

Set the asPath property: List of AS paths.

Parameter withCommunity(List<String> community)

Set the community property: List of BGP communities.

Parameter withRoutePrefix(List<String> routePrefix)

Set the routePrefix property: List of route prefixes.

Methods inherited from java.lang.Object

Constructor Details

Parameter

public Parameter()

Creates an instance of Parameter class.

Method Details

asPath

public List asPath()

Get the asPath property: List of AS paths.

Returns:

the asPath value.

community

public List community()

Get the community property: List of BGP communities.

Returns:

the community value.

fromJson

public static Parameter fromJson(JsonReader jsonReader)

Reads an instance of Parameter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Parameter 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 Parameter.

routePrefix

public List routePrefix()

Get the routePrefix property: List of route prefixes.

Returns:

the routePrefix value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAsPath

public Parameter withAsPath(List asPath)

Set the asPath property: List of AS paths.

Parameters:

asPath - the asPath value to set.

Returns:

the Parameter object itself.

withCommunity

public Parameter withCommunity(List community)

Set the community property: List of BGP communities.

Parameters:

community - the community value to set.

Returns:

the Parameter object itself.

withRoutePrefix

public Parameter withRoutePrefix(List routePrefix)

Set the routePrefix property: List of route prefixes.

Parameters:

routePrefix - the routePrefix value to set.

Returns:

the Parameter object itself.

Applies to