NetworkProfile Class

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

Implements

public final class NetworkProfile
implements JsonSerializable<NetworkProfile>

Defines the resource properties.

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.

List<NetworkInterface> networkInterfaces()

Get the networkInterfaces property: Gets or sets the list of network interfaces associated with the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkProfile withNetworkInterfaces(List<NetworkInterface> networkInterfaces)

Set the networkInterfaces property: Gets or sets the list of network interfaces associated with the virtual machine.

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 an error occurs while reading the NetworkProfile.

networkInterfaces

public List<NetworkInterface> networkInterfaces()

Get the networkInterfaces property: Gets or sets the list of network interfaces associated with the virtual machine.

Returns:

the networkInterfaces value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNetworkInterfaces

public NetworkProfile withNetworkInterfaces(List<NetworkInterface> networkInterfaces)

Set the networkInterfaces property: Gets or sets the list of network interfaces associated with the virtual machine.

Parameters:

networkInterfaces - the networkInterfaces value to set.

Returns:

the NetworkProfile object itself.

Applies to