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

com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationOpenSearchArgs Maven / Gradle / Ivy

There is a newer version: 4.38.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.digitalocean.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.digitalocean.inputs.AppSpecWorkerLogDestinationOpenSearchBasicAuthArgs;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AppSpecWorkerLogDestinationOpenSearchArgs Empty = new AppSpecWorkerLogDestinationOpenSearchArgs();

    /**
     * Basic authentication details.
     * 
     */
    @Import(name="basicAuth", required=true)
    private Output basicAuth;

    /**
     * @return Basic authentication details.
     * 
     */
    public Output basicAuth() {
        return this.basicAuth;
    }

    /**
     * The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if `cluster_name` is not set, a new cluster will be provisioned.
     * 
     */
    @Import(name="clusterName")
    private @Nullable Output clusterName;

    /**
     * @return The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if `cluster_name` is not set, a new cluster will be provisioned.
     * 
     */
    public Optional> clusterName() {
        return Optional.ofNullable(this.clusterName);
    }

    /**
     * OpenSearch endpoint.
     * 
     */
    @Import(name="endpoint")
    private @Nullable Output endpoint;

    /**
     * @return OpenSearch endpoint.
     * 
     */
    public Optional> endpoint() {
        return Optional.ofNullable(this.endpoint);
    }

    /**
     * OpenSearch index name.
     * 
     */
    @Import(name="indexName")
    private @Nullable Output indexName;

    /**
     * @return OpenSearch index name.
     * 
     */
    public Optional> indexName() {
        return Optional.ofNullable(this.indexName);
    }

    private AppSpecWorkerLogDestinationOpenSearchArgs() {}

    private AppSpecWorkerLogDestinationOpenSearchArgs(AppSpecWorkerLogDestinationOpenSearchArgs $) {
        this.basicAuth = $.basicAuth;
        this.clusterName = $.clusterName;
        this.endpoint = $.endpoint;
        this.indexName = $.indexName;
    }

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

    public static final class Builder {
        private AppSpecWorkerLogDestinationOpenSearchArgs $;

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

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

        /**
         * @param basicAuth Basic authentication details.
         * 
         * @return builder
         * 
         */
        public Builder basicAuth(Output basicAuth) {
            $.basicAuth = basicAuth;
            return this;
        }

        /**
         * @param basicAuth Basic authentication details.
         * 
         * @return builder
         * 
         */
        public Builder basicAuth(AppSpecWorkerLogDestinationOpenSearchBasicAuthArgs basicAuth) {
            return basicAuth(Output.of(basicAuth));
        }

        /**
         * @param clusterName The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if `cluster_name` is not set, a new cluster will be provisioned.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(@Nullable Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the underlying DigitalOcean DBaaS cluster. This is required for production databases. For dev databases, if `cluster_name` is not set, a new cluster will be provisioned.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param endpoint OpenSearch endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(@Nullable Output endpoint) {
            $.endpoint = endpoint;
            return this;
        }

        /**
         * @param endpoint OpenSearch endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(String endpoint) {
            return endpoint(Output.of(endpoint));
        }

        /**
         * @param indexName OpenSearch index name.
         * 
         * @return builder
         * 
         */
        public Builder indexName(@Nullable Output indexName) {
            $.indexName = indexName;
            return this;
        }

        /**
         * @param indexName OpenSearch index name.
         * 
         * @return builder
         * 
         */
        public Builder indexName(String indexName) {
            return indexName(Output.of(indexName));
        }

        public AppSpecWorkerLogDestinationOpenSearchArgs build() {
            if ($.basicAuth == null) {
                throw new MissingRequiredPropertyException("AppSpecWorkerLogDestinationOpenSearchArgs", "basicAuth");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy