NetworkProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.devopsinfrastructure.models.NetworkProfile

Implements

public final class NetworkProfile
implements JsonSerializable<NetworkProfile>

The network profile of the machines in the pool.

Constructor Summary

Constructor Description
NetworkProfile()

Creates an instance of NetworkProfile class.

Method Summary

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

Reads an instance of NetworkProfile from the JsonReader.

String subnetId()

Get the subnetId property: The subnet id on which to put all machines created in the pool.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkProfile withSubnetId(String subnetId)

Set the subnetId property: The subnet id on which to put all machines created in the pool.

Methods inherited from java.lang.Object

Constructor Details

NetworkProfile

public NetworkProfile()

Creates an instance of NetworkProfile class.

Method Details

fromJson

public static NetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of NetworkProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

subnetId

public String subnetId()

Get the subnetId property: The subnet id on which to put all machines created in the pool.

Returns:

the subnetId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSubnetId

public NetworkProfile withSubnetId(String subnetId)

Set the subnetId property: The subnet id on which to put all machines created in the pool.

Parameters:

subnetId - the subnetId value to set.

Returns:

the NetworkProfile object itself.

Applies to