Partilhar via


VirtualNetworkBgpCommunities Class

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

Implements

public final class VirtualNetworkBgpCommunities
implements JsonSerializable<VirtualNetworkBgpCommunities>

Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.

Constructor Summary

Constructor Description
VirtualNetworkBgpCommunities()

Creates an instance of VirtualNetworkBgpCommunities class.

Method Summary

Modifier and Type Method and Description
static VirtualNetworkBgpCommunities fromJson(JsonReader jsonReader)

Reads an instance of VirtualNetworkBgpCommunities from the JsonReader.

String regionalCommunity()

Get the regionalCommunity property: The BGP community associated with the region of the virtual network.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String virtualNetworkCommunity()

Get the virtualNetworkCommunity property: The BGP community associated with the virtual network.

VirtualNetworkBgpCommunities withVirtualNetworkCommunity(String virtualNetworkCommunity)

Set the virtualNetworkCommunity property: The BGP community associated with the virtual network.

Methods inherited from java.lang.Object

Constructor Details

VirtualNetworkBgpCommunities

public VirtualNetworkBgpCommunities()

Creates an instance of VirtualNetworkBgpCommunities class.

Method Details

fromJson

public static VirtualNetworkBgpCommunities fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

regionalCommunity

public String regionalCommunity()

Get the regionalCommunity property: The BGP community associated with the region of the virtual network.

Returns:

the regionalCommunity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

virtualNetworkCommunity

public String virtualNetworkCommunity()

Get the virtualNetworkCommunity property: The BGP community associated with the virtual network.

Returns:

the virtualNetworkCommunity value.

withVirtualNetworkCommunity

public VirtualNetworkBgpCommunities withVirtualNetworkCommunity(String virtualNetworkCommunity)

Set the virtualNetworkCommunity property: The BGP community associated with the virtual network.

Parameters:

virtualNetworkCommunity - the virtualNetworkCommunity value to set.

Returns:

the VirtualNetworkBgpCommunities object itself.

Applies to