Class ExpressRouteCircuitPeeringConfig
java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteCircuitPeeringConfig
Specifies the peering configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ExpressRouteCircuitPeeringConfig class. -
Method Summary
Modifier and TypeMethodDescriptionGet the advertisedCommunities property: The communities of bgp peering.Get the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.Get the advertisedPublicPrefixesState property: The advertised public prefix state of the Peering resource.Get the customerAsn property: The CustomerASN of the peering.Get the legacyMode property: The legacy mode of the peering.Get the routingRegistryName property: The RoutingRegistryName of the configuration.voidvalidate()Validates the instance.withAdvertisedCommunities(List<String> advertisedCommunities) Set the advertisedCommunities property: The communities of bgp peering.withAdvertisedPublicPrefixes(List<String> advertisedPublicPrefixes) Set the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.withCustomerAsn(Integer customerAsn) Set the customerAsn property: The CustomerASN of the peering.withLegacyMode(Integer legacyMode) Set the legacyMode property: The legacy mode of the peering.withRoutingRegistryName(String routingRegistryName) Set the routingRegistryName property: The RoutingRegistryName of the configuration.
-
Constructor Details
-
ExpressRouteCircuitPeeringConfig
public ExpressRouteCircuitPeeringConfig()Creates an instance of ExpressRouteCircuitPeeringConfig class.
-
-
Method Details
-
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
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
Get the advertisedPublicPrefixesState property: The advertised public prefix state of the Peering resource.- Returns:
- the advertisedPublicPrefixesState value.
-
legacyMode
Get the legacyMode property: The legacy mode of the peering.- Returns:
- the legacyMode value.
-
withLegacyMode
Set the legacyMode property: The legacy mode of the peering.- Parameters:
legacyMode- the legacyMode value to set.- Returns:
- the ExpressRouteCircuitPeeringConfig object itself.
-
customerAsn
Get the customerAsn property: The CustomerASN of the peering.- Returns:
- the customerAsn value.
-
withCustomerAsn
Set the customerAsn property: The CustomerASN of the peering.- Parameters:
customerAsn- the customerAsn value to set.- Returns:
- the ExpressRouteCircuitPeeringConfig object itself.
-
routingRegistryName
Get the routingRegistryName property: The RoutingRegistryName of the configuration.- Returns:
- the routingRegistryName value.
-
withRoutingRegistryName
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.
-