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

com.pulumi.azurenative.automation.DscNodeConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.automation;

import com.pulumi.azurenative.automation.inputs.ContentSourceArgs;
import com.pulumi.azurenative.automation.inputs.DscConfigurationAssociationPropertyArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class DscNodeConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DscNodeConfigurationArgs Empty = new DscNodeConfigurationArgs();

    /**
     * The name of the automation account.
     * 
     */
    @Import(name="automationAccountName", required=true)
    private Output automationAccountName;

    /**
     * @return The name of the automation account.
     * 
     */
    public Output automationAccountName() {
        return this.automationAccountName;
    }

    /**
     * Gets or sets the configuration of the node.
     * 
     */
    @Import(name="configuration", required=true)
    private Output configuration;

    /**
     * @return Gets or sets the configuration of the node.
     * 
     */
    public Output configuration() {
        return this.configuration;
    }

    /**
     * If a new build version of NodeConfiguration is required.
     * 
     */
    @Import(name="incrementNodeConfigurationBuild")
    private @Nullable Output incrementNodeConfigurationBuild;

    /**
     * @return If a new build version of NodeConfiguration is required.
     * 
     */
    public Optional> incrementNodeConfigurationBuild() {
        return Optional.ofNullable(this.incrementNodeConfigurationBuild);
    }

    /**
     * Name of the node configuration.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the node configuration.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The Dsc node configuration name.
     * 
     */
    @Import(name="nodeConfigurationName")
    private @Nullable Output nodeConfigurationName;

    /**
     * @return The Dsc node configuration name.
     * 
     */
    public Optional> nodeConfigurationName() {
        return Optional.ofNullable(this.nodeConfigurationName);
    }

    /**
     * Name of an Azure Resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of an Azure Resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

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

    /**
     * @return Gets or sets the source.
     * 
     */
    public Output source() {
        return this.source;
    }

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

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

    private DscNodeConfigurationArgs() {}

    private DscNodeConfigurationArgs(DscNodeConfigurationArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.configuration = $.configuration;
        this.incrementNodeConfigurationBuild = $.incrementNodeConfigurationBuild;
        this.name = $.name;
        this.nodeConfigurationName = $.nodeConfigurationName;
        this.resourceGroupName = $.resourceGroupName;
        this.source = $.source;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private DscNodeConfigurationArgs $;

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

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

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(Output automationAccountName) {
            $.automationAccountName = automationAccountName;
            return this;
        }

        /**
         * @param automationAccountName The name of the automation account.
         * 
         * @return builder
         * 
         */
        public Builder automationAccountName(String automationAccountName) {
            return automationAccountName(Output.of(automationAccountName));
        }

        /**
         * @param configuration Gets or sets the configuration of the node.
         * 
         * @return builder
         * 
         */
        public Builder configuration(Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration Gets or sets the configuration of the node.
         * 
         * @return builder
         * 
         */
        public Builder configuration(DscConfigurationAssociationPropertyArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param incrementNodeConfigurationBuild If a new build version of NodeConfiguration is required.
         * 
         * @return builder
         * 
         */
        public Builder incrementNodeConfigurationBuild(@Nullable Output incrementNodeConfigurationBuild) {
            $.incrementNodeConfigurationBuild = incrementNodeConfigurationBuild;
            return this;
        }

        /**
         * @param incrementNodeConfigurationBuild If a new build version of NodeConfiguration is required.
         * 
         * @return builder
         * 
         */
        public Builder incrementNodeConfigurationBuild(Boolean incrementNodeConfigurationBuild) {
            return incrementNodeConfigurationBuild(Output.of(incrementNodeConfigurationBuild));
        }

        /**
         * @param name Name of the node configuration.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the node configuration.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nodeConfigurationName The Dsc node configuration name.
         * 
         * @return builder
         * 
         */
        public Builder nodeConfigurationName(@Nullable Output nodeConfigurationName) {
            $.nodeConfigurationName = nodeConfigurationName;
            return this;
        }

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

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of an Azure Resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

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

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

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

        public DscNodeConfigurationArgs build() {
            if ($.automationAccountName == null) {
                throw new MissingRequiredPropertyException("DscNodeConfigurationArgs", "automationAccountName");
            }
            if ($.configuration == null) {
                throw new MissingRequiredPropertyException("DscNodeConfigurationArgs", "configuration");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("DscNodeConfigurationArgs", "resourceGroupName");
            }
            if ($.source == null) {
                throw new MissingRequiredPropertyException("DscNodeConfigurationArgs", "source");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy