Partager via


StaticCidrProperties Class

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

Implements

public final class StaticCidrProperties
implements JsonSerializable<StaticCidrProperties>

Properties of static CIDR resource.

Constructor Summary

Constructor Description
StaticCidrProperties()

Creates an instance of StaticCidrProperties 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.

static StaticCidrProperties fromJson(JsonReader jsonReader)

Reads an instance of StaticCidrProperties from the JsonReader.

String numberOfIpAddressesToAllocate()

Get the numberOfIpAddressesToAllocate property: Number of IP addresses to allocate for a static CIDR resource.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning states of a resource.

JsonWriter toJson(JsonWriter jsonWriter)
String totalNumberOfIpAddresses()

Get the totalNumberOfIpAddresses property: Total number of IP addresses allocated for the static CIDR resource.

void validate()

Validates the instance.

StaticCidrProperties withAddressPrefixes(List<String> addressPrefixes)

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

StaticCidrProperties withDescription(String description)

Set the description property: The description property.

StaticCidrProperties withNumberOfIpAddressesToAllocate(String numberOfIpAddressesToAllocate)

Set the numberOfIpAddressesToAllocate property: Number of IP addresses to allocate for a static CIDR resource.

StaticCidrProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: Provisioning states of a resource.

Methods inherited from java.lang.Object

Constructor Details

StaticCidrProperties

public StaticCidrProperties()

Creates an instance of StaticCidrProperties 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.

fromJson

public static StaticCidrProperties fromJson(JsonReader jsonReader)

Reads an instance of StaticCidrProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

numberOfIpAddressesToAllocate

public String numberOfIpAddressesToAllocate()

Get the numberOfIpAddressesToAllocate property: Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.

Returns:

the numberOfIpAddressesToAllocate 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:

totalNumberOfIpAddresses

public String totalNumberOfIpAddresses()

Get the totalNumberOfIpAddresses property: Total number of IP addresses allocated for the static CIDR resource.

Returns:

the totalNumberOfIpAddresses value.

validate

public void validate()

Validates the instance.

withAddressPrefixes

public StaticCidrProperties withAddressPrefixes(List addressPrefixes)

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

Parameters:

addressPrefixes - the addressPrefixes value to set.

Returns:

the StaticCidrProperties object itself.

withDescription

public StaticCidrProperties withDescription(String description)

Set the description property: The description property.

Parameters:

description - the description value to set.

Returns:

the StaticCidrProperties object itself.

withNumberOfIpAddressesToAllocate

public StaticCidrProperties withNumberOfIpAddressesToAllocate(String numberOfIpAddressesToAllocate)

Set the numberOfIpAddressesToAllocate property: Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space.

Parameters:

numberOfIpAddressesToAllocate - the numberOfIpAddressesToAllocate value to set.

Returns:

the StaticCidrProperties object itself.

withProvisioningState

public StaticCidrProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: Provisioning states of a resource.

Parameters:

provisioningState - the provisioningState value to set.

Returns:

the StaticCidrProperties object itself.

Applies to