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 Details

    • BgpCommunity

      public BgpCommunity()
      Creates an instance of BgpCommunity class.
  • Method Details

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

      public String communityName()
      Get the communityName property: The name of the bgp community. e.g. Skype.
      Returns:
      the communityName value.
    • 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.
    • 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.
    • 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.
    • communityPrefixes

      public List<String> communityPrefixes()
      Get the communityPrefixes property: The prefixes that the bgp community contains.
      Returns:
      the communityPrefixes value.
    • withCommunityPrefixes

      public BgpCommunity withCommunityPrefixes(List<String> communityPrefixes)
      Set the communityPrefixes property: The prefixes that the bgp community contains.
      Parameters:
      communityPrefixes - the communityPrefixes value to set.
      Returns:
      the BgpCommunity object itself.
    • isAuthorizedToUse

      public Boolean isAuthorizedToUse()
      Get the isAuthorizedToUse property: Customer is authorized to use bgp community or not.
      Returns:
      the isAuthorizedToUse value.
    • 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.
    • serviceGroup

      public String serviceGroup()
      Get the serviceGroup property: The service group of the bgp community contains.
      Returns:
      the serviceGroup value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<BgpCommunity>
      Throws:
      IOException
    • fromJson

      public static BgpCommunity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.