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 Summary
ConstructorsConstructorDescriptionCreates an instance of GatewayCustomBgpIpAddressIpConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customBgpIpAddress property: The custom BgpPeeringAddress which belongs to IpconfigurationId.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GatewayCustomBgpIpAddressIpConfiguration from the JsonReader.Get the ipConfigurationId property: The IpconfigurationId of ipconfiguration which belongs to gateway.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCustomBgpIpAddress(String customBgpIpAddress) Set the customBgpIpAddress property: The custom BgpPeeringAddress which belongs to IpconfigurationId.withIpConfigurationId(String ipConfigurationId) Set the ipConfigurationId property: The IpconfigurationId of ipconfiguration which belongs to gateway.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
-
GatewayCustomBgpIpAddressIpConfiguration
public GatewayCustomBgpIpAddressIpConfiguration()Creates an instance of GatewayCustomBgpIpAddressIpConfiguration class.
-
-
Method Details
-
ipConfigurationId
Get the ipConfigurationId property: The IpconfigurationId of ipconfiguration which belongs to gateway.- Returns:
- the ipConfigurationId value.
-
withIpConfigurationId
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
Get the customBgpIpAddress property: The custom BgpPeeringAddress which belongs to IpconfigurationId.- Returns:
- the customBgpIpAddress value.
-
withCustomBgpIpAddress
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
- Specified by:
toJsonin interfacecom.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.
-