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

com.pulumi.ec.inputs.GetDeploymentTemplatesPlainArgs 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.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetDeploymentTemplatesPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetDeploymentTemplatesPlainArgs Empty = new GetDeploymentTemplatesPlainArgs();

    /**
     * Filters for a deployment template with this id.
     * 
     */
    @Import(name="id")
    private @Nullable String id;

    /**
     * @return Filters for a deployment template with this id.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * Region to select. For Elastic Cloud Enterprise (ECE) installations, use `ece-region`.
     * 
     */
    @Import(name="region", required=true)
    private String region;

    /**
     * @return Region to select. For Elastic Cloud Enterprise (ECE) installations, use `ece-region`.
     * 
     */
    public String region() {
        return this.region;
    }

    /**
     * Enable to also show deprecated deployment templates. (Set to false by default.)
     * 
     */
    @Import(name="showDeprecated")
    private @Nullable Boolean showDeprecated;

    /**
     * @return Enable to also show deprecated deployment templates. (Set to false by default.)
     * 
     */
    public Optional showDeprecated() {
        return Optional.ofNullable(this.showDeprecated);
    }

    /**
     * Filters for deployment templates compatible with this stack version.
     * 
     */
    @Import(name="stackVersion")
    private @Nullable String stackVersion;

    /**
     * @return Filters for deployment templates compatible with this stack version.
     * 
     */
    public Optional stackVersion() {
        return Optional.ofNullable(this.stackVersion);
    }

    private GetDeploymentTemplatesPlainArgs() {}

    private GetDeploymentTemplatesPlainArgs(GetDeploymentTemplatesPlainArgs $) {
        this.id = $.id;
        this.region = $.region;
        this.showDeprecated = $.showDeprecated;
        this.stackVersion = $.stackVersion;
    }

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

    public static final class Builder {
        private GetDeploymentTemplatesPlainArgs $;

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

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

        /**
         * @param id Filters for a deployment template with this id.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable String id) {
            $.id = id;
            return this;
        }

        /**
         * @param region Region to select. For Elastic Cloud Enterprise (ECE) installations, use `ece-region`.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            $.region = region;
            return this;
        }

        /**
         * @param showDeprecated Enable to also show deprecated deployment templates. (Set to false by default.)
         * 
         * @return builder
         * 
         */
        public Builder showDeprecated(@Nullable Boolean showDeprecated) {
            $.showDeprecated = showDeprecated;
            return this;
        }

        /**
         * @param stackVersion Filters for deployment templates compatible with this stack version.
         * 
         * @return builder
         * 
         */
        public Builder stackVersion(@Nullable String stackVersion) {
            $.stackVersion = stackVersion;
            return this;
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy