BgpCommunity Class

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

Implements

public final class BgpCommunity
implements JsonSerializable<BgpCommunity>

Contains bgp community information offered in Service Community resources.

Method Summary

Modifier and Type Method and Description
String communityName()

Get the communityName property: The name of the bgp community.

List<String> communityPrefixes()

Get the communityPrefixes property: The prefixes that the bgp community contains.

String communityValue()

Get the communityValue property: The value of the bgp community.

static BgpCommunity fromJson(JsonReader jsonReader)

Reads an instance of BgpCommunity from the JsonReader.

Boolean isAuthorizedToUse()

Get the isAuthorizedToUse property: Customer is authorized to use bgp community or not.

String serviceGroup()

Get the serviceGroup property: The service group of the bgp community contains.

String serviceSupportedRegion()

Get the serviceSupportedRegion property: The region which the service support.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

communityName

public String communityName()

Get the communityName property: The name of the bgp community. e.g. Skype.

Returns:

the communityName value.

communityPrefixes

public List<String> communityPrefixes()

Get the communityPrefixes property: The prefixes that the bgp community contains.

Returns:

the communityPrefixes value.

communityValue

public String communityValue()

Get the communityValue property: The value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing.

Returns:

the communityValue value.

fromJson

public static BgpCommunity fromJson(JsonReader jsonReader)

Reads an instance of BgpCommunity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isAuthorizedToUse

public Boolean isAuthorizedToUse()

Get the isAuthorizedToUse property: Customer is authorized to use bgp community or not.

Returns:

the isAuthorizedToUse value.

serviceGroup

public String serviceGroup()

Get the serviceGroup property: The service group of the bgp community contains.

Returns:

the serviceGroup value.

serviceSupportedRegion

public String serviceSupportedRegion()

Get the serviceSupportedRegion property: The region which the service support. e.g. For O365, region is Global.

Returns:

the serviceSupportedRegion value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to