public final class Subnet extends Object
Constructor and Description |
---|
Subnet() |
Modifier and Type | Method and Description |
---|---|
UsagePermissionType |
allowPublicIp()
Get the allowPublicIp property: The permission policy of the subnet for allowing public IP addresses (i.e.
|
String |
labSubnetName()
Get the labSubnetName property: The name of the subnet as seen in the lab.
|
String |
resourceId()
Get the resourceId property: The resource ID of the subnet.
|
void |
validate()
Validates the instance.
|
Subnet |
withAllowPublicIp(UsagePermissionType allowPublicIp)
Set the allowPublicIp property: The permission policy of the subnet for allowing public IP addresses (i.e.
|
Subnet |
withLabSubnetName(String labSubnetName)
Set the labSubnetName property: The name of the subnet as seen in the lab.
|
Subnet |
withResourceId(String resourceId)
Set the resourceId property: The resource ID of the subnet.
|
public String resourceId()
public Subnet withResourceId(String resourceId)
resourceId
- the resourceId value to set.public String labSubnetName()
public Subnet withLabSubnetName(String labSubnetName)
labSubnetName
- the labSubnetName value to set.public UsagePermissionType allowPublicIp()
public Subnet withAllowPublicIp(UsagePermissionType allowPublicIp)
allowPublicIp
- the allowPublicIp value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.