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 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

      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.
    • 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

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.