Subnet Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.Subnet

Implements

public final class Subnet
implements JsonSerializable<Subnet>

Subnet information.

Constructor Summary

Constructor Description
Subnet()

Creates an instance of Subnet class.

Method Summary

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.

static Subnet fromJson(JsonReader jsonReader)

Reads an instance of Subnet from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
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.

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:

the allowPublicIp value.

fromJson

public static Subnet fromJson(JsonReader jsonReader)

Reads an instance of Subnet from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Subnet if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Subnet.

labSubnetName

public String labSubnetName()

Get the labSubnetName property: The name of the subnet as seen in the lab.

Returns:

the labSubnetName value.

resourceId

public String resourceId()

Get the resourceId property: The resource ID of the subnet.

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

allowPublicIp - the allowPublicIp value to set.

Returns:

the Subnet object itself.

withLabSubnetName

public Subnet withLabSubnetName(String labSubnetName)

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.

withResourceId

public Subnet withResourceId(String resourceId)

Set the resourceId property: The resource ID of the subnet.

Parameters:

resourceId - the resourceId value to set.

Returns:

the Subnet object itself.

Applies to