Class ExpressRouteCircuitPeeringConfig
java.lang.Object
com.azure.resourcemanager.network.models.ExpressRouteCircuitPeeringConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExpressRouteCircuitPeeringConfig>
public final class ExpressRouteCircuitPeeringConfig
extends Object
implements com.azure.json.JsonSerializable<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.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExpressRouteCircuitPeeringConfig from the JsonReader.Get the legacyMode property: The legacy mode of the peering.Get the routingRegistryName property: The RoutingRegistryName of the configuration.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExpressRouteCircuitPeeringConfig>- Throws:
IOException
-
fromJson
public static ExpressRouteCircuitPeeringConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ExpressRouteCircuitPeeringConfig from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExpressRouteCircuitPeeringConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ExpressRouteCircuitPeeringConfig.
-