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

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

// *** 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 com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DeploymentElasticsearchTrustAccountArgs Empty = new DeploymentElasticsearchTrustAccountArgs();

    /**
     * The ID of the Account.
     * 
     */
    @Import(name="accountId", required=true)
    private Output accountId;

    /**
     * @return The ID of the Account.
     * 
     */
    public Output accountId() {
        return this.accountId;
    }

    /**
     * If true, all clusters in this account will by default be trusted and the `trust_allowlist` is ignored.
     * 
     */
    @Import(name="trustAll", required=true)
    private Output trustAll;

    /**
     * @return If true, all clusters in this account will by default be trusted and the `trust_allowlist` is ignored.
     * 
     */
    public Output trustAll() {
        return this.trustAll;
    }

    /**
     * The list of clusters to trust. Only used when `trust_all` is false.
     * 
     */
    @Import(name="trustAllowlists")
    private @Nullable Output> trustAllowlists;

    /**
     * @return The list of clusters to trust. Only used when `trust_all` is false.
     * 
     */
    public Optional>> trustAllowlists() {
        return Optional.ofNullable(this.trustAllowlists);
    }

    private DeploymentElasticsearchTrustAccountArgs() {}

    private DeploymentElasticsearchTrustAccountArgs(DeploymentElasticsearchTrustAccountArgs $) {
        this.accountId = $.accountId;
        this.trustAll = $.trustAll;
        this.trustAllowlists = $.trustAllowlists;
    }

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

    public static final class Builder {
        private DeploymentElasticsearchTrustAccountArgs $;

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

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

        /**
         * @param accountId The ID of the Account.
         * 
         * @return builder
         * 
         */
        public Builder accountId(Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The ID of the Account.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param trustAll If true, all clusters in this account will by default be trusted and the `trust_allowlist` is ignored.
         * 
         * @return builder
         * 
         */
        public Builder trustAll(Output trustAll) {
            $.trustAll = trustAll;
            return this;
        }

        /**
         * @param trustAll If true, all clusters in this account will by default be trusted and the `trust_allowlist` is ignored.
         * 
         * @return builder
         * 
         */
        public Builder trustAll(Boolean trustAll) {
            return trustAll(Output.of(trustAll));
        }

        /**
         * @param trustAllowlists The list of clusters to trust. Only used when `trust_all` is false.
         * 
         * @return builder
         * 
         */
        public Builder trustAllowlists(@Nullable Output> trustAllowlists) {
            $.trustAllowlists = trustAllowlists;
            return this;
        }

        /**
         * @param trustAllowlists The list of clusters to trust. Only used when `trust_all` is false.
         * 
         * @return builder
         * 
         */
        public Builder trustAllowlists(List trustAllowlists) {
            return trustAllowlists(Output.of(trustAllowlists));
        }

        /**
         * @param trustAllowlists The list of clusters to trust. Only used when `trust_all` is false.
         * 
         * @return builder
         * 
         */
        public Builder trustAllowlists(String... trustAllowlists) {
            return trustAllowlists(List.of(trustAllowlists));
        }

        public DeploymentElasticsearchTrustAccountArgs build() {
            if ($.accountId == null) {
                throw new MissingRequiredPropertyException("DeploymentElasticsearchTrustAccountArgs", "accountId");
            }
            if ($.trustAll == null) {
                throw new MissingRequiredPropertyException("DeploymentElasticsearchTrustAccountArgs", "trustAll");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy