Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import com.microsoft.azure.SubResource; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
Describes a virtual machine scale set network profile's network configurations.
/** * Describes a virtual machine scale set network profile's network * configurations. */
@JsonFlatten public class VirtualMachineScaleSetNetworkConfiguration extends SubResource {
The network configuration name.
/** * The network configuration name. */
@JsonProperty(value = "name", required = true) private String name;
Specifies the primary network interface in case the virtual machine has more than 1 network interface.
/** * Specifies the primary network interface in case the virtual machine has * more than 1 network interface. */
@JsonProperty(value = "properties.primary") private Boolean primary;
Specifies whether the network interface is accelerated networking-enabled.
/** * Specifies whether the network interface is accelerated * networking-enabled. */
@JsonProperty(value = "properties.enableAcceleratedNetworking") private Boolean enableAcceleratedNetworking;
Specifies whether the network interface is FPGA networking-enabled.
/** * Specifies whether the network interface is FPGA networking-enabled. */
@JsonProperty(value = "properties.enableFpga") private Boolean enableFpga;
The network security group.
/** * The network security group. */
@JsonProperty(value = "properties.networkSecurityGroup") private SubResource networkSecurityGroup;
The dns settings to be applied on the network interfaces.
/** * The dns settings to be applied on the network interfaces. */
@JsonProperty(value = "properties.dnsSettings") private VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings;
Specifies the IP configurations of the network interface.
/** * Specifies the IP configurations of the network interface. */
@JsonProperty(value = "properties.ipConfigurations", required = true) private List<VirtualMachineScaleSetIPConfiguration> ipConfigurations;
Whether IP forwarding enabled on this NIC.
/** * Whether IP forwarding enabled on this NIC. */
@JsonProperty(value = "properties.enableIPForwarding") private Boolean enableIPForwarding;
Get the network configuration name.
Returns:the name value
/** * Get the network configuration name. * * @return the name value */
public String name() { return this.name; }
Set the network configuration name.
Params:
  • name – the name value to set
Returns:the VirtualMachineScaleSetNetworkConfiguration object itself.
/** * Set the network configuration name. * * @param name the name value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. */
public VirtualMachineScaleSetNetworkConfiguration withName(String name) { this.name = name; return this; }
Get specifies the primary network interface in case the virtual machine has more than 1 network interface.
Returns:the primary value
/** * Get specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @return the primary value */
public Boolean primary() { return this.primary; }
Set specifies the primary network interface in case the virtual machine has more than 1 network interface.
Params:
  • primary – the primary value to set
Returns:the VirtualMachineScaleSetNetworkConfiguration object itself.
/** * Set specifies the primary network interface in case the virtual machine has more than 1 network interface. * * @param primary the primary value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. */
public VirtualMachineScaleSetNetworkConfiguration withPrimary(Boolean primary) { this.primary = primary; return this; }
Get specifies whether the network interface is accelerated networking-enabled.
Returns:the enableAcceleratedNetworking value
/** * Get specifies whether the network interface is accelerated networking-enabled. * * @return the enableAcceleratedNetworking value */
public Boolean enableAcceleratedNetworking() { return this.enableAcceleratedNetworking; }
Set specifies whether the network interface is accelerated networking-enabled.
Params:
  • enableAcceleratedNetworking – the enableAcceleratedNetworking value to set
Returns:the VirtualMachineScaleSetNetworkConfiguration object itself.
/** * Set specifies whether the network interface is accelerated networking-enabled. * * @param enableAcceleratedNetworking the enableAcceleratedNetworking value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. */
public VirtualMachineScaleSetNetworkConfiguration withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking) { this.enableAcceleratedNetworking = enableAcceleratedNetworking; return this; }
Get specifies whether the network interface is FPGA networking-enabled.
Returns:the enableFpga value
/** * Get specifies whether the network interface is FPGA networking-enabled. * * @return the enableFpga value */
public Boolean enableFpga() { return this.enableFpga; }
Set specifies whether the network interface is FPGA networking-enabled.
Params:
  • enableFpga – the enableFpga value to set
Returns:the VirtualMachineScaleSetNetworkConfiguration object itself.
/** * Set specifies whether the network interface is FPGA networking-enabled. * * @param enableFpga the enableFpga value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. */
public VirtualMachineScaleSetNetworkConfiguration withEnableFpga(Boolean enableFpga) { this.enableFpga = enableFpga; return this; }
Get the network security group.
Returns:the networkSecurityGroup value
/** * Get the network security group. * * @return the networkSecurityGroup value */
public SubResource networkSecurityGroup() { return this.networkSecurityGroup; }
Set the network security group.
Params:
  • networkSecurityGroup – the networkSecurityGroup value to set
Returns:the VirtualMachineScaleSetNetworkConfiguration object itself.
/** * Set the network security group. * * @param networkSecurityGroup the networkSecurityGroup value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. */
public VirtualMachineScaleSetNetworkConfiguration withNetworkSecurityGroup(SubResource networkSecurityGroup) { this.networkSecurityGroup = networkSecurityGroup; return this; }
Get the dns settings to be applied on the network interfaces.
Returns:the dnsSettings value
/** * Get the dns settings to be applied on the network interfaces. * * @return the dnsSettings value */
public VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings() { return this.dnsSettings; }
Set the dns settings to be applied on the network interfaces.
Params:
  • dnsSettings – the dnsSettings value to set
Returns:the VirtualMachineScaleSetNetworkConfiguration object itself.
/** * Set the dns settings to be applied on the network interfaces. * * @param dnsSettings the dnsSettings value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. */
public VirtualMachineScaleSetNetworkConfiguration withDnsSettings(VirtualMachineScaleSetNetworkConfigurationDnsSettings dnsSettings) { this.dnsSettings = dnsSettings; return this; }
Get specifies the IP configurations of the network interface.
Returns:the ipConfigurations value
/** * Get specifies the IP configurations of the network interface. * * @return the ipConfigurations value */
public List<VirtualMachineScaleSetIPConfiguration> ipConfigurations() { return this.ipConfigurations; }
Set specifies the IP configurations of the network interface.
Params:
  • ipConfigurations – the ipConfigurations value to set
Returns:the VirtualMachineScaleSetNetworkConfiguration object itself.
/** * Set specifies the IP configurations of the network interface. * * @param ipConfigurations the ipConfigurations value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. */
public VirtualMachineScaleSetNetworkConfiguration withIpConfigurations(List<VirtualMachineScaleSetIPConfiguration> ipConfigurations) { this.ipConfigurations = ipConfigurations; return this; }
Get whether IP forwarding enabled on this NIC.
Returns:the enableIPForwarding value
/** * Get whether IP forwarding enabled on this NIC. * * @return the enableIPForwarding value */
public Boolean enableIPForwarding() { return this.enableIPForwarding; }
Set whether IP forwarding enabled on this NIC.
Params:
  • enableIPForwarding – the enableIPForwarding value to set
Returns:the VirtualMachineScaleSetNetworkConfiguration object itself.
/** * Set whether IP forwarding enabled on this NIC. * * @param enableIPForwarding the enableIPForwarding value to set * @return the VirtualMachineScaleSetNetworkConfiguration object itself. */
public VirtualMachineScaleSetNetworkConfiguration withEnableIPForwarding(Boolean enableIPForwarding) { this.enableIPForwarding = enableIPForwarding; return this; } }