Class BgpCommunity


  • public final class BgpCommunity
    extends Object
    Contains bgp community information offered in Service Community resources.
    • Constructor Detail

      • BgpCommunity

        public BgpCommunity()
    • Method Detail

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