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

com.pulumi.azurenative.automation.CredentialArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CredentialArgs Empty = new CredentialArgs();

    /**
     * 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 parameters supplied to the create or update credential operation.
     * 
     */
    @Import(name="credentialName")
    private @Nullable Output credentialName;

    /**
     * @return The parameters supplied to the create or update credential operation.
     * 
     */
    public Optional> credentialName() {
        return Optional.ofNullable(this.credentialName);
    }

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

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

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

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

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

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

    /**
     * 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 user name of the credential.
     * 
     */
    @Import(name="userName", required=true)
    private Output userName;

    /**
     * @return Gets or sets the user name of the credential.
     * 
     */
    public Output userName() {
        return this.userName;
    }

    private CredentialArgs() {}

    private CredentialArgs(CredentialArgs $) {
        this.automationAccountName = $.automationAccountName;
        this.credentialName = $.credentialName;
        this.description = $.description;
        this.name = $.name;
        this.password = $.password;
        this.resourceGroupName = $.resourceGroupName;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private CredentialArgs $;

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

        public Builder(CredentialArgs defaults) {
            $ = new CredentialArgs(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 credentialName The parameters supplied to the create or update credential operation.
         * 
         * @return builder
         * 
         */
        public Builder credentialName(@Nullable Output credentialName) {
            $.credentialName = credentialName;
            return this;
        }

        /**
         * @param credentialName The parameters supplied to the create or update credential operation.
         * 
         * @return builder
         * 
         */
        public Builder credentialName(String credentialName) {
            return credentialName(Output.of(credentialName));
        }

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

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

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

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

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

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

        /**
         * @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 userName Gets or sets the user name of the credential.
         * 
         * @return builder
         * 
         */
        public Builder userName(Output userName) {
            $.userName = userName;
            return this;
        }

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

        public CredentialArgs build() {
            if ($.automationAccountName == null) {
                throw new MissingRequiredPropertyException("CredentialArgs", "automationAccountName");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("CredentialArgs", "name");
            }
            if ($.password == null) {
                throw new MissingRequiredPropertyException("CredentialArgs", "password");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CredentialArgs", "resourceGroupName");
            }
            if ($.userName == null) {
                throw new MissingRequiredPropertyException("CredentialArgs", "userName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy