All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.azurefleet.inputs.VirtualMachineScaleSetNetworkConfigurationPropertiesArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.azurefleet.inputs;

import com.pulumi.azurenative.azurefleet.enums.DeleteOptions;
import com.pulumi.azurenative.azurefleet.enums.NetworkInterfaceAuxiliaryMode;
import com.pulumi.azurenative.azurefleet.enums.NetworkInterfaceAuxiliarySku;
import com.pulumi.azurenative.azurefleet.inputs.SubResourceArgs;
import com.pulumi.azurenative.azurefleet.inputs.VirtualMachineScaleSetIPConfigurationArgs;
import com.pulumi.azurenative.azurefleet.inputs.VirtualMachineScaleSetNetworkConfigurationDnsSettingsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes a virtual machine scale set network profile's IP configuration.
 * 
 */
public final class VirtualMachineScaleSetNetworkConfigurationPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualMachineScaleSetNetworkConfigurationPropertiesArgs Empty = new VirtualMachineScaleSetNetworkConfigurationPropertiesArgs();

    /**
     * Specifies whether the Auxiliary mode is enabled for the Network Interface
     * resource.
     * 
     */
    @Import(name="auxiliaryMode")
    private @Nullable Output> auxiliaryMode;

    /**
     * @return Specifies whether the Auxiliary mode is enabled for the Network Interface
     * resource.
     * 
     */
    public Optional>> auxiliaryMode() {
        return Optional.ofNullable(this.auxiliaryMode);
    }

    /**
     * Specifies whether the Auxiliary sku is enabled for the Network Interface
     * resource.
     * 
     */
    @Import(name="auxiliarySku")
    private @Nullable Output> auxiliarySku;

    /**
     * @return Specifies whether the Auxiliary sku is enabled for the Network Interface
     * resource.
     * 
     */
    public Optional>> auxiliarySku() {
        return Optional.ofNullable(this.auxiliarySku);
    }

    /**
     * Specify what happens to the network interface when the VM is deleted
     * 
     */
    @Import(name="deleteOption")
    private @Nullable Output> deleteOption;

    /**
     * @return Specify what happens to the network interface when the VM is deleted
     * 
     */
    public Optional>> deleteOption() {
        return Optional.ofNullable(this.deleteOption);
    }

    /**
     * Specifies whether the network interface is disabled for tcp state tracking.
     * 
     */
    @Import(name="disableTcpStateTracking")
    private @Nullable Output disableTcpStateTracking;

    /**
     * @return Specifies whether the network interface is disabled for tcp state tracking.
     * 
     */
    public Optional> disableTcpStateTracking() {
        return Optional.ofNullable(this.disableTcpStateTracking);
    }

    /**
     * The dns settings to be applied on the network interfaces.
     * 
     */
    @Import(name="dnsSettings")
    private @Nullable Output dnsSettings;

    /**
     * @return The dns settings to be applied on the network interfaces.
     * 
     */
    public Optional> dnsSettings() {
        return Optional.ofNullable(this.dnsSettings);
    }

    /**
     * Specifies whether the network interface is accelerated networking-enabled.
     * 
     */
    @Import(name="enableAcceleratedNetworking")
    private @Nullable Output enableAcceleratedNetworking;

    /**
     * @return Specifies whether the network interface is accelerated networking-enabled.
     * 
     */
    public Optional> enableAcceleratedNetworking() {
        return Optional.ofNullable(this.enableAcceleratedNetworking);
    }

    /**
     * Specifies whether the network interface is FPGA networking-enabled.
     * 
     */
    @Import(name="enableFpga")
    private @Nullable Output enableFpga;

    /**
     * @return Specifies whether the network interface is FPGA networking-enabled.
     * 
     */
    public Optional> enableFpga() {
        return Optional.ofNullable(this.enableFpga);
    }

    /**
     * Whether IP forwarding enabled on this NIC.
     * 
     */
    @Import(name="enableIPForwarding")
    private @Nullable Output enableIPForwarding;

    /**
     * @return Whether IP forwarding enabled on this NIC.
     * 
     */
    public Optional> enableIPForwarding() {
        return Optional.ofNullable(this.enableIPForwarding);
    }

    /**
     * Specifies the IP configurations of the network interface.
     * 
     */
    @Import(name="ipConfigurations", required=true)
    private Output> ipConfigurations;

    /**
     * @return Specifies the IP configurations of the network interface.
     * 
     */
    public Output> ipConfigurations() {
        return this.ipConfigurations;
    }

    /**
     * The network security group.
     * 
     */
    @Import(name="networkSecurityGroup")
    private @Nullable Output networkSecurityGroup;

    /**
     * @return The network security group.
     * 
     */
    public Optional> networkSecurityGroup() {
        return Optional.ofNullable(this.networkSecurityGroup);
    }

    /**
     * Specifies the primary network interface in case the virtual machine has more
     * than 1 network interface.
     * 
     */
    @Import(name="primary")
    private @Nullable Output primary;

    /**
     * @return Specifies the primary network interface in case the virtual machine has more
     * than 1 network interface.
     * 
     */
    public Optional> primary() {
        return Optional.ofNullable(this.primary);
    }

    private VirtualMachineScaleSetNetworkConfigurationPropertiesArgs() {}

    private VirtualMachineScaleSetNetworkConfigurationPropertiesArgs(VirtualMachineScaleSetNetworkConfigurationPropertiesArgs $) {
        this.auxiliaryMode = $.auxiliaryMode;
        this.auxiliarySku = $.auxiliarySku;
        this.deleteOption = $.deleteOption;
        this.disableTcpStateTracking = $.disableTcpStateTracking;
        this.dnsSettings = $.dnsSettings;
        this.enableAcceleratedNetworking = $.enableAcceleratedNetworking;
        this.enableFpga = $.enableFpga;
        this.enableIPForwarding = $.enableIPForwarding;
        this.ipConfigurations = $.ipConfigurations;
        this.networkSecurityGroup = $.networkSecurityGroup;
        this.primary = $.primary;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(VirtualMachineScaleSetNetworkConfigurationPropertiesArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private VirtualMachineScaleSetNetworkConfigurationPropertiesArgs $;

        public Builder() {
            $ = new VirtualMachineScaleSetNetworkConfigurationPropertiesArgs();
        }

        public Builder(VirtualMachineScaleSetNetworkConfigurationPropertiesArgs defaults) {
            $ = new VirtualMachineScaleSetNetworkConfigurationPropertiesArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param auxiliaryMode Specifies whether the Auxiliary mode is enabled for the Network Interface
         * resource.
         * 
         * @return builder
         * 
         */
        public Builder auxiliaryMode(@Nullable Output> auxiliaryMode) {
            $.auxiliaryMode = auxiliaryMode;
            return this;
        }

        /**
         * @param auxiliaryMode Specifies whether the Auxiliary mode is enabled for the Network Interface
         * resource.
         * 
         * @return builder
         * 
         */
        public Builder auxiliaryMode(Either auxiliaryMode) {
            return auxiliaryMode(Output.of(auxiliaryMode));
        }

        /**
         * @param auxiliaryMode Specifies whether the Auxiliary mode is enabled for the Network Interface
         * resource.
         * 
         * @return builder
         * 
         */
        public Builder auxiliaryMode(String auxiliaryMode) {
            return auxiliaryMode(Either.ofLeft(auxiliaryMode));
        }

        /**
         * @param auxiliaryMode Specifies whether the Auxiliary mode is enabled for the Network Interface
         * resource.
         * 
         * @return builder
         * 
         */
        public Builder auxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode) {
            return auxiliaryMode(Either.ofRight(auxiliaryMode));
        }

        /**
         * @param auxiliarySku Specifies whether the Auxiliary sku is enabled for the Network Interface
         * resource.
         * 
         * @return builder
         * 
         */
        public Builder auxiliarySku(@Nullable Output> auxiliarySku) {
            $.auxiliarySku = auxiliarySku;
            return this;
        }

        /**
         * @param auxiliarySku Specifies whether the Auxiliary sku is enabled for the Network Interface
         * resource.
         * 
         * @return builder
         * 
         */
        public Builder auxiliarySku(Either auxiliarySku) {
            return auxiliarySku(Output.of(auxiliarySku));
        }

        /**
         * @param auxiliarySku Specifies whether the Auxiliary sku is enabled for the Network Interface
         * resource.
         * 
         * @return builder
         * 
         */
        public Builder auxiliarySku(String auxiliarySku) {
            return auxiliarySku(Either.ofLeft(auxiliarySku));
        }

        /**
         * @param auxiliarySku Specifies whether the Auxiliary sku is enabled for the Network Interface
         * resource.
         * 
         * @return builder
         * 
         */
        public Builder auxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku) {
            return auxiliarySku(Either.ofRight(auxiliarySku));
        }

        /**
         * @param deleteOption Specify what happens to the network interface when the VM is deleted
         * 
         * @return builder
         * 
         */
        public Builder deleteOption(@Nullable Output> deleteOption) {
            $.deleteOption = deleteOption;
            return this;
        }

        /**
         * @param deleteOption Specify what happens to the network interface when the VM is deleted
         * 
         * @return builder
         * 
         */
        public Builder deleteOption(Either deleteOption) {
            return deleteOption(Output.of(deleteOption));
        }

        /**
         * @param deleteOption Specify what happens to the network interface when the VM is deleted
         * 
         * @return builder
         * 
         */
        public Builder deleteOption(String deleteOption) {
            return deleteOption(Either.ofLeft(deleteOption));
        }

        /**
         * @param deleteOption Specify what happens to the network interface when the VM is deleted
         * 
         * @return builder
         * 
         */
        public Builder deleteOption(DeleteOptions deleteOption) {
            return deleteOption(Either.ofRight(deleteOption));
        }

        /**
         * @param disableTcpStateTracking Specifies whether the network interface is disabled for tcp state tracking.
         * 
         * @return builder
         * 
         */
        public Builder disableTcpStateTracking(@Nullable Output disableTcpStateTracking) {
            $.disableTcpStateTracking = disableTcpStateTracking;
            return this;
        }

        /**
         * @param disableTcpStateTracking Specifies whether the network interface is disabled for tcp state tracking.
         * 
         * @return builder
         * 
         */
        public Builder disableTcpStateTracking(Boolean disableTcpStateTracking) {
            return disableTcpStateTracking(Output.of(disableTcpStateTracking));
        }

        /**
         * @param dnsSettings The dns settings to be applied on the network interfaces.
         * 
         * @return builder
         * 
         */
        public Builder dnsSettings(@Nullable Output dnsSettings) {
            $.dnsSettings = dnsSettings;
            return this;
        }

        /**
         * @param dnsSettings The dns settings to be applied on the network interfaces.
         * 
         * @return builder
         * 
         */
        public Builder dnsSettings(VirtualMachineScaleSetNetworkConfigurationDnsSettingsArgs dnsSettings) {
            return dnsSettings(Output.of(dnsSettings));
        }

        /**
         * @param enableAcceleratedNetworking Specifies whether the network interface is accelerated networking-enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableAcceleratedNetworking(@Nullable Output enableAcceleratedNetworking) {
            $.enableAcceleratedNetworking = enableAcceleratedNetworking;
            return this;
        }

        /**
         * @param enableAcceleratedNetworking Specifies whether the network interface is accelerated networking-enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableAcceleratedNetworking(Boolean enableAcceleratedNetworking) {
            return enableAcceleratedNetworking(Output.of(enableAcceleratedNetworking));
        }

        /**
         * @param enableFpga Specifies whether the network interface is FPGA networking-enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableFpga(@Nullable Output enableFpga) {
            $.enableFpga = enableFpga;
            return this;
        }

        /**
         * @param enableFpga Specifies whether the network interface is FPGA networking-enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableFpga(Boolean enableFpga) {
            return enableFpga(Output.of(enableFpga));
        }

        /**
         * @param enableIPForwarding Whether IP forwarding enabled on this NIC.
         * 
         * @return builder
         * 
         */
        public Builder enableIPForwarding(@Nullable Output enableIPForwarding) {
            $.enableIPForwarding = enableIPForwarding;
            return this;
        }

        /**
         * @param enableIPForwarding Whether IP forwarding enabled on this NIC.
         * 
         * @return builder
         * 
         */
        public Builder enableIPForwarding(Boolean enableIPForwarding) {
            return enableIPForwarding(Output.of(enableIPForwarding));
        }

        /**
         * @param ipConfigurations Specifies the IP configurations of the network interface.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(Output> ipConfigurations) {
            $.ipConfigurations = ipConfigurations;
            return this;
        }

        /**
         * @param ipConfigurations Specifies the IP configurations of the network interface.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(List ipConfigurations) {
            return ipConfigurations(Output.of(ipConfigurations));
        }

        /**
         * @param ipConfigurations Specifies the IP configurations of the network interface.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(VirtualMachineScaleSetIPConfigurationArgs... ipConfigurations) {
            return ipConfigurations(List.of(ipConfigurations));
        }

        /**
         * @param networkSecurityGroup The network security group.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroup(@Nullable Output networkSecurityGroup) {
            $.networkSecurityGroup = networkSecurityGroup;
            return this;
        }

        /**
         * @param networkSecurityGroup The network security group.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroup(SubResourceArgs networkSecurityGroup) {
            return networkSecurityGroup(Output.of(networkSecurityGroup));
        }

        /**
         * @param primary Specifies the primary network interface in case the virtual machine has more
         * than 1 network interface.
         * 
         * @return builder
         * 
         */
        public Builder primary(@Nullable Output primary) {
            $.primary = primary;
            return this;
        }

        /**
         * @param primary Specifies the primary network interface in case the virtual machine has more
         * than 1 network interface.
         * 
         * @return builder
         * 
         */
        public Builder primary(Boolean primary) {
            return primary(Output.of(primary));
        }

        public VirtualMachineScaleSetNetworkConfigurationPropertiesArgs build() {
            if ($.ipConfigurations == null) {
                throw new MissingRequiredPropertyException("VirtualMachineScaleSetNetworkConfigurationPropertiesArgs", "ipConfigurations");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy