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

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

There is a newer version: 1.1.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.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final M3DbNamespaceState Empty = new M3DbNamespaceState();

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

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

    /**
     * Name of the namespace.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the namespace.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    @Import(name="resolution")
    private @Nullable Output resolution;

    /**
     * @return Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    public Optional> resolution() {
        return Optional.ofNullable(this.resolution);
    }

    /**
     * Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    @Import(name="retentionBlockDataExpirationDuration")
    private @Nullable Output retentionBlockDataExpirationDuration;

    /**
     * @return Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    public Optional> retentionBlockDataExpirationDuration() {
        return Optional.ofNullable(this.retentionBlockDataExpirationDuration);
    }

    /**
     * Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    @Import(name="retentionBlockSizeDuration")
    private @Nullable Output retentionBlockSizeDuration;

    /**
     * @return Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    public Optional> retentionBlockSizeDuration() {
        return Optional.ofNullable(this.retentionBlockSizeDuration);
    }

    /**
     * Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    @Import(name="retentionBufferFutureDuration")
    private @Nullable Output retentionBufferFutureDuration;

    /**
     * @return Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    public Optional> retentionBufferFutureDuration() {
        return Optional.ofNullable(this.retentionBufferFutureDuration);
    }

    /**
     * Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    @Import(name="retentionBufferPastDuration")
    private @Nullable Output retentionBufferPastDuration;

    /**
     * @return Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    public Optional> retentionBufferPastDuration() {
        return Optional.ofNullable(this.retentionBufferPastDuration);
    }

    /**
     * Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    @Import(name="retentionPeriodDuration")
    private @Nullable Output retentionPeriodDuration;

    /**
     * @return Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
     * 
     */
    public Optional> retentionPeriodDuration() {
        return Optional.ofNullable(this.retentionPeriodDuration);
    }

    /**
     * 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);
    }

    /**
     * Defines whether M3DB will create snapshot files for this namespace.
     * 
     */
    @Import(name="snapshotEnabled")
    private @Nullable Output snapshotEnabled;

    /**
     * @return Defines whether M3DB will create snapshot files for this namespace.
     * 
     */
    public Optional> snapshotEnabled() {
        return Optional.ofNullable(this.snapshotEnabled);
    }

    /**
     * Type of namespace.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of namespace.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * Defines whether M3DB will include writes to this namespace in the commit log.
     * 
     */
    @Import(name="writesToCommitLogEnabled")
    private @Nullable Output writesToCommitLogEnabled;

    /**
     * @return Defines whether M3DB will include writes to this namespace in the commit log.
     * 
     */
    public Optional> writesToCommitLogEnabled() {
        return Optional.ofNullable(this.writesToCommitLogEnabled);
    }

    private M3DbNamespaceState() {}

    private M3DbNamespaceState(M3DbNamespaceState $) {
        this.clusterId = $.clusterId;
        this.name = $.name;
        this.resolution = $.resolution;
        this.retentionBlockDataExpirationDuration = $.retentionBlockDataExpirationDuration;
        this.retentionBlockSizeDuration = $.retentionBlockSizeDuration;
        this.retentionBufferFutureDuration = $.retentionBufferFutureDuration;
        this.retentionBufferPastDuration = $.retentionBufferPastDuration;
        this.retentionPeriodDuration = $.retentionPeriodDuration;
        this.serviceName = $.serviceName;
        this.snapshotEnabled = $.snapshotEnabled;
        this.type = $.type;
        this.writesToCommitLogEnabled = $.writesToCommitLogEnabled;
    }

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

    public static final class Builder {
        private M3DbNamespaceState $;

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

        public Builder(M3DbNamespaceState defaults) {
            $ = new M3DbNamespaceState(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 name Name of the namespace.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the namespace.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resolution Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder resolution(@Nullable Output resolution) {
            $.resolution = resolution;
            return this;
        }

        /**
         * @param resolution Resolution for an aggregated namespace. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder resolution(String resolution) {
            return resolution(Output.of(resolution));
        }

        /**
         * @param retentionBlockDataExpirationDuration Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionBlockDataExpirationDuration(@Nullable Output retentionBlockDataExpirationDuration) {
            $.retentionBlockDataExpirationDuration = retentionBlockDataExpirationDuration;
            return this;
        }

        /**
         * @param retentionBlockDataExpirationDuration Controls how long we wait before expiring stale data. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionBlockDataExpirationDuration(String retentionBlockDataExpirationDuration) {
            return retentionBlockDataExpirationDuration(Output.of(retentionBlockDataExpirationDuration));
        }

        /**
         * @param retentionBlockSizeDuration Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionBlockSizeDuration(@Nullable Output retentionBlockSizeDuration) {
            $.retentionBlockSizeDuration = retentionBlockSizeDuration;
            return this;
        }

        /**
         * @param retentionBlockSizeDuration Controls how long to keep a block in memory before flushing to a fileset on disk. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionBlockSizeDuration(String retentionBlockSizeDuration) {
            return retentionBlockSizeDuration(Output.of(retentionBlockSizeDuration));
        }

        /**
         * @param retentionBufferFutureDuration Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionBufferFutureDuration(@Nullable Output retentionBufferFutureDuration) {
            $.retentionBufferFutureDuration = retentionBufferFutureDuration;
            return this;
        }

        /**
         * @param retentionBufferFutureDuration Controls how far into the future writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionBufferFutureDuration(String retentionBufferFutureDuration) {
            return retentionBufferFutureDuration(Output.of(retentionBufferFutureDuration));
        }

        /**
         * @param retentionBufferPastDuration Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionBufferPastDuration(@Nullable Output retentionBufferPastDuration) {
            $.retentionBufferPastDuration = retentionBufferPastDuration;
            return this;
        }

        /**
         * @param retentionBufferPastDuration Controls how far into the past writes to the namespace will be accepted. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionBufferPastDuration(String retentionBufferPastDuration) {
            return retentionBufferPastDuration(Output.of(retentionBufferPastDuration));
        }

        /**
         * @param retentionPeriodDuration Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionPeriodDuration(@Nullable Output retentionPeriodDuration) {
            $.retentionPeriodDuration = retentionPeriodDuration;
            return this;
        }

        /**
         * @param retentionPeriodDuration Controls the duration of time that M3DB will retain data for the namespace. Should follow Rfc3339 e.g P2D, PT48H.
         * 
         * @return builder
         * 
         */
        public Builder retentionPeriodDuration(String retentionPeriodDuration) {
            return retentionPeriodDuration(Output.of(retentionPeriodDuration));
        }

        /**
         * @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));
        }

        /**
         * @param snapshotEnabled Defines whether M3DB will create snapshot files for this namespace.
         * 
         * @return builder
         * 
         */
        public Builder snapshotEnabled(@Nullable Output snapshotEnabled) {
            $.snapshotEnabled = snapshotEnabled;
            return this;
        }

        /**
         * @param snapshotEnabled Defines whether M3DB will create snapshot files for this namespace.
         * 
         * @return builder
         * 
         */
        public Builder snapshotEnabled(Boolean snapshotEnabled) {
            return snapshotEnabled(Output.of(snapshotEnabled));
        }

        /**
         * @param type Type of namespace.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of namespace.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param writesToCommitLogEnabled Defines whether M3DB will include writes to this namespace in the commit log.
         * 
         * @return builder
         * 
         */
        public Builder writesToCommitLogEnabled(@Nullable Output writesToCommitLogEnabled) {
            $.writesToCommitLogEnabled = writesToCommitLogEnabled;
            return this;
        }

        /**
         * @param writesToCommitLogEnabled Defines whether M3DB will include writes to this namespace in the commit log.
         * 
         * @return builder
         * 
         */
        public Builder writesToCommitLogEnabled(Boolean writesToCommitLogEnabled) {
            return writesToCommitLogEnabled(Output.of(writesToCommitLogEnabled));
        }

        public M3DbNamespaceState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy