VirtualMachineNetworkInterfaceConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineNetworkInterfaceConfiguration
- com.
Implements
public final class VirtualMachineNetworkInterfaceConfiguration
implements JsonSerializable<VirtualMachineNetworkInterfaceConfiguration>
Describes a virtual machine network interface configurations.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineNetworkInterfaceConfiguration() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
Network |
auxiliaryMode()
Get the auxiliary |
Network |
auxiliarySku()
Get the auxiliary |
Delete |
deleteOption()
Get the delete |
Boolean |
disableTcpStateTracking()
Get the disable |
Virtual |
dnsSettings()
Get the dns |
Sub |
dscpConfiguration()
Get the dscp |
Boolean |
enableAcceleratedNetworking()
Get the enable |
Boolean |
enableFpga()
Get the enable |
Boolean |
enableIpForwarding()
Get the enable |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
List<Virtual |
ipConfigurations()
Get the ip |
String |
name()
Get the name property: The network interface configuration name. |
Sub |
networkSecurityGroup()
Get the network |
Boolean |
primary()
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)
Set the auxiliary |
Virtual |
withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku)
Set the auxiliary |
Virtual |
withDeleteOption(DeleteOptions deleteOption)
Set the delete |
Virtual |
withDisableTcpStateTracking(Boolean disableTcpStateTracking)
Set the disable |
Virtual |
withDnsSettings(VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings)
Set the dns |
Virtual |
withDscpConfiguration(SubResource dscpConfiguration)
Set the dscp |
Virtual |
withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set the enable |
Virtual |
withEnableFpga(Boolean enableFpga)
Set the enable |
Virtual |
withEnableIpForwarding(Boolean enableIpForwarding)
Set the enable |
Virtual |
withIpConfigurations(List<VirtualMachineNetworkInterfaceIpConfiguration> ipConfigurations)
Set the ip |
Virtual |
withName(String name)
Set the name property: The network interface configuration name. |
Virtual |
withNetworkSecurityGroup(SubResource networkSecurityGroup)
Set the network |
Virtual |
withPrimary(Boolean primary)
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface. |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineNetworkInterfaceConfiguration
public VirtualMachineNetworkInterfaceConfiguration()
Creates an instance of VirtualMachineNetworkInterfaceConfiguration class.
Method Details
auxiliaryMode
public NetworkInterfaceAuxiliaryMode auxiliaryMode()
Get the auxiliaryMode property: Specifies whether the Auxiliary mode is enabled for the Network Interface resource.
Returns:
auxiliarySku
public NetworkInterfaceAuxiliarySku auxiliarySku()
Get the auxiliarySku property: Specifies whether the Auxiliary sku is enabled for the Network Interface resource.
Returns:
deleteOption
public DeleteOptions deleteOption()
Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.
Returns:
disableTcpStateTracking
public Boolean disableTcpStateTracking()
Get the disableTcpStateTracking property: Specifies whether the network interface is disabled for tcp state tracking.
Returns:
dnsSettings
public VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings()
Get the dnsSettings property: The dns settings to be applied on the network interfaces.
Returns:
dscpConfiguration
public SubResource dscpConfiguration()
Get the dscpConfiguration property: The dscpConfiguration property.
Returns:
enableAcceleratedNetworking
public Boolean enableAcceleratedNetworking()
Get the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.
Returns:
enableFpga
public Boolean enableFpga()
Get the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.
Returns:
enableIpForwarding
public Boolean enableIpForwarding()
Get the enableIpForwarding property: Whether IP forwarding enabled on this NIC.
Returns:
fromJson
public static VirtualMachineNetworkInterfaceConfiguration fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineNetworkInterfaceConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
ipConfigurations
public List
Get the ipConfigurations property: Specifies the IP configurations of the network interface.
Returns:
name
public String name()
Get the name property: The network interface configuration name.
Returns:
networkSecurityGroup
public SubResource networkSecurityGroup()
Get the networkSecurityGroup property: The network security group.
Returns:
primary
public Boolean primary()
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAuxiliaryMode
public VirtualMachineNetworkInterfaceConfiguration withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)
Set the auxiliaryMode property: Specifies whether the Auxiliary mode is enabled for the Network Interface resource.
Parameters:
Returns:
withAuxiliarySku
public VirtualMachineNetworkInterfaceConfiguration withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku)
Set the auxiliarySku property: Specifies whether the Auxiliary sku is enabled for the Network Interface resource.
Parameters:
Returns:
withDeleteOption
public VirtualMachineNetworkInterfaceConfiguration withDeleteOption(DeleteOptions deleteOption)
Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.
Parameters:
Returns:
withDisableTcpStateTracking
public VirtualMachineNetworkInterfaceConfiguration withDisableTcpStateTracking(Boolean disableTcpStateTracking)
Set the disableTcpStateTracking property: Specifies whether the network interface is disabled for tcp state tracking.
Parameters:
Returns:
withDnsSettings
public VirtualMachineNetworkInterfaceConfiguration withDnsSettings(VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings)
Set the dnsSettings property: The dns settings to be applied on the network interfaces.
Parameters:
Returns:
withDscpConfiguration
public VirtualMachineNetworkInterfaceConfiguration withDscpConfiguration(SubResource dscpConfiguration)
Set the dscpConfiguration property: The dscpConfiguration property.
Parameters:
Returns:
withEnableAcceleratedNetworking
public VirtualMachineNetworkInterfaceConfiguration withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.
Parameters:
Returns:
withEnableFpga
public VirtualMachineNetworkInterfaceConfiguration withEnableFpga(Boolean enableFpga)
Set the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.
Parameters:
Returns:
withEnableIpForwarding
public VirtualMachineNetworkInterfaceConfiguration withEnableIpForwarding(Boolean enableIpForwarding)
Set the enableIpForwarding property: Whether IP forwarding enabled on this NIC.
Parameters:
Returns:
withIpConfigurations
public VirtualMachineNetworkInterfaceConfiguration withIpConfigurations(List
Set the ipConfigurations property: Specifies the IP configurations of the network interface.
Parameters:
Returns:
withName
public VirtualMachineNetworkInterfaceConfiguration withName(String name)
Set the name property: The network interface configuration name.
Parameters:
Returns:
withNetworkSecurityGroup
public VirtualMachineNetworkInterfaceConfiguration withNetworkSecurityGroup(SubResource networkSecurityGroup)
Set the networkSecurityGroup property: The network security group.
Parameters:
Returns:
withPrimary
public VirtualMachineNetworkInterfaceConfiguration withPrimary(Boolean primary)
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
Parameters:
Returns:
Applies to
Azure SDK for Java