Share via


LabNetworkProfile Class

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

Implements

public final class LabNetworkProfile
implements JsonSerializable<LabNetworkProfile>

Profile for how to handle networking for Labs.

Constructor Summary

Constructor Description
LabNetworkProfile()

Creates an instance of LabNetworkProfile class.

Method Summary

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

Reads an instance of LabNetworkProfile from the JsonReader.

String loadBalancerId()

Get the loadBalancerId property: The external load balancer resource id.

String publicIpId()

Get the publicIpId property: The external public IP resource id.

String subnetId()

Get the subnetId property: The external subnet resource id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LabNetworkProfile withLoadBalancerId(String loadBalancerId)

Set the loadBalancerId property: The external load balancer resource id.

LabNetworkProfile withPublicIpId(String publicIpId)

Set the publicIpId property: The external public IP resource id.

LabNetworkProfile withSubnetId(String subnetId)

Set the subnetId property: The external subnet resource id.

Methods inherited from java.lang.Object

Constructor Details

LabNetworkProfile

public LabNetworkProfile()

Creates an instance of LabNetworkProfile class.

Method Details

fromJson

public static LabNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of LabNetworkProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

loadBalancerId

public String loadBalancerId()

Get the loadBalancerId property: The external load balancer resource id.

Returns:

the loadBalancerId value.

publicIpId

public String publicIpId()

Get the publicIpId property: The external public IP resource id.

Returns:

the publicIpId value.

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.

withLoadBalancerId

public LabNetworkProfile withLoadBalancerId(String loadBalancerId)

Set the loadBalancerId property: The external load balancer resource id.

Parameters:

loadBalancerId - the loadBalancerId value to set.

Returns:

the LabNetworkProfile object itself.

withPublicIpId

public LabNetworkProfile withPublicIpId(String publicIpId)

Set the publicIpId property: The external public IP resource id.

Parameters:

publicIpId - the publicIpId value to set.

Returns:

the LabNetworkProfile object itself.

withSubnetId

public LabNetworkProfile withSubnetId(String subnetId)

Set the subnetId property: The external subnet resource id.

Parameters:

subnetId - the subnetId value to set.

Returns:

the LabNetworkProfile object itself.

Applies to