Class Parameter
java.lang.Object
com.azure.resourcemanager.network.models.Parameter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Parameter>
Parameters for an Action.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasPath()Get the asPath property: List of AS paths.Get the community property: List of BGP communities.static ParameterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Parameter from the JsonReader.Get the routePrefix property: List of route prefixes.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAsPath(List<String> asPath) Set the asPath property: List of AS paths.withCommunity(List<String> community) Set the community property: List of BGP communities.withRoutePrefix(List<String> routePrefix) Set the routePrefix property: List of route prefixes.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
-
Parameter
public Parameter()Creates an instance of Parameter class.
-
-
Method Details
-
routePrefix
Get the routePrefix property: List of route prefixes.- Returns:
- the routePrefix value.
-
withRoutePrefix
Set the routePrefix property: List of route prefixes.- Parameters:
routePrefix- the routePrefix value to set.- Returns:
- the Parameter object itself.
-
community
Get the community property: List of BGP communities.- Returns:
- the community value.
-
withCommunity
Set the community property: List of BGP communities.- Parameters:
community- the community value to set.- Returns:
- the Parameter object itself.
-
asPath
Get the asPath property: List of AS paths.- Returns:
- the asPath value.
-
withAsPath
Set the asPath property: List of AS paths.- Parameters:
asPath- the asPath value to set.- Returns:
- the Parameter 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<Parameter>- Throws:
IOException
-
fromJson
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.
-