Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
Specifies the peering configuration.
/** * Specifies the peering configuration. */
public class ExpressRouteCircuitPeeringConfig {
The reference to AdvertisedPublicPrefixes.
/** * The reference to AdvertisedPublicPrefixes. */
@JsonProperty(value = "advertisedPublicPrefixes") private List<String> advertisedPublicPrefixes;
The communities of bgp peering. Specified for microsoft peering.
/** * The communities of bgp peering. Specified for microsoft peering. */
@JsonProperty(value = "advertisedCommunities") private List<String> advertisedCommunities;
The advertised public prefix state of the Peering resource. Possible values include: 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded'.
/** * The advertised public prefix state of the Peering resource. Possible * values include: 'NotConfigured', 'Configuring', 'Configured', * 'ValidationNeeded'. */
@JsonProperty(value = "advertisedPublicPrefixesState", access = JsonProperty.Access.WRITE_ONLY) private ExpressRouteCircuitPeeringAdvertisedPublicPrefixState advertisedPublicPrefixesState;
The legacy mode of the peering.
/** * The legacy mode of the peering. */
@JsonProperty(value = "legacyMode") private Integer legacyMode;
The CustomerASN of the peering.
/** * The CustomerASN of the peering. */
@JsonProperty(value = "customerASN") private Integer customerASN;
The RoutingRegistryName of the configuration.
/** * The RoutingRegistryName of the configuration. */
@JsonProperty(value = "routingRegistryName") private String routingRegistryName;
Get the reference to AdvertisedPublicPrefixes.
Returns:the advertisedPublicPrefixes value
/** * Get the reference to AdvertisedPublicPrefixes. * * @return the advertisedPublicPrefixes value */
public List<String> advertisedPublicPrefixes() { return this.advertisedPublicPrefixes; }
Set the reference to AdvertisedPublicPrefixes.
Params:
  • advertisedPublicPrefixes – the advertisedPublicPrefixes value to set
Returns:the ExpressRouteCircuitPeeringConfig object itself.
/** * Set the reference to AdvertisedPublicPrefixes. * * @param advertisedPublicPrefixes the advertisedPublicPrefixes value to set * @return the ExpressRouteCircuitPeeringConfig object itself. */
public ExpressRouteCircuitPeeringConfig withAdvertisedPublicPrefixes(List<String> advertisedPublicPrefixes) { this.advertisedPublicPrefixes = advertisedPublicPrefixes; return this; }
Get the communities of bgp peering. Specified for microsoft peering.
Returns:the advertisedCommunities value
/** * Get the communities of bgp peering. Specified for microsoft peering. * * @return the advertisedCommunities value */
public List<String> advertisedCommunities() { return this.advertisedCommunities; }
Set the communities of bgp peering. Specified for microsoft peering.
Params:
  • advertisedCommunities – the advertisedCommunities value to set
Returns:the ExpressRouteCircuitPeeringConfig object itself.
/** * Set the communities of bgp peering. Specified for microsoft peering. * * @param advertisedCommunities the advertisedCommunities value to set * @return the ExpressRouteCircuitPeeringConfig object itself. */
public ExpressRouteCircuitPeeringConfig withAdvertisedCommunities(List<String> advertisedCommunities) { this.advertisedCommunities = advertisedCommunities; return this; }
Get the advertised public prefix state of the Peering resource. Possible values include: 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded'.
Returns:the advertisedPublicPrefixesState value
/** * Get the advertised public prefix state of the Peering resource. Possible values include: 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded'. * * @return the advertisedPublicPrefixesState value */
public ExpressRouteCircuitPeeringAdvertisedPublicPrefixState advertisedPublicPrefixesState() { return this.advertisedPublicPrefixesState; }
Get the legacy mode of the peering.
Returns:the legacyMode value
/** * Get the legacy mode of the peering. * * @return the legacyMode value */
public Integer legacyMode() { return this.legacyMode; }
Set the legacy mode of the peering.
Params:
  • legacyMode – the legacyMode value to set
Returns:the ExpressRouteCircuitPeeringConfig object itself.
/** * Set the legacy mode of the peering. * * @param legacyMode the legacyMode value to set * @return the ExpressRouteCircuitPeeringConfig object itself. */
public ExpressRouteCircuitPeeringConfig withLegacyMode(Integer legacyMode) { this.legacyMode = legacyMode; return this; }
Get the CustomerASN of the peering.
Returns:the customerASN value
/** * Get the CustomerASN of the peering. * * @return the customerASN value */
public Integer customerASN() { return this.customerASN; }
Set the CustomerASN of the peering.
Params:
  • customerASN – the customerASN value to set
Returns:the ExpressRouteCircuitPeeringConfig object itself.
/** * Set the CustomerASN of the peering. * * @param customerASN the customerASN value to set * @return the ExpressRouteCircuitPeeringConfig object itself. */
public ExpressRouteCircuitPeeringConfig withCustomerASN(Integer customerASN) { this.customerASN = customerASN; return this; }
Get the RoutingRegistryName of the configuration.
Returns:the routingRegistryName value
/** * Get the RoutingRegistryName of the configuration. * * @return the routingRegistryName value */
public String routingRegistryName() { return this.routingRegistryName; }
Set the RoutingRegistryName of the configuration.
Params:
  • routingRegistryName – the routingRegistryName value to set
Returns:the ExpressRouteCircuitPeeringConfig object itself.
/** * Set the RoutingRegistryName of the configuration. * * @param routingRegistryName the routingRegistryName value to set * @return the ExpressRouteCircuitPeeringConfig object itself. */
public ExpressRouteCircuitPeeringConfig withRoutingRegistryName(String routingRegistryName) { this.routingRegistryName = routingRegistryName; return this; } }