Partager via


PrivateAccessVirtualNetwork Class

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

Implements

public final class PrivateAccessVirtualNetwork
implements JsonSerializable<PrivateAccessVirtualNetwork>

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

Constructor Summary

Constructor Description
PrivateAccessVirtualNetwork()

Creates an instance of PrivateAccessVirtualNetwork class.

Method Summary

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

Reads an instance of PrivateAccessVirtualNetwork from the JsonReader.

Integer key()

Get the key property: The key (ID) of the Virtual Network.

String name()

Get the name property: The name of the Virtual Network.

String resourceId()

Get the resourceId property: The ARM uri of the Virtual Network.

List<PrivateAccessSubnet> subnets()

Get the subnets property: A List of subnets that access is allowed to on this Virtual Network.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PrivateAccessVirtualNetwork withKey(Integer key)

Set the key property: The key (ID) of the Virtual Network.

PrivateAccessVirtualNetwork withName(String name)

Set the name property: The name of the Virtual Network.

PrivateAccessVirtualNetwork withResourceId(String resourceId)

Set the resourceId property: The ARM uri of the Virtual Network.

PrivateAccessVirtualNetwork withSubnets(List<PrivateAccessSubnet> subnets)

Set the subnets property: A List of subnets that access is allowed to on this Virtual Network.

Methods inherited from java.lang.Object

Constructor Details

PrivateAccessVirtualNetwork

public PrivateAccessVirtualNetwork()

Creates an instance of PrivateAccessVirtualNetwork class.

Method Details

fromJson

public static PrivateAccessVirtualNetwork fromJson(JsonReader jsonReader)

Reads an instance of PrivateAccessVirtualNetwork from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

key

public Integer key()

Get the key property: The key (ID) of the Virtual Network.

Returns:

the key value.

name

public String name()

Get the name property: The name of the Virtual Network.

Returns:

the name value.

resourceId

public String resourceId()

Get the resourceId property: The ARM uri of the Virtual Network.

Returns:

the resourceId value.

subnets

public List subnets()

Get the subnets property: A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.

Returns:

the subnets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withKey

public PrivateAccessVirtualNetwork withKey(Integer key)

Set the key property: The key (ID) of the Virtual Network.

Parameters:

key - the key value to set.

Returns:

the PrivateAccessVirtualNetwork object itself.

withName

public PrivateAccessVirtualNetwork withName(String name)

Set the name property: The name of the Virtual Network.

Parameters:

name - the name value to set.

Returns:

the PrivateAccessVirtualNetwork object itself.

withResourceId

public PrivateAccessVirtualNetwork withResourceId(String resourceId)

Set the resourceId property: The ARM uri of the Virtual Network.

Parameters:

resourceId - the resourceId value to set.

Returns:

the PrivateAccessVirtualNetwork object itself.

withSubnets

public PrivateAccessVirtualNetwork withSubnets(List subnets)

Set the subnets property: A List of subnets that access is allowed to on this Virtual Network. An empty array (but not null) is interpreted to mean that all subnets are allowed within this Virtual Network.

Parameters:

subnets - the subnets value to set.

Returns:

the PrivateAccessVirtualNetwork object itself.

Applies to