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

com.pulumi.azurenative.compute.inputs.VirtualMachineNetworkInterfaceConfigurationArgs 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.compute.inputs;

import com.pulumi.azurenative.compute.enums.DeleteOptions;
import com.pulumi.azurenative.compute.inputs.SubResourceArgs;
import com.pulumi.azurenative.compute.inputs.VirtualMachineNetworkInterfaceDnsSettingsConfigurationArgs;
import com.pulumi.azurenative.compute.inputs.VirtualMachineNetworkInterfaceIPConfigurationArgs;
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 network interface configurations.
 * 
 */
public final class VirtualMachineNetworkInterfaceConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualMachineNetworkInterfaceConfigurationArgs Empty = new VirtualMachineNetworkInterfaceConfigurationArgs();

    /**
     * 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);
    }

    @Import(name="dscpConfiguration")
    private @Nullable Output dscpConfiguration;

    public Optional> dscpConfiguration() {
        return Optional.ofNullable(this.dscpConfiguration);
    }

    /**
     * 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 interface configuration name.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The network interface configuration name.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * 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 VirtualMachineNetworkInterfaceConfigurationArgs() {}

    private VirtualMachineNetworkInterfaceConfigurationArgs(VirtualMachineNetworkInterfaceConfigurationArgs $) {
        this.deleteOption = $.deleteOption;
        this.disableTcpStateTracking = $.disableTcpStateTracking;
        this.dnsSettings = $.dnsSettings;
        this.dscpConfiguration = $.dscpConfiguration;
        this.enableAcceleratedNetworking = $.enableAcceleratedNetworking;
        this.enableFpga = $.enableFpga;
        this.enableIPForwarding = $.enableIPForwarding;
        this.ipConfigurations = $.ipConfigurations;
        this.name = $.name;
        this.networkSecurityGroup = $.networkSecurityGroup;
        this.primary = $.primary;
    }

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

    public static final class Builder {
        private VirtualMachineNetworkInterfaceConfigurationArgs $;

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

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

        /**
         * @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(VirtualMachineNetworkInterfaceDnsSettingsConfigurationArgs dnsSettings) {
            return dnsSettings(Output.of(dnsSettings));
        }

        public Builder dscpConfiguration(@Nullable Output dscpConfiguration) {
            $.dscpConfiguration = dscpConfiguration;
            return this;
        }

        public Builder dscpConfiguration(SubResourceArgs dscpConfiguration) {
            return dscpConfiguration(Output.of(dscpConfiguration));
        }

        /**
         * @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(VirtualMachineNetworkInterfaceIPConfigurationArgs... ipConfigurations) {
            return ipConfigurations(List.of(ipConfigurations));
        }

        /**
         * @param name The network interface configuration name.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The network interface configuration name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @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 VirtualMachineNetworkInterfaceConfigurationArgs build() {
            if ($.ipConfigurations == null) {
                throw new MissingRequiredPropertyException("VirtualMachineNetworkInterfaceConfigurationArgs", "ipConfigurations");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("VirtualMachineNetworkInterfaceConfigurationArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy