Class NvaInterfaceConfigurationsProperties
java.lang.Object
com.azure.resourcemanager.network.models.NvaInterfaceConfigurationsProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NvaInterfaceConfigurationsProperties>
public final class NvaInterfaceConfigurationsProperties
extends Object
implements com.azure.json.JsonSerializable<NvaInterfaceConfigurationsProperties>
Specifies input parameters required NVA in VNet interface configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NvaInterfaceConfigurationsProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NvaInterfaceConfigurationsProperties from the JsonReader.name()Get the name property: Specifies the name of the interface.subnet()Get the subnet property: A subnet resource id where the NIC will be deployed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Specifies the NIC types for the NVA interface configuration.voidvalidate()Validates the instance.Set the name property: Specifies the name of the interface.Set the subnet property: A subnet resource id where the NIC will be deployed.withType(List<NvaNicType> type) Set the type property: Specifies the NIC types for the NVA interface configuration.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NvaInterfaceConfigurationsProperties
public NvaInterfaceConfigurationsProperties()Creates an instance of NvaInterfaceConfigurationsProperties class.
-
-
Method Details
-
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.
-
withSubnet
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.
-
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.
-
withType
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.
-
name
Get the name property: Specifies the name of the interface. Maximum length is 70 characters.- Returns:
- the name value.
-
withName
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NvaInterfaceConfigurationsProperties>- Throws:
IOException
-
fromJson
public static NvaInterfaceConfigurationsProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-