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

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs.OpensearchPatternState Maven / Gradle / Ivy

There is a newer version: 1.4.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.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs;

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 OpensearchPatternState extends com.pulumi.resources.ResourceArgs {

    public static final OpensearchPatternState Empty = new OpensearchPatternState();

    /**
     * Cluster ID.
     * 
     */
    @Import(name="clusterId")
    private @Nullable Output clusterId;

    /**
     * @return Cluster ID.
     * 
     */
    public Optional> clusterId() {
        return Optional.ofNullable(this.clusterId);
    }

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

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

    /**
     * Pattern format.
     * 
     */
    @Import(name="pattern")
    private @Nullable Output pattern;

    /**
     * @return Pattern format.
     * 
     */
    public Optional> pattern() {
        return Optional.ofNullable(this.pattern);
    }

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

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

    private OpensearchPatternState() {}

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

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

    public static final class Builder {
        private OpensearchPatternState $;

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

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

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(@Nullable Output 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 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(@Nullable Output 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(@Nullable Output 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 OpensearchPatternState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy