Class BgpCommunity
java.lang.Object
com.azure.resourcemanager.network.models.BgpCommunity
Contains bgp community information offered in Service Community resources.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the communityName property: The name of the bgp community.Get the communityPrefixes property: The prefixes that the bgp community contains.Get the communityValue property: The value of the bgp community.Get the isAuthorizedToUse property: Customer is authorized to use bgp community or not.Get the serviceGroup property: The service group of the bgp community contains.Get the serviceSupportedRegion property: The region which the service support.voidvalidate()Validates the instance.withCommunityName(String communityName) Set the communityName property: The name of the bgp community.withCommunityPrefixes(List<String> communityPrefixes) Set the communityPrefixes property: The prefixes that the bgp community contains.withCommunityValue(String communityValue) Set the communityValue property: The value of the bgp community.withIsAuthorizedToUse(Boolean isAuthorizedToUse) Set the isAuthorizedToUse property: Customer is authorized to use bgp community or not.withServiceGroup(String serviceGroup) Set the serviceGroup property: The service group of the bgp community contains.withServiceSupportedRegion(String serviceSupportedRegion) Set the serviceSupportedRegion property: The region which the service support.
-
Constructor Details
-
BgpCommunity
public BgpCommunity()Creates an instance of BgpCommunity class.
-
-
Method Details
-
serviceSupportedRegion
Get the serviceSupportedRegion property: The region which the service support. e.g. For O365, region is Global.- Returns:
- the serviceSupportedRegion value.
-
withServiceSupportedRegion
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.
-
communityName
Get the communityName property: The name of the bgp community. e.g. Skype.- Returns:
- the communityName value.
-
withCommunityName
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.
-
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.
-
withCommunityValue
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.
-
communityPrefixes
Get the communityPrefixes property: The prefixes that the bgp community contains.- Returns:
- the communityPrefixes value.
-
withCommunityPrefixes
Set the communityPrefixes property: The prefixes that the bgp community contains.- Parameters:
communityPrefixes- the communityPrefixes value to set.- Returns:
- the BgpCommunity object itself.
-
isAuthorizedToUse
Get the isAuthorizedToUse property: Customer is authorized to use bgp community or not.- Returns:
- the isAuthorizedToUse value.
-
withIsAuthorizedToUse
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.
-
serviceGroup
Get the serviceGroup property: The service group of the bgp community contains.- Returns:
- the serviceGroup value.
-
withServiceGroup
Set the serviceGroup property: The service group of the bgp community contains.- Parameters:
serviceGroup- the serviceGroup value to set.- Returns:
- the BgpCommunity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-