Condividi tramite


NvaInterfaceConfigurationsProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.NvaInterfaceConfigurationsProperties

Implements

public final class NvaInterfaceConfigurationsProperties
implements JsonSerializable<NvaInterfaceConfigurationsProperties>

Specifies input parameters required NVA in VNet interface configuration.

Constructor Summary

Constructor Description
NvaInterfaceConfigurationsProperties()

Creates an instance of NvaInterfaceConfigurationsProperties class.

Method Summary

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

Reads an instance of NvaInterfaceConfigurationsProperties from the JsonReader.

String name()

Get the name property: Specifies the name of the interface.

NvaInVnetSubnetReferenceProperties subnet()

Get the subnet property: A subnet resource id where the NIC will be deployed.

JsonWriter toJson(JsonWriter jsonWriter)
List<NvaNicType> type()

Get the type property: Specifies the NIC types for the NVA interface configuration.

void validate()

Validates the instance.

NvaInterfaceConfigurationsProperties withName(String name)

Set the name property: Specifies the name of the interface.

NvaInterfaceConfigurationsProperties withSubnet(NvaInVnetSubnetReferenceProperties subnet)

Set the subnet property: A subnet resource id where the NIC will be deployed.

NvaInterfaceConfigurationsProperties withType(List<NvaNicType> type)

Set the type property: Specifies the NIC types for the NVA interface configuration.

Methods inherited from java.lang.Object

Constructor Details

NvaInterfaceConfigurationsProperties

public NvaInterfaceConfigurationsProperties()

Creates an instance of NvaInterfaceConfigurationsProperties class.

Method Details

fromJson

public static NvaInterfaceConfigurationsProperties fromJson(JsonReader jsonReader)

Reads an instance of NvaInterfaceConfigurationsProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Specifies the name of the interface. Maximum length is 70 characters.

Returns:

the name value.

subnet

public NvaInVnetSubnetReferenceProperties subnet()

Get the subnet property: A subnet resource id where the NIC will be deployed. Each subnet resource uri should be unique.

Returns:

the subnet value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public List<NvaNicType> type()

Get the type property: Specifies the NIC types for the NVA interface configuration. Allowed values: PrivateNic, PublicNic, AdditionalPrivateNic, AdditionalPublicNic. Only the combination of PrivateNic and PublicNic is currently supported.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public NvaInterfaceConfigurationsProperties withName(String name)

Set the name property: Specifies the name of the interface. Maximum length is 70 characters.

Parameters:

name - the name value to set.

Returns:

the NvaInterfaceConfigurationsProperties object itself.

withSubnet

public NvaInterfaceConfigurationsProperties withSubnet(NvaInVnetSubnetReferenceProperties subnet)

Set the subnet property: A subnet resource id where the NIC will be deployed. Each subnet resource uri should be unique.

Parameters:

subnet - the subnet value to set.

Returns:

the NvaInterfaceConfigurationsProperties object itself.

withType

public NvaInterfaceConfigurationsProperties withType(List<NvaNicType> type)

Set the type property: Specifies the NIC types for the NVA interface configuration. Allowed values: PrivateNic, PublicNic, AdditionalPrivateNic, AdditionalPublicNic. Only the combination of PrivateNic and PublicNic is currently supported.

Parameters:

type - the type value to set.

Returns:

the NvaInterfaceConfigurationsProperties object itself.

Applies to