Subnet Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. Subnet
- com.
public final class Subnet
Subnet information.
Constructor Summary
Constructor | Description |
---|---|
Subnet() |
Creates an instance of Subnet class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Usage |
allowPublicIp()
Get the allow |
String |
labSubnetName()
Get the lab |
String |
resourceId()
Get the resource |
void |
validate()
Validates the instance. |
Subnet |
withAllowPublicIp(UsagePermissionType allowPublicIp)
Set the allow |
Subnet |
withLabSubnetName(String labSubnetName)
Set the lab |
Subnet |
withResourceId(String resourceId)
Set the resource |
Methods inherited from java.lang.Object
Constructor Details
Subnet
public Subnet()
Creates an instance of Subnet class.
Method Details
allowPublicIp
public UsagePermissionType allowPublicIp()
Get the allowPublicIp property: The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
Returns:
labSubnetName
public String labSubnetName()
Get the labSubnetName property: The name of the subnet as seen in the lab.
Returns:
resourceId
public String resourceId()
Get the resourceId property: The resource ID of the subnet.
Returns:
validate
public void validate()
Validates the instance.
withAllowPublicIp
public Subnet withAllowPublicIp(UsagePermissionType allowPublicIp)
Set the allowPublicIp property: The permission policy of the subnet for allowing public IP addresses (i.e. Allow, Deny)).
Parameters:
Returns:
withLabSubnetName
public Subnet withLabSubnetName(String labSubnetName)
Set the labSubnetName property: The name of the subnet as seen in the lab.
Parameters:
Returns:
withResourceId
public Subnet withResourceId(String resourceId)
Set the resourceId property: The resource ID of the subnet.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for