All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.loganalytics.inputs.WorkspaceTableState 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.azure.loganalytics.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class WorkspaceTableState extends com.pulumi.resources.ResourceArgs {
public static final WorkspaceTableState Empty = new WorkspaceTableState();
/**
* Specifies the name of a table in a Log Analytics Workspace.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Specifies the name of a table in a Log Analytics Workspace.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`.
*
* > **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#supported-tables).
*
*/
@Import(name="plan")
private @Nullable Output plan;
/**
* @return Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`.
*
* > **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#supported-tables).
*
*/
public Optional> plan() {
return Optional.ofNullable(this.plan);
}
/**
* The table's retention in days. Possible values are either `8` (Basic Tier only) or range between `4` and `730`.
*
*/
@Import(name="retentionInDays")
private @Nullable Output retentionInDays;
/**
* @return The table's retention in days. Possible values are either `8` (Basic Tier only) or range between `4` and `730`.
*
*/
public Optional> retentionInDays() {
return Optional.ofNullable(this.retentionInDays);
}
/**
* The table's total retention in days. Possible values range between `4` and `730`; or `1095`, `1460`, `1826`, `2191`, `2556`, `2922`, `3288`, `3653`, `4018`, or `4383`.
*
* > **Note:** `retention_in_days` and `total_retention_in_days` will revert back to the value of azure.operationalinsights.AnalyticsWorkspace retention_in_days when a azure.loganalytics.WorkspaceTable is deleted.
*
* > **Note:** The `retention_in_days` cannot be specified when `plan` is `Basic` because the retention is fixed at eight days.
*
*/
@Import(name="totalRetentionInDays")
private @Nullable Output totalRetentionInDays;
/**
* @return The table's total retention in days. Possible values range between `4` and `730`; or `1095`, `1460`, `1826`, `2191`, `2556`, `2922`, `3288`, `3653`, `4018`, or `4383`.
*
* > **Note:** `retention_in_days` and `total_retention_in_days` will revert back to the value of azure.operationalinsights.AnalyticsWorkspace retention_in_days when a azure.loganalytics.WorkspaceTable is deleted.
*
* > **Note:** The `retention_in_days` cannot be specified when `plan` is `Basic` because the retention is fixed at eight days.
*
*/
public Optional> totalRetentionInDays() {
return Optional.ofNullable(this.totalRetentionInDays);
}
/**
* The object ID of the Log Analytics Workspace that contains the table.
*
*/
@Import(name="workspaceId")
private @Nullable Output workspaceId;
/**
* @return The object ID of the Log Analytics Workspace that contains the table.
*
*/
public Optional> workspaceId() {
return Optional.ofNullable(this.workspaceId);
}
private WorkspaceTableState() {}
private WorkspaceTableState(WorkspaceTableState $) {
this.name = $.name;
this.plan = $.plan;
this.retentionInDays = $.retentionInDays;
this.totalRetentionInDays = $.totalRetentionInDays;
this.workspaceId = $.workspaceId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WorkspaceTableState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private WorkspaceTableState $;
public Builder() {
$ = new WorkspaceTableState();
}
public Builder(WorkspaceTableState defaults) {
$ = new WorkspaceTableState(Objects.requireNonNull(defaults));
}
/**
* @param name Specifies the name of a table in a Log Analytics Workspace.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Specifies the name of a table in a Log Analytics Workspace.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param plan Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`.
*
* > **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#supported-tables).
*
* @return builder
*
*/
public Builder plan(@Nullable Output plan) {
$.plan = plan;
return this;
}
/**
* @param plan Specify the system how to handle and charge the logs ingested to the table. Possible values are `Analytics` and `Basic`. Defaults to `Analytics`.
*
* > **Note:** The `name` of tables currently supported by the `Basic` plan can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/basic-logs-configure?tabs=portal-1#supported-tables).
*
* @return builder
*
*/
public Builder plan(String plan) {
return plan(Output.of(plan));
}
/**
* @param retentionInDays The table's retention in days. Possible values are either `8` (Basic Tier only) or range between `4` and `730`.
*
* @return builder
*
*/
public Builder retentionInDays(@Nullable Output retentionInDays) {
$.retentionInDays = retentionInDays;
return this;
}
/**
* @param retentionInDays The table's retention in days. Possible values are either `8` (Basic Tier only) or range between `4` and `730`.
*
* @return builder
*
*/
public Builder retentionInDays(Integer retentionInDays) {
return retentionInDays(Output.of(retentionInDays));
}
/**
* @param totalRetentionInDays The table's total retention in days. Possible values range between `4` and `730`; or `1095`, `1460`, `1826`, `2191`, `2556`, `2922`, `3288`, `3653`, `4018`, or `4383`.
*
* > **Note:** `retention_in_days` and `total_retention_in_days` will revert back to the value of azure.operationalinsights.AnalyticsWorkspace retention_in_days when a azure.loganalytics.WorkspaceTable is deleted.
*
* > **Note:** The `retention_in_days` cannot be specified when `plan` is `Basic` because the retention is fixed at eight days.
*
* @return builder
*
*/
public Builder totalRetentionInDays(@Nullable Output totalRetentionInDays) {
$.totalRetentionInDays = totalRetentionInDays;
return this;
}
/**
* @param totalRetentionInDays The table's total retention in days. Possible values range between `4` and `730`; or `1095`, `1460`, `1826`, `2191`, `2556`, `2922`, `3288`, `3653`, `4018`, or `4383`.
*
* > **Note:** `retention_in_days` and `total_retention_in_days` will revert back to the value of azure.operationalinsights.AnalyticsWorkspace retention_in_days when a azure.loganalytics.WorkspaceTable is deleted.
*
* > **Note:** The `retention_in_days` cannot be specified when `plan` is `Basic` because the retention is fixed at eight days.
*
* @return builder
*
*/
public Builder totalRetentionInDays(Integer totalRetentionInDays) {
return totalRetentionInDays(Output.of(totalRetentionInDays));
}
/**
* @param workspaceId The object ID of the Log Analytics Workspace that contains the table.
*
* @return builder
*
*/
public Builder workspaceId(@Nullable Output workspaceId) {
$.workspaceId = workspaceId;
return this;
}
/**
* @param workspaceId The object ID of the Log Analytics Workspace that contains the table.
*
* @return builder
*
*/
public Builder workspaceId(String workspaceId) {
return workspaceId(Output.of(workspaceId));
}
public WorkspaceTableState build() {
return $;
}
}
}