Class VirtualNetworkBgpCommunities
java.lang.Object
com.azure.resourcemanager.network.models.VirtualNetworkBgpCommunities
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualNetworkBgpCommunities>
public final class VirtualNetworkBgpCommunities
extends Object
implements com.azure.json.JsonSerializable<VirtualNetworkBgpCommunities>
Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.
-
Constructor Summary
ConstructorDescriptionCreates an instance of VirtualNetworkBgpCommunities class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VirtualNetworkBgpCommunities
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualNetworkBgpCommunities from the JsonReader.Get the regionalCommunity property: The BGP community associated with the region of the virtual network.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the virtualNetworkCommunity property: The BGP community associated with the virtual network.withVirtualNetworkCommunity
(String virtualNetworkCommunity) Set the virtualNetworkCommunity property: The BGP community associated with the virtual network.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualNetworkBgpCommunities
public VirtualNetworkBgpCommunities()Creates an instance of VirtualNetworkBgpCommunities class.
-
-
Method Details
-
virtualNetworkCommunity
Get the virtualNetworkCommunity property: The BGP community associated with the virtual network.- Returns:
- the virtualNetworkCommunity value.
-
withVirtualNetworkCommunity
Set the virtualNetworkCommunity property: The BGP community associated with the virtual network.- Parameters:
virtualNetworkCommunity
- the virtualNetworkCommunity value to set.- Returns:
- the VirtualNetworkBgpCommunities object itself.
-
regionalCommunity
Get the regionalCommunity property: The BGP community associated with the region of the virtual network.- Returns:
- the regionalCommunity value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VirtualNetworkBgpCommunities>
- Throws:
IOException
-
fromJson
public static VirtualNetworkBgpCommunities fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualNetworkBgpCommunities from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VirtualNetworkBgpCommunities 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 VirtualNetworkBgpCommunities.
-