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

com.pulumi.aws.opsworks.outputs.StackCustomCookbooksSource 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class StackCustomCookbooksSource {
    /**
     * @return Password to use when authenticating to the source. The provider cannot perform drift detection of this configuration.
     * 
     */
    private @Nullable String password;
    /**
     * @return For sources that are version-aware, the revision to use.
     * 
     */
    private @Nullable String revision;
    /**
     * @return SSH key to use when authenticating to the source. This provider cannot perform drift detection of this configuration.
     * 
     */
    private @Nullable String sshKey;
    /**
     * @return The type of source to use. For example, "archive".
     * 
     */
    private String type;
    /**
     * @return The URL where the cookbooks resource can be found.
     * 
     */
    private String url;
    /**
     * @return Username to use when authenticating to the source.
     * 
     */
    private @Nullable String username;

    private StackCustomCookbooksSource() {}
    /**
     * @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);
    }
    /**
     * @return For sources that are version-aware, the revision to use.
     * 
     */
    public Optional revision() {
        return Optional.ofNullable(this.revision);
    }
    /**
     * @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);
    }
    /**
     * @return The type of source to use. For example, "archive".
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The URL where the cookbooks resource can be found.
     * 
     */
    public String url() {
        return this.url;
    }
    /**
     * @return Username to use when authenticating to the source.
     * 
     */
    public Optional username() {
        return Optional.ofNullable(this.username);
    }

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

    public static Builder builder(StackCustomCookbooksSource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String password;
        private @Nullable String revision;
        private @Nullable String sshKey;
        private String type;
        private String url;
        private @Nullable String username;
        public Builder() {}
        public Builder(StackCustomCookbooksSource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.password = defaults.password;
    	      this.revision = defaults.revision;
    	      this.sshKey = defaults.sshKey;
    	      this.type = defaults.type;
    	      this.url = defaults.url;
    	      this.username = defaults.username;
        }

        @CustomType.Setter
        public Builder password(@Nullable String password) {

            this.password = password;
            return this;
        }
        @CustomType.Setter
        public Builder revision(@Nullable String revision) {

            this.revision = revision;
            return this;
        }
        @CustomType.Setter
        public Builder sshKey(@Nullable String sshKey) {

            this.sshKey = sshKey;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("StackCustomCookbooksSource", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder url(String url) {
            if (url == null) {
              throw new MissingRequiredPropertyException("StackCustomCookbooksSource", "url");
            }
            this.url = url;
            return this;
        }
        @CustomType.Setter
        public Builder username(@Nullable String username) {

            this.username = username;
            return this;
        }
        public StackCustomCookbooksSource build() {
            final var _resultValue = new StackCustomCookbooksSource();
            _resultValue.password = password;
            _resultValue.revision = revision;
            _resultValue.sshKey = sshKey;
            _resultValue.type = type;
            _resultValue.url = url;
            _resultValue.username = username;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy