NetworkInterface Class

  • java.lang.Object
    • com.azure.resourcemanager.hardwaresecuritymodules.models.NetworkInterface

Implements

public final class NetworkInterface
implements JsonSerializable<NetworkInterface>

The network interface definition.

Constructor Summary

Constructor Description
NetworkInterface()

Creates an instance of NetworkInterface class.

Method Summary

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

Reads an instance of NetworkInterface from the JsonReader.

String privateIpAddress()

Get the privateIpAddress property: Private Ip address of the interface.

String resourceId()

Get the resourceId property: The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkInterface withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: Private Ip address of the interface.

Methods inherited from java.lang.Object

Constructor Details

NetworkInterface

public NetworkInterface()

Creates an instance of NetworkInterface class.

Method Details

fromJson

public static NetworkInterface fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterface from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

privateIpAddress

public String privateIpAddress()

Get the privateIpAddress property: Private Ip address of the interface.

Returns:

the privateIpAddress value.

resourceId

public String resourceId()

Get the resourceId property: The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...

Returns:

the resourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withPrivateIpAddress

public NetworkInterface withPrivateIpAddress(String privateIpAddress)

Set the privateIpAddress property: Private Ip address of the interface.

Parameters:

privateIpAddress - the privateIpAddress value to set.

Returns:

the NetworkInterface object itself.

Applies to