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

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

There is a newer version: 2.78.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.DscConfigurationParameterArgs;
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 DscConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final DscConfigurationArgs Empty = new DscConfigurationArgs();

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

    /**
     * The create or update parameters for configuration.
     * 
     */
    @Import(name="configurationName")
    private @Nullable Output configurationName;

    /**
     * @return The create or update parameters for configuration.
     * 
     */
    public Optional> configurationName() {
        return Optional.ofNullable(this.configurationName);
    }

    /**
     * Gets or sets the description of the configuration.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Gets or sets the description of the configuration.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Gets or sets the location of the resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

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

    /**
     * Gets or sets progress log option.
     * 
     */
    @Import(name="logProgress")
    private @Nullable Output logProgress;

    /**
     * @return Gets or sets progress log option.
     * 
     */
    public Optional> logProgress() {
        return Optional.ofNullable(this.logProgress);
    }

    /**
     * Gets or sets verbose log option.
     * 
     */
    @Import(name="logVerbose")
    private @Nullable Output logVerbose;

    /**
     * @return Gets or sets verbose log option.
     * 
     */
    public Optional> logVerbose() {
        return Optional.ofNullable(this.logVerbose);
    }

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

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

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

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

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

    private DscConfigurationArgs(DscConfigurationArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.configurationName = $.configurationName;
        this.description = $.description;
        this.location = $.location;
        this.logProgress = $.logProgress;
        this.logVerbose = $.logVerbose;
        this.name = $.name;
        this.parameters = $.parameters;
        this.resourceGroupName = $.resourceGroupName;
        this.source = $.source;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private DscConfigurationArgs $;

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

        public Builder(DscConfigurationArgs defaults) {
            $ = new DscConfigurationArgs(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 configurationName The create or update parameters for configuration.
         * 
         * @return builder
         * 
         */
        public Builder configurationName(@Nullable Output configurationName) {
            $.configurationName = configurationName;
            return this;
        }

        /**
         * @param configurationName The create or update parameters for configuration.
         * 
         * @return builder
         * 
         */
        public Builder configurationName(String configurationName) {
            return configurationName(Output.of(configurationName));
        }

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

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

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

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

        /**
         * @param logProgress Gets or sets progress log option.
         * 
         * @return builder
         * 
         */
        public Builder logProgress(@Nullable Output logProgress) {
            $.logProgress = logProgress;
            return this;
        }

        /**
         * @param logProgress Gets or sets progress log option.
         * 
         * @return builder
         * 
         */
        public Builder logProgress(Boolean logProgress) {
            return logProgress(Output.of(logProgress));
        }

        /**
         * @param logVerbose Gets or sets verbose log option.
         * 
         * @return builder
         * 
         */
        public Builder logVerbose(@Nullable Output logVerbose) {
            $.logVerbose = logVerbose;
            return this;
        }

        /**
         * @param logVerbose Gets or sets verbose log option.
         * 
         * @return builder
         * 
         */
        public Builder logVerbose(Boolean logVerbose) {
            return logVerbose(Output.of(logVerbose));
        }

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy