ExpressRouteCircuitPeeringConfig Class

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

public final class ExpressRouteCircuitPeeringConfig

Specifies the peering configuration.

Constructor Summary

Constructor Description
ExpressRouteCircuitPeeringConfig()

Creates an instance of ExpressRouteCircuitPeeringConfig class.

Method Summary

Modifier and Type Method and Description
List<String> advertisedCommunities()

Get the advertisedCommunities property: The communities of bgp peering.

List<String> advertisedPublicPrefixes()

Get the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.

ExpressRouteCircuitPeeringAdvertisedPublicPrefixState advertisedPublicPrefixesState()

Get the advertisedPublicPrefixesState property: The advertised public prefix state of the Peering resource.

Integer customerAsn()

Get the customerAsn property: The CustomerASN of the peering.

Integer legacyMode()

Get the legacyMode property: The legacy mode of the peering.

String routingRegistryName()

Get the routingRegistryName property: The RoutingRegistryName of the configuration.

void validate()

Validates the instance.

ExpressRouteCircuitPeeringConfig withAdvertisedCommunities(List<String> advertisedCommunities)

Set the advertisedCommunities property: The communities of bgp peering.

ExpressRouteCircuitPeeringConfig withAdvertisedPublicPrefixes(List<String> advertisedPublicPrefixes)

Set the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.

ExpressRouteCircuitPeeringConfig withCustomerAsn(Integer customerAsn)

Set the customerAsn property: The CustomerASN of the peering.

ExpressRouteCircuitPeeringConfig withLegacyMode(Integer legacyMode)

Set the legacyMode property: The legacy mode of the peering.

ExpressRouteCircuitPeeringConfig withRoutingRegistryName(String routingRegistryName)

Set the routingRegistryName property: The RoutingRegistryName of the configuration.

Methods inherited from java.lang.Object

Constructor Details

ExpressRouteCircuitPeeringConfig

public ExpressRouteCircuitPeeringConfig()

Creates an instance of ExpressRouteCircuitPeeringConfig class.

Method Details

advertisedCommunities

public List advertisedCommunities()

Get the advertisedCommunities property: The communities of bgp peering. Specified for microsoft peering.

Returns:

the advertisedCommunities value.

advertisedPublicPrefixes

public List advertisedPublicPrefixes()

Get the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.

Returns:

the advertisedPublicPrefixes value.

advertisedPublicPrefixesState

public ExpressRouteCircuitPeeringAdvertisedPublicPrefixState advertisedPublicPrefixesState()

Get the advertisedPublicPrefixesState property: The advertised public prefix state of the Peering resource.

Returns:

the advertisedPublicPrefixesState value.

customerAsn

public Integer customerAsn()

Get the customerAsn property: The CustomerASN of the peering.

Returns:

the customerAsn value.

legacyMode

public Integer legacyMode()

Get the legacyMode property: The legacy mode of the peering.

Returns:

the legacyMode value.

routingRegistryName

public String routingRegistryName()

Get the routingRegistryName property: The RoutingRegistryName of the configuration.

Returns:

the routingRegistryName value.

validate

public void validate()

Validates the instance.

withAdvertisedCommunities

public ExpressRouteCircuitPeeringConfig withAdvertisedCommunities(List 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.

withAdvertisedPublicPrefixes

public ExpressRouteCircuitPeeringConfig withAdvertisedPublicPrefixes(List advertisedPublicPrefixes)

Set the advertisedPublicPrefixes property: The reference to AdvertisedPublicPrefixes.

Parameters:

advertisedPublicPrefixes - the advertisedPublicPrefixes value to set.

Returns:

the ExpressRouteCircuitPeeringConfig object itself.

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.

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.

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.

Applies to