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 Details

    • ExpressRouteCircuitPeeringConfig

      public ExpressRouteCircuitPeeringConfig()
      Creates an instance of ExpressRouteCircuitPeeringConfig class.
  • Method Details

    • 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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.