Class NetworkInterface
java.lang.Object
com.azure.resourcemanager.connectedvmware.models.NetworkInterface
Network Interface model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the deviceKey property: Gets or sets the device key value.Get the ipAddresses property: Gets or sets the nic ip addresses.Get the ipSettings property: Gets or sets the ipsettings.label()
Get the label property: Gets or sets the label of the virtual network in vCenter that the nic is connected to.Get the macAddress property: Gets or sets the NIC MAC address.name()
Get the name property: Gets or sets the name of the network interface.Get the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.Get the networkMoName property: Gets or sets the name of the virtual network in vCenter that the nic is connected to.Get the networkMoRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network that the nic is connected to.nicType()
Get the nicType property: NIC type.Get the powerOnBoot property: Gets or sets the power on boot.void
validate()
Validates the instance.withDeviceKey
(Integer deviceKey) Set the deviceKey property: Gets or sets the device key value.withIpSettings
(NicIpSettings ipSettings) Set the ipSettings property: Gets or sets the ipsettings.Set the name property: Gets or sets the name of the network interface.withNetworkId
(String networkId) Set the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.withNicType
(NicType nicType) Set the nicType property: NIC type.withPowerOnBoot
(PowerOnBootOption powerOnBoot) Set the powerOnBoot property: Gets or sets the power on boot.
-
Constructor Details
-
NetworkInterface
public NetworkInterface()
-
-
Method Details
-
name
Get the name property: Gets or sets the name of the network interface.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the network interface.- Parameters:
name
- the name value to set.- Returns:
- the NetworkInterface object itself.
-
label
Get the label property: Gets or sets the label of the virtual network in vCenter that the nic is connected to.- Returns:
- the label value.
-
ipAddresses
Get the ipAddresses property: Gets or sets the nic ip addresses.- Returns:
- the ipAddresses value.
-
macAddress
Get the macAddress property: Gets or sets the NIC MAC address.- Returns:
- the macAddress value.
-
networkId
Get the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.- Returns:
- the networkId value.
-
withNetworkId
Set the networkId property: Gets or sets the ARM Id of the network resource to connect the virtual machine.- Parameters:
networkId
- the networkId value to set.- Returns:
- the NetworkInterface object itself.
-
nicType
Get the nicType property: NIC type.- Returns:
- the nicType value.
-
withNicType
Set the nicType property: NIC type.- Parameters:
nicType
- the nicType value to set.- Returns:
- the NetworkInterface object itself.
-
powerOnBoot
Get the powerOnBoot property: Gets or sets the power on boot.- Returns:
- the powerOnBoot value.
-
withPowerOnBoot
Set the powerOnBoot property: Gets or sets the power on boot.- Parameters:
powerOnBoot
- the powerOnBoot value to set.- Returns:
- the NetworkInterface object itself.
-
networkMoRefId
Get the networkMoRefId property: Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network that the nic is connected to.- Returns:
- the networkMoRefId value.
-
networkMoName
Get the networkMoName property: Gets or sets the name of the virtual network in vCenter that the nic is connected to.- Returns:
- the networkMoName value.
-
deviceKey
Get the deviceKey property: Gets or sets the device key value.- Returns:
- the deviceKey value.
-
withDeviceKey
Set the deviceKey property: Gets or sets the device key value.- Parameters:
deviceKey
- the deviceKey value to set.- Returns:
- the NetworkInterface object itself.
-
ipSettings
Get the ipSettings property: Gets or sets the ipsettings.- Returns:
- the ipSettings value.
-
withIpSettings
Set the ipSettings property: Gets or sets the ipsettings.- Parameters:
ipSettings
- the ipSettings value to set.- Returns:
- the NetworkInterface object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-