Class PrivateAccessVirtualNetwork
java.lang.Object
com.azure.resourcemanager.appservice.models.PrivateAccessVirtualNetwork
Description of a Virtual Network that is useable for private site access.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionkey()
Get the key property: The key (ID) of the Virtual Network.name()
Get the name property: The name of the Virtual Network.Get the resourceId property: The ARM uri of the Virtual Network.subnets()
Get the subnets property: A List of subnets that access is allowed to on this Virtual Network.void
validate()
Validates the instance.Set the key property: The key (ID) of the Virtual Network.Set the name property: The name of the Virtual Network.withResourceId
(String resourceId) Set the resourceId property: The ARM uri of the Virtual Network.withSubnets
(List<PrivateAccessSubnet> subnets) Set the subnets property: A List of subnets that access is allowed to on this Virtual Network.
-
Constructor Details
-
PrivateAccessVirtualNetwork
public PrivateAccessVirtualNetwork()
-
-
Method Details
-
name
Get the name property: The name of the Virtual Network.- Returns:
- the name value.
-
withName
Set the name property: The name of the Virtual Network.- Parameters:
name
- the name value to set.- Returns:
- the PrivateAccessVirtualNetwork object itself.
-
key
Get the key property: The key (ID) of the Virtual Network.- Returns:
- the key value.
-
withKey
Set the key property: The key (ID) of the Virtual Network.- Parameters:
key
- the key value to set.- Returns:
- the PrivateAccessVirtualNetwork object itself.
-
resourceId
Get the resourceId property: The ARM uri of the Virtual Network.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The ARM uri of the Virtual Network.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the PrivateAccessVirtualNetwork object itself.
-
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.
-
withSubnets
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-