Share via


LabPlanNetworkProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.labservices.models.LabPlanNetworkProfile

Implements

public final class LabPlanNetworkProfile
implements JsonSerializable<LabPlanNetworkProfile>

Profile for how to handle networking for Lab Plans.

Constructor Summary

Constructor Description
LabPlanNetworkProfile()

Creates an instance of LabPlanNetworkProfile class.

Method Summary

Modifier and Type Method and Description
static LabPlanNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of LabPlanNetworkProfile from the JsonReader.

String subnetId()

Get the subnetId property: The external subnet resource id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LabPlanNetworkProfile withSubnetId(String subnetId)

Set the subnetId property: The external subnet resource id.

Methods inherited from java.lang.Object

Constructor Details

LabPlanNetworkProfile

public LabPlanNetworkProfile()

Creates an instance of LabPlanNetworkProfile class.

Method Details

fromJson

public static LabPlanNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of LabPlanNetworkProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LabPlanNetworkProfile 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 LabPlanNetworkProfile.

subnetId

public String subnetId()

Get the subnetId property: The external subnet resource id.

Returns:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSubnetId

public LabPlanNetworkProfile withSubnetId(String subnetId)

Set the subnetId property: The external subnet resource id.

Parameters:

subnetId - the subnetId value to set.

Returns:

the LabPlanNetworkProfile object itself.

Applies to