Share via


DelegatedSubnetUsage Class

  • java.lang.Object
    • com.azure.resourcemanager.postgresqlflexibleserver.models.DelegatedSubnetUsage

Implements

public final class DelegatedSubnetUsage
implements JsonSerializable<DelegatedSubnetUsage>

Delegated subnet usage data.

Constructor Summary

Constructor Description
DelegatedSubnetUsage()

Creates an instance of DelegatedSubnetUsage class.

Method Summary

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

Reads an instance of DelegatedSubnetUsage from the JsonReader.

String subnetName()

Get the subnetName property: Name of the delegated subnet for which IP addresses are in use.

JsonWriter toJson(JsonWriter jsonWriter)
Long usage()

Get the usage property: Number of IP addresses used by the delegated subnet.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DelegatedSubnetUsage

public DelegatedSubnetUsage()

Creates an instance of DelegatedSubnetUsage class.

Method Details

fromJson

public static DelegatedSubnetUsage fromJson(JsonReader jsonReader)

Reads an instance of DelegatedSubnetUsage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

subnetName

public String subnetName()

Get the subnetName property: Name of the delegated subnet for which IP addresses are in use.

Returns:

the subnetName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

usage

public Long usage()

Get the usage property: Number of IP addresses used by the delegated subnet.

Returns:

the usage value.

validate

public void validate()

Validates the instance.

Applies to