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

com.pulumi.azurenative.migrate.inputs.NetworkInterfaceResourceSettingsArgs 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.migrate.inputs;

import com.pulumi.azurenative.migrate.inputs.NicIpConfigurationResourceSettingsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Defines the network interface resource settings.
 * 
 */
public final class NetworkInterfaceResourceSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkInterfaceResourceSettingsArgs Empty = new NetworkInterfaceResourceSettingsArgs();

    /**
     * Gets or sets a value indicating whether accelerated networking is enabled.
     * 
     */
    @Import(name="enableAcceleratedNetworking")
    private @Nullable Output enableAcceleratedNetworking;

    /**
     * @return Gets or sets a value indicating whether accelerated networking is enabled.
     * 
     */
    public Optional> enableAcceleratedNetworking() {
        return Optional.ofNullable(this.enableAcceleratedNetworking);
    }

    /**
     * Gets or sets the IP configurations of the NIC.
     * 
     */
    @Import(name="ipConfigurations")
    private @Nullable Output> ipConfigurations;

    /**
     * @return Gets or sets the IP configurations of the NIC.
     * 
     */
    public Optional>> ipConfigurations() {
        return Optional.ofNullable(this.ipConfigurations);
    }

    /**
     * The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Network/networkInterfaces'.
     * 
     */
    @Import(name="resourceType", required=true)
    private Output resourceType;

    /**
     * @return The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
     * Expected value is 'Microsoft.Network/networkInterfaces'.
     * 
     */
    public Output resourceType() {
        return this.resourceType;
    }

    /**
     * Gets or sets the Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Gets or sets the Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Gets or sets the target resource group name.
     * 
     */
    @Import(name="targetResourceGroupName")
    private @Nullable Output targetResourceGroupName;

    /**
     * @return Gets or sets the target resource group name.
     * 
     */
    public Optional> targetResourceGroupName() {
        return Optional.ofNullable(this.targetResourceGroupName);
    }

    /**
     * Gets or sets the target Resource name.
     * 
     */
    @Import(name="targetResourceName", required=true)
    private Output targetResourceName;

    /**
     * @return Gets or sets the target Resource name.
     * 
     */
    public Output targetResourceName() {
        return this.targetResourceName;
    }

    private NetworkInterfaceResourceSettingsArgs() {}

    private NetworkInterfaceResourceSettingsArgs(NetworkInterfaceResourceSettingsArgs $) {
        this.enableAcceleratedNetworking = $.enableAcceleratedNetworking;
        this.ipConfigurations = $.ipConfigurations;
        this.resourceType = $.resourceType;
        this.tags = $.tags;
        this.targetResourceGroupName = $.targetResourceGroupName;
        this.targetResourceName = $.targetResourceName;
    }

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

    public static final class Builder {
        private NetworkInterfaceResourceSettingsArgs $;

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

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

        /**
         * @param enableAcceleratedNetworking Gets or sets a value indicating whether accelerated networking is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableAcceleratedNetworking(@Nullable Output enableAcceleratedNetworking) {
            $.enableAcceleratedNetworking = enableAcceleratedNetworking;
            return this;
        }

        /**
         * @param enableAcceleratedNetworking Gets or sets a value indicating whether accelerated networking is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableAcceleratedNetworking(Boolean enableAcceleratedNetworking) {
            return enableAcceleratedNetworking(Output.of(enableAcceleratedNetworking));
        }

        /**
         * @param ipConfigurations Gets or sets the IP configurations of the NIC.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(@Nullable Output> ipConfigurations) {
            $.ipConfigurations = ipConfigurations;
            return this;
        }

        /**
         * @param ipConfigurations Gets or sets the IP configurations of the NIC.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(List ipConfigurations) {
            return ipConfigurations(Output.of(ipConfigurations));
        }

        /**
         * @param ipConfigurations Gets or sets the IP configurations of the NIC.
         * 
         * @return builder
         * 
         */
        public Builder ipConfigurations(NicIpConfigurationResourceSettingsArgs... ipConfigurations) {
            return ipConfigurations(List.of(ipConfigurations));
        }

        /**
         * @param resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
         * Expected value is 'Microsoft.Network/networkInterfaces'.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
         * Expected value is 'Microsoft.Network/networkInterfaces'.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

        /**
         * @param tags Gets or sets the Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Gets or sets the Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param targetResourceGroupName Gets or sets the target resource group name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceGroupName(@Nullable Output targetResourceGroupName) {
            $.targetResourceGroupName = targetResourceGroupName;
            return this;
        }

        /**
         * @param targetResourceGroupName Gets or sets the target resource group name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceGroupName(String targetResourceGroupName) {
            return targetResourceGroupName(Output.of(targetResourceGroupName));
        }

        /**
         * @param targetResourceName Gets or sets the target Resource name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceName(Output targetResourceName) {
            $.targetResourceName = targetResourceName;
            return this;
        }

        /**
         * @param targetResourceName Gets or sets the target Resource name.
         * 
         * @return builder
         * 
         */
        public Builder targetResourceName(String targetResourceName) {
            return targetResourceName(Output.of(targetResourceName));
        }

        public NetworkInterfaceResourceSettingsArgs build() {
            $.resourceType = Codegen.stringProp("resourceType").output().arg($.resourceType).require();
            if ($.targetResourceName == null) {
                throw new MissingRequiredPropertyException("NetworkInterfaceResourceSettingsArgs", "targetResourceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy