PrivateAccessVirtualNetwork Class

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

public final class 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
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.

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

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.

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