Class VirtualMachineNetworkInterfaceConfigurationProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.VirtualMachineNetworkInterfaceConfigurationProperties
-
public final class VirtualMachineNetworkInterfaceConfigurationProperties extends Object
Describes a virtual machine network profile's IP configuration.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineNetworkInterfaceConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteOptionsdeleteOption()Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.VirtualMachineNetworkInterfaceDnsSettingsConfigurationdnsSettings()Get the dnsSettings property: The dns settings to be applied on the network interfaces.com.azure.core.management.SubResourcedscpConfiguration()Get the dscpConfiguration property: The dscpConfiguration property.BooleanenableAcceleratedNetworking()Get the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.BooleanenableFpga()Get the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.BooleanenableIpForwarding()Get the enableIpForwarding property: Whether IP forwarding enabled on this NIC.List<VirtualMachineNetworkInterfaceIpConfiguration>ipConfigurations()Get the ipConfigurations property: Specifies the IP configurations of the network interface.com.azure.core.management.SubResourcenetworkSecurityGroup()Get the networkSecurityGroup property: The network security group.Booleanprimary()Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.voidvalidate()Validates the instance.VirtualMachineNetworkInterfaceConfigurationPropertieswithDeleteOption(DeleteOptions deleteOption)Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.VirtualMachineNetworkInterfaceConfigurationPropertieswithDnsSettings(VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings)Set the dnsSettings property: The dns settings to be applied on the network interfaces.VirtualMachineNetworkInterfaceConfigurationPropertieswithDscpConfiguration(com.azure.core.management.SubResource dscpConfiguration)Set the dscpConfiguration property: The dscpConfiguration property.VirtualMachineNetworkInterfaceConfigurationPropertieswithEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)Set the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.VirtualMachineNetworkInterfaceConfigurationPropertieswithEnableFpga(Boolean enableFpga)Set the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.VirtualMachineNetworkInterfaceConfigurationPropertieswithEnableIpForwarding(Boolean enableIpForwarding)Set the enableIpForwarding property: Whether IP forwarding enabled on this NIC.VirtualMachineNetworkInterfaceConfigurationPropertieswithIpConfigurations(List<VirtualMachineNetworkInterfaceIpConfiguration> ipConfigurations)Set the ipConfigurations property: Specifies the IP configurations of the network interface.VirtualMachineNetworkInterfaceConfigurationPropertieswithNetworkSecurityGroup(com.azure.core.management.SubResource networkSecurityGroup)Set the networkSecurityGroup property: The network security group.VirtualMachineNetworkInterfaceConfigurationPropertieswithPrimary(Boolean primary)Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
-
-
-
Method Detail
-
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:
- the primary value.
-
withPrimary
public VirtualMachineNetworkInterfaceConfigurationProperties withPrimary(Boolean primary)
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.- Parameters:
primary- the primary value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
deleteOption
public DeleteOptions deleteOption()
Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.- Returns:
- the deleteOption value.
-
withDeleteOption
public VirtualMachineNetworkInterfaceConfigurationProperties withDeleteOption(DeleteOptions deleteOption)
Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.- Parameters:
deleteOption- the deleteOption value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
enableAcceleratedNetworking
public Boolean enableAcceleratedNetworking()
Get the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.- Returns:
- the enableAcceleratedNetworking value.
-
withEnableAcceleratedNetworking
public VirtualMachineNetworkInterfaceConfigurationProperties withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.- Parameters:
enableAcceleratedNetworking- the enableAcceleratedNetworking value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
enableFpga
public Boolean enableFpga()
Get the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.- Returns:
- the enableFpga value.
-
withEnableFpga
public VirtualMachineNetworkInterfaceConfigurationProperties withEnableFpga(Boolean enableFpga)
Set the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.- Parameters:
enableFpga- the enableFpga value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
enableIpForwarding
public Boolean enableIpForwarding()
Get the enableIpForwarding property: Whether IP forwarding enabled on this NIC.- Returns:
- the enableIpForwarding value.
-
withEnableIpForwarding
public VirtualMachineNetworkInterfaceConfigurationProperties withEnableIpForwarding(Boolean enableIpForwarding)
Set the enableIpForwarding property: Whether IP forwarding enabled on this NIC.- Parameters:
enableIpForwarding- the enableIpForwarding value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
networkSecurityGroup
public com.azure.core.management.SubResource networkSecurityGroup()
Get the networkSecurityGroup property: The network security group.- Returns:
- the networkSecurityGroup value.
-
withNetworkSecurityGroup
public VirtualMachineNetworkInterfaceConfigurationProperties withNetworkSecurityGroup(com.azure.core.management.SubResource networkSecurityGroup)
Set the networkSecurityGroup property: The network security group.- Parameters:
networkSecurityGroup- the networkSecurityGroup value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
dnsSettings
public VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings()
Get the dnsSettings property: The dns settings to be applied on the network interfaces.- Returns:
- the dnsSettings value.
-
withDnsSettings
public VirtualMachineNetworkInterfaceConfigurationProperties withDnsSettings(VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings)
Set the dnsSettings property: The dns settings to be applied on the network interfaces.- Parameters:
dnsSettings- the dnsSettings value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
ipConfigurations
public List<VirtualMachineNetworkInterfaceIpConfiguration> ipConfigurations()
Get the ipConfigurations property: Specifies the IP configurations of the network interface.- Returns:
- the ipConfigurations value.
-
withIpConfigurations
public VirtualMachineNetworkInterfaceConfigurationProperties withIpConfigurations(List<VirtualMachineNetworkInterfaceIpConfiguration> ipConfigurations)
Set the ipConfigurations property: Specifies the IP configurations of the network interface.- Parameters:
ipConfigurations- the ipConfigurations value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
dscpConfiguration
public com.azure.core.management.SubResource dscpConfiguration()
Get the dscpConfiguration property: The dscpConfiguration property.- Returns:
- the dscpConfiguration value.
-
withDscpConfiguration
public VirtualMachineNetworkInterfaceConfigurationProperties withDscpConfiguration(com.azure.core.management.SubResource dscpConfiguration)
Set the dscpConfiguration property: The dscpConfiguration property.- Parameters:
dscpConfiguration- the dscpConfiguration value to set.- Returns:
- the VirtualMachineNetworkInterfaceConfigurationProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-