Compartilhar via


IpamPoolProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.IpamPoolProperties

Implements

public final class IpamPoolProperties
implements JsonSerializable<IpamPoolProperties>

Properties of IpamPool resource properties which are specific to the Pool resource.

Constructor Summary

Constructor Description
IpamPoolProperties()

Creates an instance of IpamPoolProperties class.

Method Summary

Modifier and Type Method and Description
List<String> addressPrefixes()

Get the addressPrefixes property: List of IP address prefixes of the resource.

String description()

Get the description property: The description property.

String displayName()

Get the displayName property: String representing a friendly name for the resource.

static IpamPoolProperties fromJson(JsonReader jsonReader)

Reads an instance of IpamPoolProperties from the JsonReader.

List<IpType> ipAddressType()

Get the ipAddressType property: List of IP address type for the IpamPool.

String parentPoolName()

Get the parentPoolName property: String representing parent IpamPool resource name.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning states of a resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IpamPoolProperties withAddressPrefixes(List<String> addressPrefixes)

Set the addressPrefixes property: List of IP address prefixes of the resource.

IpamPoolProperties withDescription(String description)

Set the description property: The description property.

IpamPoolProperties withDisplayName(String displayName)

Set the displayName property: String representing a friendly name for the resource.

IpamPoolProperties withParentPoolName(String parentPoolName)

Set the parentPoolName property: String representing parent IpamPool resource name.

IpamPoolProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: Provisioning states of a resource.

Methods inherited from java.lang.Object

Constructor Details

IpamPoolProperties

public IpamPoolProperties()

Creates an instance of IpamPoolProperties class.

Method Details

addressPrefixes

public List addressPrefixes()

Get the addressPrefixes property: List of IP address prefixes of the resource.

Returns:

the addressPrefixes value.

description

public String description()

Get the description property: The description property.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: String representing a friendly name for the resource.

Returns:

the displayName value.

fromJson

public static IpamPoolProperties fromJson(JsonReader jsonReader)

Reads an instance of IpamPoolProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IpamPoolProperties 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.

ipAddressType

public List ipAddressType()

Get the ipAddressType property: List of IP address type for the IpamPool.

Returns:

the ipAddressType value.

parentPoolName

public String parentPoolName()

Get the parentPoolName property: String representing parent IpamPool resource name. If empty the IpamPool will be a root pool.

Returns:

the parentPoolName value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning states of a resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAddressPrefixes

public IpamPoolProperties withAddressPrefixes(List addressPrefixes)

Set the addressPrefixes property: List of IP address prefixes of the resource.

Parameters:

addressPrefixes - the addressPrefixes value to set.

Returns:

the IpamPoolProperties object itself.

withDescription

public IpamPoolProperties withDescription(String description)

Set the description property: The description property.

Parameters:

description - the description value to set.

Returns:

the IpamPoolProperties object itself.

withDisplayName

public IpamPoolProperties withDisplayName(String displayName)

Set the displayName property: String representing a friendly name for the resource.

Parameters:

displayName - the displayName value to set.

Returns:

the IpamPoolProperties object itself.

withParentPoolName

public IpamPoolProperties withParentPoolName(String parentPoolName)

Set the parentPoolName property: String representing parent IpamPool resource name. If empty the IpamPool will be a root pool.

Parameters:

parentPoolName - the parentPoolName value to set.

Returns:

the IpamPoolProperties object itself.

withProvisioningState

public IpamPoolProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: Provisioning states of a resource.

Parameters:

provisioningState - the provisioningState value to set.

Returns:

the IpamPoolProperties object itself.

Applies to