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

com.pulumi.signalfx.log.inputs.ViewState Maven / Gradle / Ivy

There is a newer version: 7.8.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.pulumi.signalfx.log.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.signalfx.log.inputs.ViewColumnArgs;
import com.pulumi.signalfx.log.inputs.ViewSortOptionArgs;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ViewState Empty = new ViewState();

    /**
     * The column headers to show on the log view.
     * 
     */
    @Import(name="columns")
    private @Nullable Output> columns;

    /**
     * @return The column headers to show on the log view.
     * 
     */
    public Optional>> columns() {
        return Optional.ofNullable(this.columns);
    }

    /**
     * The connection that the log view uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud.
     * 
     */
    @Import(name="defaultConnection")
    private @Nullable Output defaultConnection;

    /**
     * @return The connection that the log view uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud.
     * 
     */
    public Optional> defaultConnection() {
        return Optional.ofNullable(this.defaultConnection);
    }

    /**
     * Description of the log view.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the log view.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Seconds since epoch. Used for visualization. Conflicts with `time_range`.
     * 
     */
    @Import(name="endTime")
    private @Nullable Output endTime;

    /**
     * @return Seconds since epoch. Used for visualization. Conflicts with `time_range`.
     * 
     */
    public Optional> endTime() {
        return Optional.ofNullable(this.endTime);
    }

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

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

    /**
     * Signalflow program text for the log view. More info at https://developers.signalfx.com/docs/signalflow-overview.
     * 
     */
    @Import(name="programText")
    private @Nullable Output programText;

    /**
     * @return Signalflow program text for the log view. More info at https://developers.signalfx.com/docs/signalflow-overview.
     * 
     */
    public Optional> programText() {
        return Optional.ofNullable(this.programText);
    }

    /**
     * The sorting options configuration to specify if the log view table needs to be sorted in a particular field.
     * 
     */
    @Import(name="sortOptions")
    private @Nullable Output> sortOptions;

    /**
     * @return The sorting options configuration to specify if the log view table needs to be sorted in a particular field.
     * 
     */
    public Optional>> sortOptions() {
        return Optional.ofNullable(this.sortOptions);
    }

    /**
     * Seconds since epoch. Used for visualization. Conflicts with `time_range`.
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return Seconds since epoch. Used for visualization. Conflicts with `time_range`.
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    /**
     * From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `start_time` and `end_time`.
     * 
     */
    @Import(name="timeRange")
    private @Nullable Output timeRange;

    /**
     * @return From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `start_time` and `end_time`.
     * 
     */
    public Optional> timeRange() {
        return Optional.ofNullable(this.timeRange);
    }

    /**
     * The URL of the log view.
     * 
     */
    @Import(name="url")
    private @Nullable Output url;

    /**
     * @return The URL of the log view.
     * 
     */
    public Optional> url() {
        return Optional.ofNullable(this.url);
    }

    private ViewState() {}

    private ViewState(ViewState $) {
        this.columns = $.columns;
        this.defaultConnection = $.defaultConnection;
        this.description = $.description;
        this.endTime = $.endTime;
        this.name = $.name;
        this.programText = $.programText;
        this.sortOptions = $.sortOptions;
        this.startTime = $.startTime;
        this.timeRange = $.timeRange;
        this.url = $.url;
    }

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

    public static final class Builder {
        private ViewState $;

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

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

        /**
         * @param columns The column headers to show on the log view.
         * 
         * @return builder
         * 
         */
        public Builder columns(@Nullable Output> columns) {
            $.columns = columns;
            return this;
        }

        /**
         * @param columns The column headers to show on the log view.
         * 
         * @return builder
         * 
         */
        public Builder columns(List columns) {
            return columns(Output.of(columns));
        }

        /**
         * @param columns The column headers to show on the log view.
         * 
         * @return builder
         * 
         */
        public Builder columns(ViewColumnArgs... columns) {
            return columns(List.of(columns));
        }

        /**
         * @param defaultConnection The connection that the log view uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud.
         * 
         * @return builder
         * 
         */
        public Builder defaultConnection(@Nullable Output defaultConnection) {
            $.defaultConnection = defaultConnection;
            return this;
        }

        /**
         * @param defaultConnection The connection that the log view uses to fetch data. This could be Splunk Enterprise, Splunk Enterprise Cloud or Observability Cloud.
         * 
         * @return builder
         * 
         */
        public Builder defaultConnection(String defaultConnection) {
            return defaultConnection(Output.of(defaultConnection));
        }

        /**
         * @param description Description of the log view.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the log view.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param endTime Seconds since epoch. Used for visualization. Conflicts with `time_range`.
         * 
         * @return builder
         * 
         */
        public Builder endTime(@Nullable Output endTime) {
            $.endTime = endTime;
            return this;
        }

        /**
         * @param endTime Seconds since epoch. Used for visualization. Conflicts with `time_range`.
         * 
         * @return builder
         * 
         */
        public Builder endTime(Integer endTime) {
            return endTime(Output.of(endTime));
        }

        /**
         * @param name Name of the log view.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param programText Signalflow program text for the log view. More info at https://developers.signalfx.com/docs/signalflow-overview.
         * 
         * @return builder
         * 
         */
        public Builder programText(@Nullable Output programText) {
            $.programText = programText;
            return this;
        }

        /**
         * @param programText Signalflow program text for the log view. More info at https://developers.signalfx.com/docs/signalflow-overview.
         * 
         * @return builder
         * 
         */
        public Builder programText(String programText) {
            return programText(Output.of(programText));
        }

        /**
         * @param sortOptions The sorting options configuration to specify if the log view table needs to be sorted in a particular field.
         * 
         * @return builder
         * 
         */
        public Builder sortOptions(@Nullable Output> sortOptions) {
            $.sortOptions = sortOptions;
            return this;
        }

        /**
         * @param sortOptions The sorting options configuration to specify if the log view table needs to be sorted in a particular field.
         * 
         * @return builder
         * 
         */
        public Builder sortOptions(List sortOptions) {
            return sortOptions(Output.of(sortOptions));
        }

        /**
         * @param sortOptions The sorting options configuration to specify if the log view table needs to be sorted in a particular field.
         * 
         * @return builder
         * 
         */
        public Builder sortOptions(ViewSortOptionArgs... sortOptions) {
            return sortOptions(List.of(sortOptions));
        }

        /**
         * @param startTime Seconds since epoch. Used for visualization. Conflicts with `time_range`.
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime Seconds since epoch. Used for visualization. Conflicts with `time_range`.
         * 
         * @return builder
         * 
         */
        public Builder startTime(Integer startTime) {
            return startTime(Output.of(startTime));
        }

        /**
         * @param timeRange From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `start_time` and `end_time`.
         * 
         * @return builder
         * 
         */
        public Builder timeRange(@Nullable Output timeRange) {
            $.timeRange = timeRange;
            return this;
        }

        /**
         * @param timeRange From when to display data. Splunk Observability Cloud time syntax (e.g. `"-5m"`, `"-1h"`). Conflicts with `start_time` and `end_time`.
         * 
         * @return builder
         * 
         */
        public Builder timeRange(Integer timeRange) {
            return timeRange(Output.of(timeRange));
        }

        /**
         * @param url The URL of the log view.
         * 
         * @return builder
         * 
         */
        public Builder url(@Nullable Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url The URL of the log view.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

        public ViewState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy