Partager via


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.

Constructor Summary

Constructor Description
BgpCommunity()

Creates an instance of BgpCommunity class.

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.

BgpCommunity withCommunityName(String communityName)

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

BgpCommunity withCommunityPrefixes(List<String> communityPrefixes)

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

BgpCommunity withCommunityValue(String communityValue)

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

BgpCommunity withIsAuthorizedToUse(Boolean isAuthorizedToUse)

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

BgpCommunity withServiceGroup(String serviceGroup)

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

BgpCommunity withServiceSupportedRegion(String serviceSupportedRegion)

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

Methods inherited from java.lang.Object

Constructor Details

BgpCommunity

public BgpCommunity()

Creates an instance of BgpCommunity class.

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 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.

withCommunityName

public BgpCommunity withCommunityName(String communityName)

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

Parameters:

communityName - the communityName value to set.

Returns:

the BgpCommunity object itself.

withCommunityPrefixes

public BgpCommunity withCommunityPrefixes(List communityPrefixes)

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

Parameters:

communityPrefixes - the communityPrefixes value to set.

Returns:

the BgpCommunity object itself.

withCommunityValue

public BgpCommunity withCommunityValue(String communityValue)

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

Parameters:

communityValue - the communityValue value to set.

Returns:

the BgpCommunity object itself.

withIsAuthorizedToUse

public BgpCommunity withIsAuthorizedToUse(Boolean isAuthorizedToUse)

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

Parameters:

isAuthorizedToUse - the isAuthorizedToUse value to set.

Returns:

the BgpCommunity object itself.

withServiceGroup

public BgpCommunity withServiceGroup(String serviceGroup)

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

Parameters:

serviceGroup - the serviceGroup value to set.

Returns:

the BgpCommunity object itself.

withServiceSupportedRegion

public BgpCommunity withServiceSupportedRegion(String serviceSupportedRegion)

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

Parameters:

serviceSupportedRegion - the serviceSupportedRegion value to set.

Returns:

the BgpCommunity object itself.

Applies to