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

com.pulumi.azurenative.operationalinsights.TableArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.operationalinsights;

import com.pulumi.azurenative.operationalinsights.enums.TablePlanEnum;
import com.pulumi.azurenative.operationalinsights.inputs.RestoredLogsArgs;
import com.pulumi.azurenative.operationalinsights.inputs.SchemaArgs;
import com.pulumi.azurenative.operationalinsights.inputs.SearchResultsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final TableArgs Empty = new TableArgs();

    /**
     * Instruct the system how to handle and charge the logs ingested to this table.
     * 
     */
    @Import(name="plan")
    private @Nullable Output> plan;

    /**
     * @return Instruct the system how to handle and charge the logs ingested to this table.
     * 
     */
    public Optional>> plan() {
        return Optional.ofNullable(this.plan);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Parameters of the restore operation that initiated this table.
     * 
     */
    @Import(name="restoredLogs")
    private @Nullable Output restoredLogs;

    /**
     * @return Parameters of the restore operation that initiated this table.
     * 
     */
    public Optional> restoredLogs() {
        return Optional.ofNullable(this.restoredLogs);
    }

    /**
     * The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
     * 
     */
    @Import(name="retentionInDays")
    private @Nullable Output retentionInDays;

    /**
     * @return The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
     * 
     */
    public Optional> retentionInDays() {
        return Optional.ofNullable(this.retentionInDays);
    }

    /**
     * Table schema.
     * 
     */
    @Import(name="schema")
    private @Nullable Output schema;

    /**
     * @return Table schema.
     * 
     */
    public Optional> schema() {
        return Optional.ofNullable(this.schema);
    }

    /**
     * Parameters of the search job that initiated this table.
     * 
     */
    @Import(name="searchResults")
    private @Nullable Output searchResults;

    /**
     * @return Parameters of the search job that initiated this table.
     * 
     */
    public Optional> searchResults() {
        return Optional.ofNullable(this.searchResults);
    }

    /**
     * The name of the table.
     * 
     */
    @Import(name="tableName")
    private @Nullable Output tableName;

    /**
     * @return The name of the table.
     * 
     */
    public Optional> tableName() {
        return Optional.ofNullable(this.tableName);
    }

    /**
     * The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.
     * 
     */
    @Import(name="totalRetentionInDays")
    private @Nullable Output totalRetentionInDays;

    /**
     * @return The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.
     * 
     */
    public Optional> totalRetentionInDays() {
        return Optional.ofNullable(this.totalRetentionInDays);
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private TableArgs() {}

    private TableArgs(TableArgs $) {
        this.plan = $.plan;
        this.resourceGroupName = $.resourceGroupName;
        this.restoredLogs = $.restoredLogs;
        this.retentionInDays = $.retentionInDays;
        this.schema = $.schema;
        this.searchResults = $.searchResults;
        this.tableName = $.tableName;
        this.totalRetentionInDays = $.totalRetentionInDays;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private TableArgs $;

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

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

        /**
         * @param plan Instruct the system how to handle and charge the logs ingested to this table.
         * 
         * @return builder
         * 
         */
        public Builder plan(@Nullable Output> plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan Instruct the system how to handle and charge the logs ingested to this table.
         * 
         * @return builder
         * 
         */
        public Builder plan(Either plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param plan Instruct the system how to handle and charge the logs ingested to this table.
         * 
         * @return builder
         * 
         */
        public Builder plan(String plan) {
            return plan(Either.ofLeft(plan));
        }

        /**
         * @param plan Instruct the system how to handle and charge the logs ingested to this table.
         * 
         * @return builder
         * 
         */
        public Builder plan(TablePlanEnum plan) {
            return plan(Either.ofRight(plan));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param restoredLogs Parameters of the restore operation that initiated this table.
         * 
         * @return builder
         * 
         */
        public Builder restoredLogs(@Nullable Output restoredLogs) {
            $.restoredLogs = restoredLogs;
            return this;
        }

        /**
         * @param restoredLogs Parameters of the restore operation that initiated this table.
         * 
         * @return builder
         * 
         */
        public Builder restoredLogs(RestoredLogsArgs restoredLogs) {
            return restoredLogs(Output.of(restoredLogs));
        }

        /**
         * @param retentionInDays The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(@Nullable Output retentionInDays) {
            $.retentionInDays = retentionInDays;
            return this;
        }

        /**
         * @param retentionInDays The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
         * 
         * @return builder
         * 
         */
        public Builder retentionInDays(Integer retentionInDays) {
            return retentionInDays(Output.of(retentionInDays));
        }

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

        /**
         * @param schema Table schema.
         * 
         * @return builder
         * 
         */
        public Builder schema(SchemaArgs schema) {
            return schema(Output.of(schema));
        }

        /**
         * @param searchResults Parameters of the search job that initiated this table.
         * 
         * @return builder
         * 
         */
        public Builder searchResults(@Nullable Output searchResults) {
            $.searchResults = searchResults;
            return this;
        }

        /**
         * @param searchResults Parameters of the search job that initiated this table.
         * 
         * @return builder
         * 
         */
        public Builder searchResults(SearchResultsArgs searchResults) {
            return searchResults(Output.of(searchResults));
        }

        /**
         * @param tableName The name of the table.
         * 
         * @return builder
         * 
         */
        public Builder tableName(@Nullable Output tableName) {
            $.tableName = tableName;
            return this;
        }

        /**
         * @param tableName The name of the table.
         * 
         * @return builder
         * 
         */
        public Builder tableName(String tableName) {
            return tableName(Output.of(tableName));
        }

        /**
         * @param totalRetentionInDays The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.
         * 
         * @return builder
         * 
         */
        public Builder totalRetentionInDays(@Nullable Output totalRetentionInDays) {
            $.totalRetentionInDays = totalRetentionInDays;
            return this;
        }

        /**
         * @param totalRetentionInDays The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.
         * 
         * @return builder
         * 
         */
        public Builder totalRetentionInDays(Integer totalRetentionInDays) {
            return totalRetentionInDays(Output.of(totalRetentionInDays));
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public TableArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("TableArgs", "resourceGroupName");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("TableArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy