sdk/java/src/main/java/com/pulumi/ovh/CloudProjectDatabase/OpensearchPatternArgs.java
// *** 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.ovh.CloudProjectDatabase;

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


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

    public static final OpensearchPatternArgs Empty = new OpensearchPatternArgs();

    /**
     * Cluster ID.
     * 
     */
    @Import(name="clusterId", required=true)
    private Output<String> clusterId;

    /**
     * @return Cluster ID.
     * 
     */
    public Output<String> clusterId() {
        return this.clusterId;
    }

    /**
     * Maximum number of index for this pattern.
     * 
     */
    @Import(name="maxIndexCount")
    private @Nullable Output<Integer> maxIndexCount;

    /**
     * @return Maximum number of index for this pattern.
     * 
     */
    public Optional<Output<Integer>> maxIndexCount() {
        return Optional.ofNullable(this.maxIndexCount);
    }

    /**
     * Pattern format.
     * 
     */
    @Import(name="pattern", required=true)
    private Output<String> pattern;

    /**
     * @return Pattern format.
     * 
     */
    public Output<String> pattern() {
        return this.pattern;
    }

    /**
     * The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output<String> serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public Output<String> serviceName() {
        return this.serviceName;
    }

    private OpensearchPatternArgs() {}

    private OpensearchPatternArgs(OpensearchPatternArgs $) {
        this.clusterId = $.clusterId;
        this.maxIndexCount = $.maxIndexCount;
        this.pattern = $.pattern;
        this.serviceName = $.serviceName;
    }

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

    public static final class Builder {
        private OpensearchPatternArgs $;

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

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

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(Output<String> clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

        /**
         * @param maxIndexCount Maximum number of index for this pattern.
         * 
         * @return builder
         * 
         */
        public Builder maxIndexCount(@Nullable Output<Integer> maxIndexCount) {
            $.maxIndexCount = maxIndexCount;
            return this;
        }

        /**
         * @param maxIndexCount Maximum number of index for this pattern.
         * 
         * @return builder
         * 
         */
        public Builder maxIndexCount(Integer maxIndexCount) {
            return maxIndexCount(Output.of(maxIndexCount));
        }

        /**
         * @param pattern Pattern format.
         * 
         * @return builder
         * 
         */
        public Builder pattern(Output<String> pattern) {
            $.pattern = pattern;
            return this;
        }

        /**
         * @param pattern Pattern format.
         * 
         * @return builder
         * 
         */
        public Builder pattern(String pattern) {
            return pattern(Output.of(pattern));
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output<String> serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        public OpensearchPatternArgs build() {
            $.clusterId = Objects.requireNonNull($.clusterId, "expected parameter 'clusterId' to be non-null");
            $.pattern = Objects.requireNonNull($.pattern, "expected parameter 'pattern' to be non-null");
            $.serviceName = Objects.requireNonNull($.serviceName, "expected parameter 'serviceName' to be non-null");
            return $;
        }
    }

}
