NetworkProfile Class

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

Implements

public final class NetworkProfile
implements JsonSerializable<NetworkProfile>

The network profile definition.

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: Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.

ApiEntityReference subnet()

Get the subnet property: Specifies the identifier of the subnet.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkProfile withNetworkInterfaces(List<NetworkInterface> networkInterfaces)

Set the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.

NetworkProfile withSubnet(ApiEntityReference subnet)

Set the subnet property: Specifies the identifier of the subnet.

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: Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.

Returns:

the networkInterfaces value.

subnet

public ApiEntityReference subnet()

Get the subnet property: Specifies the identifier of the subnet.

Returns:

the subnet 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: Specifies the list of resource Ids for the network interfaces associated with the dedicated HSM.

Parameters:

networkInterfaces - the networkInterfaces value to set.

Returns:

the NetworkProfile object itself.

withSubnet

public NetworkProfile withSubnet(ApiEntityReference subnet)

Set the subnet property: Specifies the identifier of the subnet.

Parameters:

subnet - the subnet value to set.

Returns:

the NetworkProfile object itself.

Applies to