Class Subnet
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.Subnet
Subnet information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the allowPublicIp property: The permission policy of the subnet for allowing public IP addresses (i.e.Get the labSubnetName property: The name of the subnet as seen in the lab.Get the resourceId property: The resource ID of the subnet.void
validate()
Validates the instance.withAllowPublicIp
(UsagePermissionType allowPublicIp) Set the allowPublicIp property: The permission policy of the subnet for allowing public IP addresses (i.e.withLabSubnetName
(String labSubnetName) Set the labSubnetName property: The name of the subnet as seen in the lab.withResourceId
(String resourceId) Set the resourceId property: The resource ID of the subnet.
-
Constructor Details
-
Subnet
public Subnet()Creates an instance of Subnet class.
-
-
Method Details
-
resourceId
Get the resourceId property: The resource ID of the subnet.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The resource ID of the subnet.- Parameters:
resourceId
- the resourceId value to set.- Returns:
- the Subnet object itself.
-
labSubnetName
Get the labSubnetName property: The name of the subnet as seen in the lab.- Returns:
- the labSubnetName value.
-
withLabSubnetName
Set the labSubnetName property: The name of the subnet as seen in the lab.- Parameters:
labSubnetName
- the labSubnetName value to set.- Returns:
- the Subnet object itself.
-
allowPublicIp
Get the allowPublicIp property: The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).- Returns:
- the allowPublicIp value.
-
withAllowPublicIp
Set the allowPublicIp property: The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).- Parameters:
allowPublicIp
- the allowPublicIp value to set.- Returns:
- the Subnet object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-