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

com.pulumi.aws.opsworks.inputs.StackCustomCookbooksSourceArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.opsworks.inputs;

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 StackCustomCookbooksSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final StackCustomCookbooksSourceArgs Empty = new StackCustomCookbooksSourceArgs();

    /**
     * Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * For sources that are version-aware, the revision to use.
     * 
     */
    @Import(name="revision")
    private @Nullable Output revision;

    /**
     * @return For sources that are version-aware, the revision to use.
     * 
     */
    public Optional> revision() {
        return Optional.ofNullable(this.revision);
    }

    /**
     * SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
     * 
     */
    @Import(name="sshKey")
    private @Nullable Output sshKey;

    /**
     * @return SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
     * 
     */
    public Optional> sshKey() {
        return Optional.ofNullable(this.sshKey);
    }

    /**
     * The type of source to use. For example, "archive".
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of source to use. For example, "archive".
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The URL where the cookbooks resource can be found.
     * 
     */
    @Import(name="url", required=true)
    private Output url;

    /**
     * @return The URL where the cookbooks resource can be found.
     * 
     */
    public Output url() {
        return this.url;
    }

    /**
     * Username to use when authenticating to the source.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return Username to use when authenticating to the source.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private StackCustomCookbooksSourceArgs() {}

    private StackCustomCookbooksSourceArgs(StackCustomCookbooksSourceArgs $) {
        this.password = $.password;
        this.revision = $.revision;
        this.sshKey = $.sshKey;
        this.type = $.type;
        this.url = $.url;
        this.username = $.username;
    }

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

    public static final class Builder {
        private StackCustomCookbooksSourceArgs $;

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

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

        /**
         * @param password Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param revision For sources that are version-aware, the revision to use.
         * 
         * @return builder
         * 
         */
        public Builder revision(@Nullable Output revision) {
            $.revision = revision;
            return this;
        }

        /**
         * @param revision For sources that are version-aware, the revision to use.
         * 
         * @return builder
         * 
         */
        public Builder revision(String revision) {
            return revision(Output.of(revision));
        }

        /**
         * @param sshKey SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
         * 
         * @return builder
         * 
         */
        public Builder sshKey(@Nullable Output sshKey) {
            $.sshKey = sshKey;
            return this;
        }

        /**
         * @param sshKey SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
         * 
         * @return builder
         * 
         */
        public Builder sshKey(String sshKey) {
            return sshKey(Output.of(sshKey));
        }

        /**
         * @param type The type of source to use. For example, "archive".
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of source to use. For example, "archive".
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param url The URL where the cookbooks resource can be found.
         * 
         * @return builder
         * 
         */
        public Builder url(Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url The URL where the cookbooks resource can be found.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        /**
         * @param username Username to use when authenticating to the source.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Username to use when authenticating to the source.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public StackCustomCookbooksSourceArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("StackCustomCookbooksSourceArgs", "type");
            }
            if ($.url == null) {
                throw new MissingRequiredPropertyException("StackCustomCookbooksSourceArgs", "url");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy