Class GatewayCustomBgpIpAddressIpConfiguration

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

public final class GatewayCustomBgpIpAddressIpConfiguration extends Object implements com.azure.json.JsonSerializable<GatewayCustomBgpIpAddressIpConfiguration>
GatewayCustomBgpIpAddressIpConfiguration for a virtual network gateway connection.
  • Constructor Details

    • GatewayCustomBgpIpAddressIpConfiguration

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

    • ipConfigurationId

      public String ipConfigurationId()
      Get the ipConfigurationId property: The IpconfigurationId of ipconfiguration which belongs to gateway.
      Returns:
      the ipConfigurationId value.
    • withIpConfigurationId

      public GatewayCustomBgpIpAddressIpConfiguration withIpConfigurationId(String ipConfigurationId)
      Set the ipConfigurationId property: The IpconfigurationId of ipconfiguration which belongs to gateway.
      Parameters:
      ipConfigurationId - the ipConfigurationId value to set.
      Returns:
      the GatewayCustomBgpIpAddressIpConfiguration object itself.
    • customBgpIpAddress

      public String customBgpIpAddress()
      Get the customBgpIpAddress property: The custom BgpPeeringAddress which belongs to IpconfigurationId.
      Returns:
      the customBgpIpAddress value.
    • withCustomBgpIpAddress

      public GatewayCustomBgpIpAddressIpConfiguration withCustomBgpIpAddress(String customBgpIpAddress)
      Set the customBgpIpAddress property: The custom BgpPeeringAddress which belongs to IpconfigurationId.
      Parameters:
      customBgpIpAddress - the customBgpIpAddress value to set.
      Returns:
      the GatewayCustomBgpIpAddressIpConfiguration 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<GatewayCustomBgpIpAddressIpConfiguration>
      Throws:
      IOException
    • fromJson

      public static GatewayCustomBgpIpAddressIpConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GatewayCustomBgpIpAddressIpConfiguration from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GatewayCustomBgpIpAddressIpConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the GatewayCustomBgpIpAddressIpConfiguration.