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

com.pulumi.ec.inputs.SecurityProjectCredentialsArgs Maven / Gradle / Ivy

The 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.ec.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SecurityProjectCredentialsArgs Empty = new SecurityProjectCredentialsArgs();

    /**
     * Basic auth password that can be used to access the Elasticsearch API.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Basic auth password that can be used to access the Elasticsearch API.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * Basic auth username that can be used to access the Elasticsearch API.
     * 
     */
    @Import(name="username")
    private @Nullable Output username;

    /**
     * @return Basic auth username that can be used to access the Elasticsearch API.
     * 
     */
    public Optional> username() {
        return Optional.ofNullable(this.username);
    }

    private SecurityProjectCredentialsArgs() {}

    private SecurityProjectCredentialsArgs(SecurityProjectCredentialsArgs $) {
        this.password = $.password;
        this.username = $.username;
    }

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

    public static final class Builder {
        private SecurityProjectCredentialsArgs $;

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

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

        /**
         * @param password Basic auth password that can be used to access the Elasticsearch API.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Basic auth password that can be used to access the Elasticsearch API.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param username Basic auth username that can be used to access the Elasticsearch API.
         * 
         * @return builder
         * 
         */
        public Builder username(@Nullable Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username Basic auth username that can be used to access the Elasticsearch API.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public SecurityProjectCredentialsArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy