PrivateAccessVirtualNetwork Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. PrivateAccessVirtualNetwork
- com.
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 Private |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Private |
fromJson(JsonReader jsonReader)
Reads an instance of Private |
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 resource |
List<Private |
subnets()
Get the subnets property: A List of subnets that access is allowed to on this Virtual Network. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Private |
withKey(Integer key)
Set the key property: The key (ID) of the Virtual Network. |
Private |
withName(String name)
Set the name property: The name of the Virtual Network. |
Private |
withResourceId(String resourceId)
Set the resource |
Private |
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:
Returns:
Throws:
key
public Integer key()
Get the key property: The key (ID) of the Virtual Network.
Returns:
name
public String name()
Get the name property: The name of the Virtual Network.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The ARM uri of the Virtual Network.
Returns:
subnets
public List
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:
toJson
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:
Returns:
withName
public PrivateAccessVirtualNetwork withName(String name)
Set the name property: The name of the Virtual Network.
Parameters:
Returns:
withResourceId
public PrivateAccessVirtualNetwork withResourceId(String resourceId)
Set the resourceId property: The ARM uri of the Virtual Network.
Parameters:
Returns:
withSubnets
public PrivateAccessVirtualNetwork withSubnets(List
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:
Returns:
Applies to
Azure SDK for Java