IpConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.dnsresolver.models.IpConfiguration

Implements

public final class IpConfiguration
implements JsonSerializable<IpConfiguration>

IP configuration.

Constructor Summary

Constructor Description
IpConfiguration()

Creates an instance of IpConfiguration class.

Method Summary

Modifier and Type Method and Description
static IpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of IpConfiguration from the JsonReader.

String privateIpAddress()

Get the privateIpAddress property: Private IP address of the IP configuration.

IpAllocationMethod privateIpAllocationMethod()

Get the privateIpAllocationMethod property: Private IP address allocation method.

SubResource subnet()

Get the subnet property: The reference to the subnet bound to the IP configuration.

JsonWriter toJson(JsonWriter jsonWriter)
IpConfiguration withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: Private IP address of the IP configuration.

IpConfiguration withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

Set the privateIpAllocationMethod property: Private IP address allocation method.

IpConfiguration withSubnet(SubResource subnet)

Set the subnet property: The reference to the subnet bound to the IP configuration.

Methods inherited from java.lang.Object

Constructor Details

IpConfiguration

public IpConfiguration()

Creates an instance of IpConfiguration class.

Method Details

fromJson

public static IpConfiguration fromJson(JsonReader jsonReader)

Reads an instance of IpConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IpConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

privateIpAddress

public String privateIpAddress()

Get the privateIpAddress property: Private IP address of the IP configuration.

Returns:

the privateIpAddress value.

privateIpAllocationMethod

public IpAllocationMethod privateIpAllocationMethod()

Get the privateIpAllocationMethod property: Private IP address allocation method.

Returns:

the privateIpAllocationMethod value.

subnet

public SubResource subnet()

Get the subnet property: The reference to the subnet bound to the IP configuration.

Returns:

the subnet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withPrivateIpAddress

public IpConfiguration withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: Private IP address of the IP configuration.

Parameters:

privateIpAddress - the privateIpAddress value to set.

Returns:

the IpConfiguration object itself.

withPrivateIpAllocationMethod

public IpConfiguration withPrivateIpAllocationMethod(IpAllocationMethod privateIpAllocationMethod)

Set the privateIpAllocationMethod property: Private IP address allocation method.

Parameters:

privateIpAllocationMethod - the privateIpAllocationMethod value to set.

Returns:

the IpConfiguration object itself.

withSubnet

public IpConfiguration withSubnet(SubResource subnet)

Set the subnet property: The reference to the subnet bound to the IP configuration.

Parameters:

subnet - the subnet value to set.

Returns:

the IpConfiguration object itself.

Applies to