BgpCommunity Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. BgpCommunity
- com.
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 Bgp |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
communityName()
Get the community |
List<String> |
communityPrefixes()
Get the community |
String |
communityValue()
Get the community |
static
Bgp |
fromJson(JsonReader jsonReader)
Reads an instance of Bgp |
Boolean |
isAuthorizedToUse()
Get the is |
String |
serviceGroup()
Get the service |
String |
serviceSupportedRegion()
Get the service |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Bgp |
withCommunityName(String communityName)
Set the community |
Bgp |
withCommunityPrefixes(List<String> communityPrefixes)
Set the community |
Bgp |
withCommunityValue(String communityValue)
Set the community |
Bgp |
withIsAuthorizedToUse(Boolean isAuthorizedToUse)
Set the is |
Bgp |
withServiceGroup(String serviceGroup)
Set the service |
Bgp |
withServiceSupportedRegion(String serviceSupportedRegion)
Set the service |
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:
communityPrefixes
public List
Get the communityPrefixes property: The prefixes that the bgp community contains.
Returns:
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:
fromJson
public static BgpCommunity fromJson(JsonReader jsonReader)
Reads an instance of BgpCommunity from the JsonReader.
Parameters:
Returns:
Throws:
isAuthorizedToUse
public Boolean isAuthorizedToUse()
Get the isAuthorizedToUse property: Customer is authorized to use bgp community or not.
Returns:
serviceGroup
public String serviceGroup()
Get the serviceGroup property: The service group of the bgp community contains.
Returns:
serviceSupportedRegion
public String serviceSupportedRegion()
Get the serviceSupportedRegion property: The region which the service support. e.g. For O365, region is Global.
Returns:
toJson
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:
Returns:
withCommunityPrefixes
public BgpCommunity withCommunityPrefixes(List
Set the communityPrefixes property: The prefixes that the bgp community contains.
Parameters:
Returns:
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:
Returns:
withIsAuthorizedToUse
public BgpCommunity withIsAuthorizedToUse(Boolean isAuthorizedToUse)
Set the isAuthorizedToUse property: Customer is authorized to use bgp community or not.
Parameters:
Returns:
withServiceGroup
public BgpCommunity withServiceGroup(String serviceGroup)
Set the serviceGroup property: The service group of the bgp community contains.
Parameters:
Returns:
withServiceSupportedRegion
public BgpCommunity withServiceSupportedRegion(String serviceSupportedRegion)
Set the serviceSupportedRegion property: The region which the service support. e.g. For O365, region is Global.
Parameters:
Returns:
Applies to
Azure SDK for Java