Class BgpCommunity
java.lang.Object
com.azure.resourcemanager.network.models.BgpCommunity
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BgpCommunity>
public final class BgpCommunity
extends Object
implements com.azure.json.JsonSerializable<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. e.g.Get the communityPrefixes property: The prefixes that the bgp community contains.Get the communityValue property: The value of the bgp community.static BgpCommunityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BgpCommunity from the JsonReader.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. e.g.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCommunityName(String communityName) Set the communityName property: The name of the bgp community. e.g.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. e.g.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<BgpCommunity>- Throws:
IOException
-
fromJson
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.
-