Class ExpressRouteCircuitPeeringConfig
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ExpressRouteCircuitPeeringConfig
-
public final class ExpressRouteCircuitPeeringConfig extends Object
Specifies the peering configuration.
-
-
Constructor Summary
Constructors Constructor Description ExpressRouteCircuitPeeringConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>advertisedCommunities()Get the advertisedCommunities property: The communities of bgp peering.List<String>advertisedPublicPrefixes()Get the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.ExpressRouteCircuitPeeringAdvertisedPublicPrefixStateadvertisedPublicPrefixesState()Get the advertisedPublicPrefixesState property: The advertised public prefix state of the Peering resource.IntegercustomerAsn()Get the customerAsn property: The CustomerASN of the peering.IntegerlegacyMode()Get the legacyMode property: The legacy mode of the peering.StringroutingRegistryName()Get the routingRegistryName property: The RoutingRegistryName of the configuration.voidvalidate()Validates the instance.ExpressRouteCircuitPeeringConfigwithAdvertisedCommunities(List<String> advertisedCommunities)Set the advertisedCommunities property: The communities of bgp peering.ExpressRouteCircuitPeeringConfigwithAdvertisedPublicPrefixes(List<String> advertisedPublicPrefixes)Set the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.ExpressRouteCircuitPeeringConfigwithCustomerAsn(Integer customerAsn)Set the customerAsn property: The CustomerASN of the peering.ExpressRouteCircuitPeeringConfigwithLegacyMode(Integer legacyMode)Set the legacyMode property: The legacy mode of the peering.ExpressRouteCircuitPeeringConfigwithRoutingRegistryName(String routingRegistryName)Set the routingRegistryName property: The RoutingRegistryName of the configuration.
-
-
-
Method Detail
-
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.
-
-