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

com.pulumi.aws.redshift.outputs.GetClusterCredentialsResult 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.66.3
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.redshift.outputs;

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

@CustomType
public final class GetClusterCredentialsResult {
    private @Nullable Boolean autoCreate;
    private String clusterIdentifier;
    private @Nullable List dbGroups;
    private @Nullable String dbName;
    /**
     * @return Temporary password that authorizes the user name returned by `db_user` to log on to the database `db_name`.
     * 
     */
    private String dbPassword;
    private String dbUser;
    private @Nullable Integer durationSeconds;
    /**
     * @return Date and time the password in `db_password` expires.
     * 
     */
    private String expiration;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;

    private GetClusterCredentialsResult() {}
    public Optional autoCreate() {
        return Optional.ofNullable(this.autoCreate);
    }
    public String clusterIdentifier() {
        return this.clusterIdentifier;
    }
    public List dbGroups() {
        return this.dbGroups == null ? List.of() : this.dbGroups;
    }
    public Optional dbName() {
        return Optional.ofNullable(this.dbName);
    }
    /**
     * @return Temporary password that authorizes the user name returned by `db_user` to log on to the database `db_name`.
     * 
     */
    public String dbPassword() {
        return this.dbPassword;
    }
    public String dbUser() {
        return this.dbUser;
    }
    public Optional durationSeconds() {
        return Optional.ofNullable(this.durationSeconds);
    }
    /**
     * @return Date and time the password in `db_password` expires.
     * 
     */
    public String expiration() {
        return this.expiration;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }

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

    public static Builder builder(GetClusterCredentialsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean autoCreate;
        private String clusterIdentifier;
        private @Nullable List dbGroups;
        private @Nullable String dbName;
        private String dbPassword;
        private String dbUser;
        private @Nullable Integer durationSeconds;
        private String expiration;
        private String id;
        public Builder() {}
        public Builder(GetClusterCredentialsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoCreate = defaults.autoCreate;
    	      this.clusterIdentifier = defaults.clusterIdentifier;
    	      this.dbGroups = defaults.dbGroups;
    	      this.dbName = defaults.dbName;
    	      this.dbPassword = defaults.dbPassword;
    	      this.dbUser = defaults.dbUser;
    	      this.durationSeconds = defaults.durationSeconds;
    	      this.expiration = defaults.expiration;
    	      this.id = defaults.id;
        }

        @CustomType.Setter
        public Builder autoCreate(@Nullable Boolean autoCreate) {

            this.autoCreate = autoCreate;
            return this;
        }
        @CustomType.Setter
        public Builder clusterIdentifier(String clusterIdentifier) {
            if (clusterIdentifier == null) {
              throw new MissingRequiredPropertyException("GetClusterCredentialsResult", "clusterIdentifier");
            }
            this.clusterIdentifier = clusterIdentifier;
            return this;
        }
        @CustomType.Setter
        public Builder dbGroups(@Nullable List dbGroups) {

            this.dbGroups = dbGroups;
            return this;
        }
        public Builder dbGroups(String... dbGroups) {
            return dbGroups(List.of(dbGroups));
        }
        @CustomType.Setter
        public Builder dbName(@Nullable String dbName) {

            this.dbName = dbName;
            return this;
        }
        @CustomType.Setter
        public Builder dbPassword(String dbPassword) {
            if (dbPassword == null) {
              throw new MissingRequiredPropertyException("GetClusterCredentialsResult", "dbPassword");
            }
            this.dbPassword = dbPassword;
            return this;
        }
        @CustomType.Setter
        public Builder dbUser(String dbUser) {
            if (dbUser == null) {
              throw new MissingRequiredPropertyException("GetClusterCredentialsResult", "dbUser");
            }
            this.dbUser = dbUser;
            return this;
        }
        @CustomType.Setter
        public Builder durationSeconds(@Nullable Integer durationSeconds) {

            this.durationSeconds = durationSeconds;
            return this;
        }
        @CustomType.Setter
        public Builder expiration(String expiration) {
            if (expiration == null) {
              throw new MissingRequiredPropertyException("GetClusterCredentialsResult", "expiration");
            }
            this.expiration = expiration;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetClusterCredentialsResult", "id");
            }
            this.id = id;
            return this;
        }
        public GetClusterCredentialsResult build() {
            final var _resultValue = new GetClusterCredentialsResult();
            _resultValue.autoCreate = autoCreate;
            _resultValue.clusterIdentifier = clusterIdentifier;
            _resultValue.dbGroups = dbGroups;
            _resultValue.dbName = dbName;
            _resultValue.dbPassword = dbPassword;
            _resultValue.dbUser = dbUser;
            _resultValue.durationSeconds = durationSeconds;
            _resultValue.expiration = expiration;
            _resultValue.id = id;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy