Class ExpressRouteCircuitPeeringConfig

java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteCircuitPeeringConfig

public final class ExpressRouteCircuitPeeringConfig extends Object
Specifies the peering configuration.
  • Constructor Details

    • ExpressRouteCircuitPeeringConfig

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

    • advertisedPublicPrefixes

      public List<String> advertisedPublicPrefixes()
      Get the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.
      Returns:
      the advertisedPublicPrefixes value.
    • withAdvertisedPublicPrefixes

      public ExpressRouteCircuitPeeringConfig withAdvertisedPublicPrefixes(List<String> advertisedPublicPrefixes)
      Set the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.
      Parameters:
      advertisedPublicPrefixes - the advertisedPublicPrefixes value to set.
      Returns:
      the ExpressRouteCircuitPeeringConfig object itself.
    • advertisedCommunities

      public List<String> advertisedCommunities()
      Get the advertisedCommunities property: The communities of bgp peering. Specified for microsoft peering.
      Returns:
      the advertisedCommunities value.
    • withAdvertisedCommunities

      public ExpressRouteCircuitPeeringConfig withAdvertisedCommunities(List<String> advertisedCommunities)
      Set the advertisedCommunities property: The communities of bgp peering. Specified for microsoft peering.
      Parameters:
      advertisedCommunities - the advertisedCommunities value to set.
      Returns:
      the ExpressRouteCircuitPeeringConfig object itself.
    • advertisedPublicPrefixesState

      public ExpressRouteCircuitPeeringAdvertisedPublicPrefixState advertisedPublicPrefixesState()
      Get the advertisedPublicPrefixesState property: The advertised public prefix state of the Peering resource.
      Returns:
      the advertisedPublicPrefixesState value.
    • legacyMode

      public Integer legacyMode()
      Get the legacyMode property: The legacy mode of the peering.
      Returns:
      the legacyMode value.
    • withLegacyMode

      public ExpressRouteCircuitPeeringConfig withLegacyMode(Integer legacyMode)
      Set the legacyMode property: The legacy mode of the peering.
      Parameters:
      legacyMode - the legacyMode value to set.
      Returns:
      the ExpressRouteCircuitPeeringConfig object itself.
    • customerAsn

      public Integer customerAsn()
      Get the customerAsn property: The CustomerASN of the peering.
      Returns:
      the customerAsn value.
    • withCustomerAsn

      public ExpressRouteCircuitPeeringConfig withCustomerAsn(Integer customerAsn)
      Set the customerAsn property: The CustomerASN of the peering.
      Parameters:
      customerAsn - the customerAsn value to set.
      Returns:
      the ExpressRouteCircuitPeeringConfig object itself.
    • routingRegistryName

      public String routingRegistryName()
      Get the routingRegistryName property: The RoutingRegistryName of the configuration.
      Returns:
      the routingRegistryName value.
    • withRoutingRegistryName

      public ExpressRouteCircuitPeeringConfig withRoutingRegistryName(String routingRegistryName)
      Set the routingRegistryName property: The RoutingRegistryName of the configuration.
      Parameters:
      routingRegistryName - the routingRegistryName value to set.
      Returns:
      the ExpressRouteCircuitPeeringConfig object itself.
    • validate

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