Class PrivateAccessSubnet
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.PrivateAccessSubnet
-
public final class PrivateAccessSubnet extends Object
Description of a Virtual Network subnet that is useable for private site access.
-
-
Constructor Summary
Constructors Constructor Description PrivateAccessSubnet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerkey()Get the key property: The key (ID) of the subnet.Stringname()Get the name property: The name of the subnet.voidvalidate()Validates the instance.PrivateAccessSubnetwithKey(Integer key)Set the key property: The key (ID) of the subnet.PrivateAccessSubnetwithName(String name)Set the name property: The name of the subnet.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the subnet.- Returns:
- the name value.
-
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.
-
key
public Integer key()
Get the key property: The key (ID) of the subnet.- Returns:
- the key value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-