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

com.ovhcloud.pulumi.ovh.Dbaas.inputs.LogsOutputGraylogStreamState 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.Dbaas.inputs;

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


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

    public static final LogsOutputGraylogStreamState Empty = new LogsOutputGraylogStreamState();

    /**
     * Indicates if the current user can create alert on the stream
     * 
     */
    @Import(name="canAlert")
    private @Nullable Output canAlert;

    /**
     * @return Indicates if the current user can create alert on the stream
     * 
     */
    public Optional> canAlert() {
        return Optional.ofNullable(this.canAlert);
    }

    /**
     * Cold storage compression method. One of "LZMA", "GZIP", "DEFLATED", "ZSTD"
     * 
     */
    @Import(name="coldStorageCompression")
    private @Nullable Output coldStorageCompression;

    /**
     * @return Cold storage compression method. One of "LZMA", "GZIP", "DEFLATED", "ZSTD"
     * 
     */
    public Optional> coldStorageCompression() {
        return Optional.ofNullable(this.coldStorageCompression);
    }

    /**
     * ColdStorage content. One of "ALL", "GLEF", "PLAIN"
     * 
     */
    @Import(name="coldStorageContent")
    private @Nullable Output coldStorageContent;

    /**
     * @return ColdStorage content. One of "ALL", "GLEF", "PLAIN"
     * 
     */
    public Optional> coldStorageContent() {
        return Optional.ofNullable(this.coldStorageContent);
    }

    /**
     * Is Cold storage enabled?
     * 
     */
    @Import(name="coldStorageEnabled")
    private @Nullable Output coldStorageEnabled;

    /**
     * @return Is Cold storage enabled?
     * 
     */
    public Optional> coldStorageEnabled() {
        return Optional.ofNullable(this.coldStorageEnabled);
    }

    /**
     * Notify on new Cold storage archive
     * 
     */
    @Import(name="coldStorageNotifyEnabled")
    private @Nullable Output coldStorageNotifyEnabled;

    /**
     * @return Notify on new Cold storage archive
     * 
     */
    public Optional> coldStorageNotifyEnabled() {
        return Optional.ofNullable(this.coldStorageNotifyEnabled);
    }

    /**
     * Cold storage retention in year
     * 
     */
    @Import(name="coldStorageRetention")
    private @Nullable Output coldStorageRetention;

    /**
     * @return Cold storage retention in year
     * 
     */
    public Optional> coldStorageRetention() {
        return Optional.ofNullable(this.coldStorageRetention);
    }

    /**
     * ColdStorage destination. One of "PCA", "PCS"
     * 
     */
    @Import(name="coldStorageTarget")
    private @Nullable Output coldStorageTarget;

    /**
     * @return ColdStorage destination. One of "PCA", "PCS"
     * 
     */
    public Optional> coldStorageTarget() {
        return Optional.ofNullable(this.coldStorageTarget);
    }

    /**
     * Stream creation
     * 
     */
    @Import(name="createdAt")
    private @Nullable Output createdAt;

    /**
     * @return Stream creation
     * 
     */
    public Optional> createdAt() {
        return Optional.ofNullable(this.createdAt);
    }

    /**
     * Stream description
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Stream description
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Enable ES indexing
     * 
     */
    @Import(name="indexingEnabled")
    private @Nullable Output indexingEnabled;

    /**
     * @return Enable ES indexing
     * 
     */
    public Optional> indexingEnabled() {
        return Optional.ofNullable(this.indexingEnabled);
    }

    /**
     * Maximum indexing size (in GB)
     * 
     */
    @Import(name="indexingMaxSize")
    private @Nullable Output indexingMaxSize;

    /**
     * @return Maximum indexing size (in GB)
     * 
     */
    public Optional> indexingMaxSize() {
        return Optional.ofNullable(this.indexingMaxSize);
    }

    /**
     * If set, notify when size is near 80, 90 or 100 % of the maximum configured setting
     * 
     */
    @Import(name="indexingNotifyEnabled")
    private @Nullable Output indexingNotifyEnabled;

    /**
     * @return If set, notify when size is near 80, 90 or 100 % of the maximum configured setting
     * 
     */
    public Optional> indexingNotifyEnabled() {
        return Optional.ofNullable(this.indexingNotifyEnabled);
    }

    /**
     * Indicates if you are allowed to edit entry
     * 
     */
    @Import(name="isEditable")
    private @Nullable Output isEditable;

    /**
     * @return Indicates if you are allowed to edit entry
     * 
     */
    public Optional> isEditable() {
        return Optional.ofNullable(this.isEditable);
    }

    /**
     * Indicates if you are allowed to share entry
     * 
     */
    @Import(name="isShareable")
    private @Nullable Output isShareable;

    /**
     * @return Indicates if you are allowed to share entry
     * 
     */
    public Optional> isShareable() {
        return Optional.ofNullable(this.isShareable);
    }

    /**
     * Number of alert condition
     * 
     */
    @Import(name="nbAlertCondition")
    private @Nullable Output nbAlertCondition;

    /**
     * @return Number of alert condition
     * 
     */
    public Optional> nbAlertCondition() {
        return Optional.ofNullable(this.nbAlertCondition);
    }

    /**
     * Number of coldstored archivesr
     * 
     */
    @Import(name="nbArchive")
    private @Nullable Output nbArchive;

    /**
     * @return Number of coldstored archivesr
     * 
     */
    public Optional> nbArchive() {
        return Optional.ofNullable(this.nbArchive);
    }

    /**
     * Parent stream ID
     * 
     */
    @Import(name="parentStreamId")
    private @Nullable Output parentStreamId;

    /**
     * @return Parent stream ID
     * 
     */
    public Optional> parentStreamId() {
        return Optional.ofNullable(this.parentStreamId);
    }

    /**
     * If set, pause indexing when maximum size is reach
     * 
     */
    @Import(name="pauseIndexingOnMaxSize")
    private @Nullable Output pauseIndexingOnMaxSize;

    /**
     * @return If set, pause indexing when maximum size is reach
     * 
     */
    public Optional> pauseIndexingOnMaxSize() {
        return Optional.ofNullable(this.pauseIndexingOnMaxSize);
    }

    /**
     * Retention ID
     * 
     */
    @Import(name="retentionId")
    private @Nullable Output retentionId;

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

    /**
     * The service name
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return The service name
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    /**
     * Stream ID
     * 
     */
    @Import(name="streamId")
    private @Nullable Output streamId;

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

    /**
     * Stream description
     * 
     */
    @Import(name="title")
    private @Nullable Output title;

    /**
     * @return Stream description
     * 
     */
    public Optional> title() {
        return Optional.ofNullable(this.title);
    }

    /**
     * Stream last updater
     * 
     */
    @Import(name="updatedAt")
    private @Nullable Output updatedAt;

    /**
     * @return Stream last updater
     * 
     */
    public Optional> updatedAt() {
        return Optional.ofNullable(this.updatedAt);
    }

    /**
     * Enable Websocket
     * 
     */
    @Import(name="webSocketEnabled")
    private @Nullable Output webSocketEnabled;

    /**
     * @return Enable Websocket
     * 
     */
    public Optional> webSocketEnabled() {
        return Optional.ofNullable(this.webSocketEnabled);
    }

    /**
     * Write token of the stream (empty if the caller is not the owner of the stream)
     * 
     */
    @Import(name="writeToken")
    private @Nullable Output writeToken;

    /**
     * @return Write token of the stream (empty if the caller is not the owner of the stream)
     * 
     */
    public Optional> writeToken() {
        return Optional.ofNullable(this.writeToken);
    }

    private LogsOutputGraylogStreamState() {}

    private LogsOutputGraylogStreamState(LogsOutputGraylogStreamState $) {
        this.canAlert = $.canAlert;
        this.coldStorageCompression = $.coldStorageCompression;
        this.coldStorageContent = $.coldStorageContent;
        this.coldStorageEnabled = $.coldStorageEnabled;
        this.coldStorageNotifyEnabled = $.coldStorageNotifyEnabled;
        this.coldStorageRetention = $.coldStorageRetention;
        this.coldStorageTarget = $.coldStorageTarget;
        this.createdAt = $.createdAt;
        this.description = $.description;
        this.indexingEnabled = $.indexingEnabled;
        this.indexingMaxSize = $.indexingMaxSize;
        this.indexingNotifyEnabled = $.indexingNotifyEnabled;
        this.isEditable = $.isEditable;
        this.isShareable = $.isShareable;
        this.nbAlertCondition = $.nbAlertCondition;
        this.nbArchive = $.nbArchive;
        this.parentStreamId = $.parentStreamId;
        this.pauseIndexingOnMaxSize = $.pauseIndexingOnMaxSize;
        this.retentionId = $.retentionId;
        this.serviceName = $.serviceName;
        this.streamId = $.streamId;
        this.title = $.title;
        this.updatedAt = $.updatedAt;
        this.webSocketEnabled = $.webSocketEnabled;
        this.writeToken = $.writeToken;
    }

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

    public static final class Builder {
        private LogsOutputGraylogStreamState $;

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

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

        /**
         * @param canAlert Indicates if the current user can create alert on the stream
         * 
         * @return builder
         * 
         */
        public Builder canAlert(@Nullable Output canAlert) {
            $.canAlert = canAlert;
            return this;
        }

        /**
         * @param canAlert Indicates if the current user can create alert on the stream
         * 
         * @return builder
         * 
         */
        public Builder canAlert(Boolean canAlert) {
            return canAlert(Output.of(canAlert));
        }

        /**
         * @param coldStorageCompression Cold storage compression method. One of "LZMA", "GZIP", "DEFLATED", "ZSTD"
         * 
         * @return builder
         * 
         */
        public Builder coldStorageCompression(@Nullable Output coldStorageCompression) {
            $.coldStorageCompression = coldStorageCompression;
            return this;
        }

        /**
         * @param coldStorageCompression Cold storage compression method. One of "LZMA", "GZIP", "DEFLATED", "ZSTD"
         * 
         * @return builder
         * 
         */
        public Builder coldStorageCompression(String coldStorageCompression) {
            return coldStorageCompression(Output.of(coldStorageCompression));
        }

        /**
         * @param coldStorageContent ColdStorage content. One of "ALL", "GLEF", "PLAIN"
         * 
         * @return builder
         * 
         */
        public Builder coldStorageContent(@Nullable Output coldStorageContent) {
            $.coldStorageContent = coldStorageContent;
            return this;
        }

        /**
         * @param coldStorageContent ColdStorage content. One of "ALL", "GLEF", "PLAIN"
         * 
         * @return builder
         * 
         */
        public Builder coldStorageContent(String coldStorageContent) {
            return coldStorageContent(Output.of(coldStorageContent));
        }

        /**
         * @param coldStorageEnabled Is Cold storage enabled?
         * 
         * @return builder
         * 
         */
        public Builder coldStorageEnabled(@Nullable Output coldStorageEnabled) {
            $.coldStorageEnabled = coldStorageEnabled;
            return this;
        }

        /**
         * @param coldStorageEnabled Is Cold storage enabled?
         * 
         * @return builder
         * 
         */
        public Builder coldStorageEnabled(Boolean coldStorageEnabled) {
            return coldStorageEnabled(Output.of(coldStorageEnabled));
        }

        /**
         * @param coldStorageNotifyEnabled Notify on new Cold storage archive
         * 
         * @return builder
         * 
         */
        public Builder coldStorageNotifyEnabled(@Nullable Output coldStorageNotifyEnabled) {
            $.coldStorageNotifyEnabled = coldStorageNotifyEnabled;
            return this;
        }

        /**
         * @param coldStorageNotifyEnabled Notify on new Cold storage archive
         * 
         * @return builder
         * 
         */
        public Builder coldStorageNotifyEnabled(Boolean coldStorageNotifyEnabled) {
            return coldStorageNotifyEnabled(Output.of(coldStorageNotifyEnabled));
        }

        /**
         * @param coldStorageRetention Cold storage retention in year
         * 
         * @return builder
         * 
         */
        public Builder coldStorageRetention(@Nullable Output coldStorageRetention) {
            $.coldStorageRetention = coldStorageRetention;
            return this;
        }

        /**
         * @param coldStorageRetention Cold storage retention in year
         * 
         * @return builder
         * 
         */
        public Builder coldStorageRetention(Integer coldStorageRetention) {
            return coldStorageRetention(Output.of(coldStorageRetention));
        }

        /**
         * @param coldStorageTarget ColdStorage destination. One of "PCA", "PCS"
         * 
         * @return builder
         * 
         */
        public Builder coldStorageTarget(@Nullable Output coldStorageTarget) {
            $.coldStorageTarget = coldStorageTarget;
            return this;
        }

        /**
         * @param coldStorageTarget ColdStorage destination. One of "PCA", "PCS"
         * 
         * @return builder
         * 
         */
        public Builder coldStorageTarget(String coldStorageTarget) {
            return coldStorageTarget(Output.of(coldStorageTarget));
        }

        /**
         * @param createdAt Stream creation
         * 
         * @return builder
         * 
         */
        public Builder createdAt(@Nullable Output createdAt) {
            $.createdAt = createdAt;
            return this;
        }

        /**
         * @param createdAt Stream creation
         * 
         * @return builder
         * 
         */
        public Builder createdAt(String createdAt) {
            return createdAt(Output.of(createdAt));
        }

        /**
         * @param description Stream description
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Stream description
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param indexingEnabled Enable ES indexing
         * 
         * @return builder
         * 
         */
        public Builder indexingEnabled(@Nullable Output indexingEnabled) {
            $.indexingEnabled = indexingEnabled;
            return this;
        }

        /**
         * @param indexingEnabled Enable ES indexing
         * 
         * @return builder
         * 
         */
        public Builder indexingEnabled(Boolean indexingEnabled) {
            return indexingEnabled(Output.of(indexingEnabled));
        }

        /**
         * @param indexingMaxSize Maximum indexing size (in GB)
         * 
         * @return builder
         * 
         */
        public Builder indexingMaxSize(@Nullable Output indexingMaxSize) {
            $.indexingMaxSize = indexingMaxSize;
            return this;
        }

        /**
         * @param indexingMaxSize Maximum indexing size (in GB)
         * 
         * @return builder
         * 
         */
        public Builder indexingMaxSize(Integer indexingMaxSize) {
            return indexingMaxSize(Output.of(indexingMaxSize));
        }

        /**
         * @param indexingNotifyEnabled If set, notify when size is near 80, 90 or 100 % of the maximum configured setting
         * 
         * @return builder
         * 
         */
        public Builder indexingNotifyEnabled(@Nullable Output indexingNotifyEnabled) {
            $.indexingNotifyEnabled = indexingNotifyEnabled;
            return this;
        }

        /**
         * @param indexingNotifyEnabled If set, notify when size is near 80, 90 or 100 % of the maximum configured setting
         * 
         * @return builder
         * 
         */
        public Builder indexingNotifyEnabled(Boolean indexingNotifyEnabled) {
            return indexingNotifyEnabled(Output.of(indexingNotifyEnabled));
        }

        /**
         * @param isEditable Indicates if you are allowed to edit entry
         * 
         * @return builder
         * 
         */
        public Builder isEditable(@Nullable Output isEditable) {
            $.isEditable = isEditable;
            return this;
        }

        /**
         * @param isEditable Indicates if you are allowed to edit entry
         * 
         * @return builder
         * 
         */
        public Builder isEditable(Boolean isEditable) {
            return isEditable(Output.of(isEditable));
        }

        /**
         * @param isShareable Indicates if you are allowed to share entry
         * 
         * @return builder
         * 
         */
        public Builder isShareable(@Nullable Output isShareable) {
            $.isShareable = isShareable;
            return this;
        }

        /**
         * @param isShareable Indicates if you are allowed to share entry
         * 
         * @return builder
         * 
         */
        public Builder isShareable(Boolean isShareable) {
            return isShareable(Output.of(isShareable));
        }

        /**
         * @param nbAlertCondition Number of alert condition
         * 
         * @return builder
         * 
         */
        public Builder nbAlertCondition(@Nullable Output nbAlertCondition) {
            $.nbAlertCondition = nbAlertCondition;
            return this;
        }

        /**
         * @param nbAlertCondition Number of alert condition
         * 
         * @return builder
         * 
         */
        public Builder nbAlertCondition(Integer nbAlertCondition) {
            return nbAlertCondition(Output.of(nbAlertCondition));
        }

        /**
         * @param nbArchive Number of coldstored archivesr
         * 
         * @return builder
         * 
         */
        public Builder nbArchive(@Nullable Output nbArchive) {
            $.nbArchive = nbArchive;
            return this;
        }

        /**
         * @param nbArchive Number of coldstored archivesr
         * 
         * @return builder
         * 
         */
        public Builder nbArchive(Integer nbArchive) {
            return nbArchive(Output.of(nbArchive));
        }

        /**
         * @param parentStreamId Parent stream ID
         * 
         * @return builder
         * 
         */
        public Builder parentStreamId(@Nullable Output parentStreamId) {
            $.parentStreamId = parentStreamId;
            return this;
        }

        /**
         * @param parentStreamId Parent stream ID
         * 
         * @return builder
         * 
         */
        public Builder parentStreamId(String parentStreamId) {
            return parentStreamId(Output.of(parentStreamId));
        }

        /**
         * @param pauseIndexingOnMaxSize If set, pause indexing when maximum size is reach
         * 
         * @return builder
         * 
         */
        public Builder pauseIndexingOnMaxSize(@Nullable Output pauseIndexingOnMaxSize) {
            $.pauseIndexingOnMaxSize = pauseIndexingOnMaxSize;
            return this;
        }

        /**
         * @param pauseIndexingOnMaxSize If set, pause indexing when maximum size is reach
         * 
         * @return builder
         * 
         */
        public Builder pauseIndexingOnMaxSize(Boolean pauseIndexingOnMaxSize) {
            return pauseIndexingOnMaxSize(Output.of(pauseIndexingOnMaxSize));
        }

        /**
         * @param retentionId Retention ID
         * 
         * @return builder
         * 
         */
        public Builder retentionId(@Nullable Output retentionId) {
            $.retentionId = retentionId;
            return this;
        }

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

        /**
         * @param serviceName The service name
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The service name
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param streamId Stream ID
         * 
         * @return builder
         * 
         */
        public Builder streamId(@Nullable Output streamId) {
            $.streamId = streamId;
            return this;
        }

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

        /**
         * @param title Stream description
         * 
         * @return builder
         * 
         */
        public Builder title(@Nullable Output title) {
            $.title = title;
            return this;
        }

        /**
         * @param title Stream description
         * 
         * @return builder
         * 
         */
        public Builder title(String title) {
            return title(Output.of(title));
        }

        /**
         * @param updatedAt Stream last updater
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(@Nullable Output updatedAt) {
            $.updatedAt = updatedAt;
            return this;
        }

        /**
         * @param updatedAt Stream last updater
         * 
         * @return builder
         * 
         */
        public Builder updatedAt(String updatedAt) {
            return updatedAt(Output.of(updatedAt));
        }

        /**
         * @param webSocketEnabled Enable Websocket
         * 
         * @return builder
         * 
         */
        public Builder webSocketEnabled(@Nullable Output webSocketEnabled) {
            $.webSocketEnabled = webSocketEnabled;
            return this;
        }

        /**
         * @param webSocketEnabled Enable Websocket
         * 
         * @return builder
         * 
         */
        public Builder webSocketEnabled(Boolean webSocketEnabled) {
            return webSocketEnabled(Output.of(webSocketEnabled));
        }

        /**
         * @param writeToken Write token of the stream (empty if the caller is not the owner of the stream)
         * 
         * @return builder
         * 
         */
        public Builder writeToken(@Nullable Output writeToken) {
            $.writeToken = writeToken;
            return this;
        }

        /**
         * @param writeToken Write token of the stream (empty if the caller is not the owner of the stream)
         * 
         * @return builder
         * 
         */
        public Builder writeToken(String writeToken) {
            return writeToken(Output.of(writeToken));
        }

        public LogsOutputGraylogStreamState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy