Class Ipv6ExpressRouteCircuitPeeringConfig

java.lang.Object
com.azure.resourcemanager.network.models.Ipv6ExpressRouteCircuitPeeringConfig
All Implemented Interfaces:
com.azure.json.JsonSerializable<Ipv6ExpressRouteCircuitPeeringConfig>

public final class Ipv6ExpressRouteCircuitPeeringConfig extends Object implements com.azure.json.JsonSerializable<Ipv6ExpressRouteCircuitPeeringConfig>
Contains IPv6 peering config.
  • Constructor Details

    • Ipv6ExpressRouteCircuitPeeringConfig

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

    • primaryPeerAddressPrefix

      public String primaryPeerAddressPrefix()
      Get the primaryPeerAddressPrefix property: The primary address prefix.
      Returns:
      the primaryPeerAddressPrefix value.
    • withPrimaryPeerAddressPrefix

      public Ipv6ExpressRouteCircuitPeeringConfig withPrimaryPeerAddressPrefix(String primaryPeerAddressPrefix)
      Set the primaryPeerAddressPrefix property: The primary address prefix.
      Parameters:
      primaryPeerAddressPrefix - the primaryPeerAddressPrefix value to set.
      Returns:
      the Ipv6ExpressRouteCircuitPeeringConfig object itself.
    • secondaryPeerAddressPrefix

      public String secondaryPeerAddressPrefix()
      Get the secondaryPeerAddressPrefix property: The secondary address prefix.
      Returns:
      the secondaryPeerAddressPrefix value.
    • withSecondaryPeerAddressPrefix

      public Ipv6ExpressRouteCircuitPeeringConfig withSecondaryPeerAddressPrefix(String secondaryPeerAddressPrefix)
      Set the secondaryPeerAddressPrefix property: The secondary address prefix.
      Parameters:
      secondaryPeerAddressPrefix - the secondaryPeerAddressPrefix value to set.
      Returns:
      the Ipv6ExpressRouteCircuitPeeringConfig object itself.
    • microsoftPeeringConfig

      public ExpressRouteCircuitPeeringConfig microsoftPeeringConfig()
      Get the microsoftPeeringConfig property: The Microsoft peering configuration.
      Returns:
      the microsoftPeeringConfig value.
    • withMicrosoftPeeringConfig

      public Ipv6ExpressRouteCircuitPeeringConfig withMicrosoftPeeringConfig(ExpressRouteCircuitPeeringConfig microsoftPeeringConfig)
      Set the microsoftPeeringConfig property: The Microsoft peering configuration.
      Parameters:
      microsoftPeeringConfig - the microsoftPeeringConfig value to set.
      Returns:
      the Ipv6ExpressRouteCircuitPeeringConfig object itself.
    • routeFilter

      public com.azure.core.management.SubResource routeFilter()
      Get the routeFilter property: The reference to the RouteFilter resource.
      Returns:
      the routeFilter value.
    • withRouteFilter

      public Ipv6ExpressRouteCircuitPeeringConfig withRouteFilter(com.azure.core.management.SubResource routeFilter)
      Set the routeFilter property: The reference to the RouteFilter resource.
      Parameters:
      routeFilter - the routeFilter value to set.
      Returns:
      the Ipv6ExpressRouteCircuitPeeringConfig object itself.
    • state

      Get the state property: The state of peering.
      Returns:
      the state value.
    • withState

      Set the state property: The state of peering.
      Parameters:
      state - the state value to set.
      Returns:
      the Ipv6ExpressRouteCircuitPeeringConfig 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<Ipv6ExpressRouteCircuitPeeringConfig>
      Throws:
      IOException
    • fromJson

      public static Ipv6ExpressRouteCircuitPeeringConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Ipv6ExpressRouteCircuitPeeringConfig from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Ipv6ExpressRouteCircuitPeeringConfig 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 Ipv6ExpressRouteCircuitPeeringConfig.