PrivateAccessSubnet Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.PrivateAccessSubnet

Implements

public final class PrivateAccessSubnet
implements JsonSerializable<PrivateAccessSubnet>

Description of a Virtual Network subnet that is useable for private site access.

Constructor Summary

Constructor Description
PrivateAccessSubnet()

Creates an instance of PrivateAccessSubnet class.

Method Summary

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

Reads an instance of PrivateAccessSubnet from the JsonReader.

Integer key()

Get the key property: The key (ID) of the subnet.

String name()

Get the name property: The name of the subnet.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PrivateAccessSubnet withKey(Integer key)

Set the key property: The key (ID) of the subnet.

PrivateAccessSubnet withName(String name)

Set the name property: The name of the subnet.

Methods inherited from java.lang.Object

Constructor Details

PrivateAccessSubnet

public PrivateAccessSubnet()

Creates an instance of PrivateAccessSubnet class.

Method Details

fromJson

public static PrivateAccessSubnet fromJson(JsonReader jsonReader)

Reads an instance of PrivateAccessSubnet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

key

public Integer key()

Get the key property: The key (ID) of the subnet.

Returns:

the key value.

name

public String name()

Get the name property: The name of the subnet.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKey

public PrivateAccessSubnet withKey(Integer key)

Set the key property: The key (ID) of the subnet.

Parameters:

key - the key value to set.

Returns:

the PrivateAccessSubnet object itself.

withName

public PrivateAccessSubnet withName(String name)

Set the name property: The name of the subnet.

Parameters:

name - the name value to set.

Returns:

the PrivateAccessSubnet object itself.

Applies to