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

com.pulumi.azurenative.operationalinsights.outputs.GetTableResult Maven / Gradle / Ivy

// *** 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.outputs;

import com.pulumi.azurenative.operationalinsights.outputs.RestoredLogsResponse;
import com.pulumi.azurenative.operationalinsights.outputs.ResultStatisticsResponse;
import com.pulumi.azurenative.operationalinsights.outputs.SchemaResponse;
import com.pulumi.azurenative.operationalinsights.outputs.SearchResultsResponse;
import com.pulumi.azurenative.operationalinsights.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetTableResult {
    /**
     * @return The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)
     * 
     */
    private Integer archiveRetentionInDays;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The timestamp that table plan was last modified (UTC).
     * 
     */
    private String lastPlanModifiedDate;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Instruct the system how to handle and charge the logs ingested to this table.
     * 
     */
    private @Nullable String plan;
    /**
     * @return Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.
     * 
     */
    private String provisioningState;
    /**
     * @return Parameters of the restore operation that initiated this table.
     * 
     */
    private @Nullable RestoredLogsResponse restoredLogs;
    /**
     * @return Search job execution statistics.
     * 
     */
    private ResultStatisticsResponse resultStatistics;
    /**
     * @return The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention.
     * 
     */
    private @Nullable Integer retentionInDays;
    /**
     * @return True - Value originates from workspace retention in days, False - Customer specific.
     * 
     */
    private Boolean retentionInDaysAsDefault;
    /**
     * @return Table schema.
     * 
     */
    private @Nullable SchemaResponse schema;
    /**
     * @return Parameters of the search job that initiated this table.
     * 
     */
    private @Nullable SearchResultsResponse searchResults;
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The table total retention in days, between 4 and 4383. Setting this property to -1 will default to table retention.
     * 
     */
    private @Nullable Integer totalRetentionInDays;
    /**
     * @return True - Value originates from retention in days, False - Customer specific.
     * 
     */
    private Boolean totalRetentionInDaysAsDefault;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetTableResult() {}
    /**
     * @return The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)
     * 
     */
    public Integer archiveRetentionInDays() {
        return this.archiveRetentionInDays;
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The timestamp that table plan was last modified (UTC).
     * 
     */
    public String lastPlanModifiedDate() {
        return this.lastPlanModifiedDate;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Instruct the system how to handle and charge the logs ingested to this table.
     * 
     */
    public Optional plan() {
        return Optional.ofNullable(this.plan);
    }
    /**
     * @return Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Parameters of the restore operation that initiated this table.
     * 
     */
    public Optional restoredLogs() {
        return Optional.ofNullable(this.restoredLogs);
    }
    /**
     * @return Search job execution statistics.
     * 
     */
    public ResultStatisticsResponse resultStatistics() {
        return this.resultStatistics;
    }
    /**
     * @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);
    }
    /**
     * @return True - Value originates from workspace retention in days, False - Customer specific.
     * 
     */
    public Boolean retentionInDaysAsDefault() {
        return this.retentionInDaysAsDefault;
    }
    /**
     * @return Table schema.
     * 
     */
    public Optional schema() {
        return Optional.ofNullable(this.schema);
    }
    /**
     * @return Parameters of the search job that initiated this table.
     * 
     */
    public Optional searchResults() {
        return Optional.ofNullable(this.searchResults);
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @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);
    }
    /**
     * @return True - Value originates from retention in days, False - Customer specific.
     * 
     */
    public Boolean totalRetentionInDaysAsDefault() {
        return this.totalRetentionInDaysAsDefault;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetTableResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer archiveRetentionInDays;
        private String id;
        private String lastPlanModifiedDate;
        private String name;
        private @Nullable String plan;
        private String provisioningState;
        private @Nullable RestoredLogsResponse restoredLogs;
        private ResultStatisticsResponse resultStatistics;
        private @Nullable Integer retentionInDays;
        private Boolean retentionInDaysAsDefault;
        private @Nullable SchemaResponse schema;
        private @Nullable SearchResultsResponse searchResults;
        private SystemDataResponse systemData;
        private @Nullable Integer totalRetentionInDays;
        private Boolean totalRetentionInDaysAsDefault;
        private String type;
        public Builder() {}
        public Builder(GetTableResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.archiveRetentionInDays = defaults.archiveRetentionInDays;
    	      this.id = defaults.id;
    	      this.lastPlanModifiedDate = defaults.lastPlanModifiedDate;
    	      this.name = defaults.name;
    	      this.plan = defaults.plan;
    	      this.provisioningState = defaults.provisioningState;
    	      this.restoredLogs = defaults.restoredLogs;
    	      this.resultStatistics = defaults.resultStatistics;
    	      this.retentionInDays = defaults.retentionInDays;
    	      this.retentionInDaysAsDefault = defaults.retentionInDaysAsDefault;
    	      this.schema = defaults.schema;
    	      this.searchResults = defaults.searchResults;
    	      this.systemData = defaults.systemData;
    	      this.totalRetentionInDays = defaults.totalRetentionInDays;
    	      this.totalRetentionInDaysAsDefault = defaults.totalRetentionInDaysAsDefault;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder archiveRetentionInDays(Integer archiveRetentionInDays) {
            if (archiveRetentionInDays == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "archiveRetentionInDays");
            }
            this.archiveRetentionInDays = archiveRetentionInDays;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder lastPlanModifiedDate(String lastPlanModifiedDate) {
            if (lastPlanModifiedDate == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "lastPlanModifiedDate");
            }
            this.lastPlanModifiedDate = lastPlanModifiedDate;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder plan(@Nullable String plan) {

            this.plan = plan;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder restoredLogs(@Nullable RestoredLogsResponse restoredLogs) {

            this.restoredLogs = restoredLogs;
            return this;
        }
        @CustomType.Setter
        public Builder resultStatistics(ResultStatisticsResponse resultStatistics) {
            if (resultStatistics == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "resultStatistics");
            }
            this.resultStatistics = resultStatistics;
            return this;
        }
        @CustomType.Setter
        public Builder retentionInDays(@Nullable Integer retentionInDays) {

            this.retentionInDays = retentionInDays;
            return this;
        }
        @CustomType.Setter
        public Builder retentionInDaysAsDefault(Boolean retentionInDaysAsDefault) {
            if (retentionInDaysAsDefault == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "retentionInDaysAsDefault");
            }
            this.retentionInDaysAsDefault = retentionInDaysAsDefault;
            return this;
        }
        @CustomType.Setter
        public Builder schema(@Nullable SchemaResponse schema) {

            this.schema = schema;
            return this;
        }
        @CustomType.Setter
        public Builder searchResults(@Nullable SearchResultsResponse searchResults) {

            this.searchResults = searchResults;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder totalRetentionInDays(@Nullable Integer totalRetentionInDays) {

            this.totalRetentionInDays = totalRetentionInDays;
            return this;
        }
        @CustomType.Setter
        public Builder totalRetentionInDaysAsDefault(Boolean totalRetentionInDaysAsDefault) {
            if (totalRetentionInDaysAsDefault == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "totalRetentionInDaysAsDefault");
            }
            this.totalRetentionInDaysAsDefault = totalRetentionInDaysAsDefault;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetTableResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetTableResult build() {
            final var _resultValue = new GetTableResult();
            _resultValue.archiveRetentionInDays = archiveRetentionInDays;
            _resultValue.id = id;
            _resultValue.lastPlanModifiedDate = lastPlanModifiedDate;
            _resultValue.name = name;
            _resultValue.plan = plan;
            _resultValue.provisioningState = provisioningState;
            _resultValue.restoredLogs = restoredLogs;
            _resultValue.resultStatistics = resultStatistics;
            _resultValue.retentionInDays = retentionInDays;
            _resultValue.retentionInDaysAsDefault = retentionInDaysAsDefault;
            _resultValue.schema = schema;
            _resultValue.searchResults = searchResults;
            _resultValue.systemData = systemData;
            _resultValue.totalRetentionInDays = totalRetentionInDays;
            _resultValue.totalRetentionInDaysAsDefault = totalRetentionInDaysAsDefault;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy