com.hashicorp.cdktf.providers.snowflake.resource_monitor.ResourceMonitorConfig Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.resource_monitor;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.552Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.resourceMonitor.ResourceMonitorConfig")
@software.amazon.jsii.Jsii.Proxy(ResourceMonitorConfig.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface ResourceMonitorConfig extends software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments {
/**
* Identifier for the resource monitor; must be unique for your account.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#name ResourceMonitor#name}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
* The number of credits allocated monthly to the resource monitor.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#credit_quota ResourceMonitor#credit_quota}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getCreditQuota() {
return null;
}
/**
* The date and time when the resource monitor suspends the assigned warehouses.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#end_timestamp ResourceMonitor#end_timestamp}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getEndTimestamp() {
return null;
}
/**
* The frequency interval at which the credit usage resets to 0.
*
* If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#frequency ResourceMonitor#frequency}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getFrequency() {
return null;
}
/**
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#id ResourceMonitor#id}.
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getId() {
return null;
}
/**
* A list of percentage thresholds at which to send an alert to subscribed users.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#notify_triggers ResourceMonitor#notify_triggers}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getNotifyTriggers() {
return null;
}
/**
* Specifies the list of users to receive email notifications on resource monitors.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#notify_users ResourceMonitor#notify_users}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getNotifyUsers() {
return null;
}
/**
* Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#set_for_account ResourceMonitor#set_for_account}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getSetForAccount() {
return null;
}
/**
* The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#start_timestamp ResourceMonitor#start_timestamp}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getStartTimestamp() {
return null;
}
/**
* The number that represents the percentage threshold at which to immediately suspend all warehouses.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#suspend_immediate_trigger ResourceMonitor#suspend_immediate_trigger}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getSuspendImmediateTrigger() {
return null;
}
/**
* A list of percentage thresholds at which to suspend all warehouses.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#suspend_immediate_triggers ResourceMonitor#suspend_immediate_triggers}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getSuspendImmediateTriggers() {
return null;
}
/**
* The number that represents the percentage threshold at which to suspend all warehouses.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#suspend_trigger ResourceMonitor#suspend_trigger}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getSuspendTrigger() {
return null;
}
/**
* A list of percentage thresholds at which to suspend all warehouses.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#suspend_triggers ResourceMonitor#suspend_triggers}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getSuspendTriggers() {
return null;
}
/**
* A list of warehouses to apply the resource monitor to.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#warehouses ResourceMonitor#warehouses}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getWarehouses() {
return null;
}
/**
* @return a {@link Builder} of {@link ResourceMonitorConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ResourceMonitorConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String name;
java.lang.Number creditQuota;
java.lang.String endTimestamp;
java.lang.String frequency;
java.lang.String id;
java.util.List notifyTriggers;
java.util.List notifyUsers;
java.lang.Object setForAccount;
java.lang.String startTimestamp;
java.lang.Number suspendImmediateTrigger;
java.util.List suspendImmediateTriggers;
java.lang.Number suspendTrigger;
java.util.List suspendTriggers;
java.util.List warehouses;
java.lang.Object connection;
java.lang.Object count;
java.util.List dependsOn;
com.hashicorp.cdktf.ITerraformIterator forEach;
com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle;
com.hashicorp.cdktf.TerraformProvider provider;
java.util.List provisioners;
/**
* Sets the value of {@link ResourceMonitorConfig#getName}
* @param name Identifier for the resource monitor; must be unique for your account. This parameter is required.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#name ResourceMonitor#name}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder name(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getCreditQuota}
* @param creditQuota The number of credits allocated monthly to the resource monitor.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#credit_quota ResourceMonitor#credit_quota}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder creditQuota(java.lang.Number creditQuota) {
this.creditQuota = creditQuota;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getEndTimestamp}
* @param endTimestamp The date and time when the resource monitor suspends the assigned warehouses.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#end_timestamp ResourceMonitor#end_timestamp}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder endTimestamp(java.lang.String endTimestamp) {
this.endTimestamp = endTimestamp;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getFrequency}
* @param frequency The frequency interval at which the credit usage resets to 0.
* If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#frequency ResourceMonitor#frequency}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder frequency(java.lang.String frequency) {
this.frequency = frequency;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getId}
* @param id Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#id ResourceMonitor#id}.
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder id(java.lang.String id) {
this.id = id;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getNotifyTriggers}
* @param notifyTriggers A list of percentage thresholds at which to send an alert to subscribed users.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#notify_triggers ResourceMonitor#notify_triggers}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder notifyTriggers(java.util.List notifyTriggers) {
this.notifyTriggers = (java.util.List)notifyTriggers;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getNotifyUsers}
* @param notifyUsers Specifies the list of users to receive email notifications on resource monitors.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#notify_users ResourceMonitor#notify_users}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder notifyUsers(java.util.List notifyUsers) {
this.notifyUsers = notifyUsers;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getSetForAccount}
* @param setForAccount Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#set_for_account ResourceMonitor#set_for_account}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder setForAccount(java.lang.Boolean setForAccount) {
this.setForAccount = setForAccount;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getSetForAccount}
* @param setForAccount Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#set_for_account ResourceMonitor#set_for_account}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder setForAccount(com.hashicorp.cdktf.IResolvable setForAccount) {
this.setForAccount = setForAccount;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getStartTimestamp}
* @param startTimestamp The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#start_timestamp ResourceMonitor#start_timestamp}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder startTimestamp(java.lang.String startTimestamp) {
this.startTimestamp = startTimestamp;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getSuspendImmediateTrigger}
* @param suspendImmediateTrigger The number that represents the percentage threshold at which to immediately suspend all warehouses.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#suspend_immediate_trigger ResourceMonitor#suspend_immediate_trigger}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder suspendImmediateTrigger(java.lang.Number suspendImmediateTrigger) {
this.suspendImmediateTrigger = suspendImmediateTrigger;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getSuspendImmediateTriggers}
* @param suspendImmediateTriggers A list of percentage thresholds at which to suspend all warehouses.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#suspend_immediate_triggers ResourceMonitor#suspend_immediate_triggers}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder suspendImmediateTriggers(java.util.List suspendImmediateTriggers) {
this.suspendImmediateTriggers = (java.util.List)suspendImmediateTriggers;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getSuspendTrigger}
* @param suspendTrigger The number that represents the percentage threshold at which to suspend all warehouses.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#suspend_trigger ResourceMonitor#suspend_trigger}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder suspendTrigger(java.lang.Number suspendTrigger) {
this.suspendTrigger = suspendTrigger;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getSuspendTriggers}
* @param suspendTriggers A list of percentage thresholds at which to suspend all warehouses.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#suspend_triggers ResourceMonitor#suspend_triggers}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder suspendTriggers(java.util.List suspendTriggers) {
this.suspendTriggers = (java.util.List)suspendTriggers;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getWarehouses}
* @param warehouses A list of warehouses to apply the resource monitor to.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/resource_monitor#warehouses ResourceMonitor#warehouses}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder warehouses(java.util.List warehouses) {
this.warehouses = warehouses;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getConnection}
* @param connection the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection) {
this.connection = connection;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getConnection}
* @param connection the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection) {
this.connection = connection;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getCount}
* @param count the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder count(java.lang.Number count) {
this.count = count;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getCount}
* @param count the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder count(com.hashicorp.cdktf.TerraformCount count) {
this.count = count;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getDependsOn}
* @param dependsOn the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder dependsOn(java.util.List dependsOn) {
this.dependsOn = (java.util.List)dependsOn;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getForEach}
* @param forEach the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach) {
this.forEach = forEach;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getLifecycle}
* @param lifecycle the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle) {
this.lifecycle = lifecycle;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getProvider}
* @param provider the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder provider(com.hashicorp.cdktf.TerraformProvider provider) {
this.provider = provider;
return this;
}
/**
* Sets the value of {@link ResourceMonitorConfig#getProvisioners}
* @param provisioners the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder provisioners(java.util.List provisioners) {
this.provisioners = (java.util.List)provisioners;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ResourceMonitorConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public ResourceMonitorConfig build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link ResourceMonitorConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ResourceMonitorConfig {
private final java.lang.String name;
private final java.lang.Number creditQuota;
private final java.lang.String endTimestamp;
private final java.lang.String frequency;
private final java.lang.String id;
private final java.util.List notifyTriggers;
private final java.util.List notifyUsers;
private final java.lang.Object setForAccount;
private final java.lang.String startTimestamp;
private final java.lang.Number suspendImmediateTrigger;
private final java.util.List suspendImmediateTriggers;
private final java.lang.Number suspendTrigger;
private final java.util.List suspendTriggers;
private final java.util.List warehouses;
private final java.lang.Object connection;
private final java.lang.Object count;
private final java.util.List dependsOn;
private final com.hashicorp.cdktf.ITerraformIterator forEach;
private final com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle;
private final com.hashicorp.cdktf.TerraformProvider provider;
private final java.util.List provisioners;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.creditQuota = software.amazon.jsii.Kernel.get(this, "creditQuota", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.endTimestamp = software.amazon.jsii.Kernel.get(this, "endTimestamp", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.frequency = software.amazon.jsii.Kernel.get(this, "frequency", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.id = software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.notifyTriggers = software.amazon.jsii.Kernel.get(this, "notifyTriggers", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)));
this.notifyUsers = software.amazon.jsii.Kernel.get(this, "notifyUsers", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.setForAccount = software.amazon.jsii.Kernel.get(this, "setForAccount", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.startTimestamp = software.amazon.jsii.Kernel.get(this, "startTimestamp", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.suspendImmediateTrigger = software.amazon.jsii.Kernel.get(this, "suspendImmediateTrigger", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.suspendImmediateTriggers = software.amazon.jsii.Kernel.get(this, "suspendImmediateTriggers", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)));
this.suspendTrigger = software.amazon.jsii.Kernel.get(this, "suspendTrigger", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.suspendTriggers = software.amazon.jsii.Kernel.get(this, "suspendTriggers", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Number.class)));
this.warehouses = software.amazon.jsii.Kernel.get(this, "warehouses", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.connection = software.amazon.jsii.Kernel.get(this, "connection", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.count = software.amazon.jsii.Kernel.get(this, "count", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.dependsOn = software.amazon.jsii.Kernel.get(this, "dependsOn", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.ITerraformDependable.class)));
this.forEach = software.amazon.jsii.Kernel.get(this, "forEach", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.ITerraformIterator.class));
this.lifecycle = software.amazon.jsii.Kernel.get(this, "lifecycle", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TerraformResourceLifecycle.class));
this.provider = software.amazon.jsii.Kernel.get(this, "provider", software.amazon.jsii.NativeType.forClass(com.hashicorp.cdktf.TerraformProvider.class));
this.provisioners = software.amazon.jsii.Kernel.get(this, "provisioners", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.name = java.util.Objects.requireNonNull(builder.name, "name is required");
this.creditQuota = builder.creditQuota;
this.endTimestamp = builder.endTimestamp;
this.frequency = builder.frequency;
this.id = builder.id;
this.notifyTriggers = (java.util.List)builder.notifyTriggers;
this.notifyUsers = builder.notifyUsers;
this.setForAccount = builder.setForAccount;
this.startTimestamp = builder.startTimestamp;
this.suspendImmediateTrigger = builder.suspendImmediateTrigger;
this.suspendImmediateTriggers = (java.util.List)builder.suspendImmediateTriggers;
this.suspendTrigger = builder.suspendTrigger;
this.suspendTriggers = (java.util.List)builder.suspendTriggers;
this.warehouses = builder.warehouses;
this.connection = builder.connection;
this.count = builder.count;
this.dependsOn = (java.util.List)builder.dependsOn;
this.forEach = builder.forEach;
this.lifecycle = builder.lifecycle;
this.provider = builder.provider;
this.provisioners = (java.util.List)builder.provisioners;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.lang.Number getCreditQuota() {
return this.creditQuota;
}
@Override
public final java.lang.String getEndTimestamp() {
return this.endTimestamp;
}
@Override
public final java.lang.String getFrequency() {
return this.frequency;
}
@Override
public final java.lang.String getId() {
return this.id;
}
@Override
public final java.util.List getNotifyTriggers() {
return this.notifyTriggers;
}
@Override
public final java.util.List getNotifyUsers() {
return this.notifyUsers;
}
@Override
public final java.lang.Object getSetForAccount() {
return this.setForAccount;
}
@Override
public final java.lang.String getStartTimestamp() {
return this.startTimestamp;
}
@Override
public final java.lang.Number getSuspendImmediateTrigger() {
return this.suspendImmediateTrigger;
}
@Override
public final java.util.List getSuspendImmediateTriggers() {
return this.suspendImmediateTriggers;
}
@Override
public final java.lang.Number getSuspendTrigger() {
return this.suspendTrigger;
}
@Override
public final java.util.List getSuspendTriggers() {
return this.suspendTriggers;
}
@Override
public final java.util.List getWarehouses() {
return this.warehouses;
}
@Override
public final java.lang.Object getConnection() {
return this.connection;
}
@Override
public final java.lang.Object getCount() {
return this.count;
}
@Override
public final java.util.List getDependsOn() {
return this.dependsOn;
}
@Override
public final com.hashicorp.cdktf.ITerraformIterator getForEach() {
return this.forEach;
}
@Override
public final com.hashicorp.cdktf.TerraformResourceLifecycle getLifecycle() {
return this.lifecycle;
}
@Override
public final com.hashicorp.cdktf.TerraformProvider getProvider() {
return this.provider;
}
@Override
public final java.util.List getProvisioners() {
return this.provisioners;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
data.set("name", om.valueToTree(this.getName()));
if (this.getCreditQuota() != null) {
data.set("creditQuota", om.valueToTree(this.getCreditQuota()));
}
if (this.getEndTimestamp() != null) {
data.set("endTimestamp", om.valueToTree(this.getEndTimestamp()));
}
if (this.getFrequency() != null) {
data.set("frequency", om.valueToTree(this.getFrequency()));
}
if (this.getId() != null) {
data.set("id", om.valueToTree(this.getId()));
}
if (this.getNotifyTriggers() != null) {
data.set("notifyTriggers", om.valueToTree(this.getNotifyTriggers()));
}
if (this.getNotifyUsers() != null) {
data.set("notifyUsers", om.valueToTree(this.getNotifyUsers()));
}
if (this.getSetForAccount() != null) {
data.set("setForAccount", om.valueToTree(this.getSetForAccount()));
}
if (this.getStartTimestamp() != null) {
data.set("startTimestamp", om.valueToTree(this.getStartTimestamp()));
}
if (this.getSuspendImmediateTrigger() != null) {
data.set("suspendImmediateTrigger", om.valueToTree(this.getSuspendImmediateTrigger()));
}
if (this.getSuspendImmediateTriggers() != null) {
data.set("suspendImmediateTriggers", om.valueToTree(this.getSuspendImmediateTriggers()));
}
if (this.getSuspendTrigger() != null) {
data.set("suspendTrigger", om.valueToTree(this.getSuspendTrigger()));
}
if (this.getSuspendTriggers() != null) {
data.set("suspendTriggers", om.valueToTree(this.getSuspendTriggers()));
}
if (this.getWarehouses() != null) {
data.set("warehouses", om.valueToTree(this.getWarehouses()));
}
if (this.getConnection() != null) {
data.set("connection", om.valueToTree(this.getConnection()));
}
if (this.getCount() != null) {
data.set("count", om.valueToTree(this.getCount()));
}
if (this.getDependsOn() != null) {
data.set("dependsOn", om.valueToTree(this.getDependsOn()));
}
if (this.getForEach() != null) {
data.set("forEach", om.valueToTree(this.getForEach()));
}
if (this.getLifecycle() != null) {
data.set("lifecycle", om.valueToTree(this.getLifecycle()));
}
if (this.getProvider() != null) {
data.set("provider", om.valueToTree(this.getProvider()));
}
if (this.getProvisioners() != null) {
data.set("provisioners", om.valueToTree(this.getProvisioners()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@cdktf/provider-snowflake.resourceMonitor.ResourceMonitorConfig"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ResourceMonitorConfig.Jsii$Proxy that = (ResourceMonitorConfig.Jsii$Proxy) o;
if (!name.equals(that.name)) return false;
if (this.creditQuota != null ? !this.creditQuota.equals(that.creditQuota) : that.creditQuota != null) return false;
if (this.endTimestamp != null ? !this.endTimestamp.equals(that.endTimestamp) : that.endTimestamp != null) return false;
if (this.frequency != null ? !this.frequency.equals(that.frequency) : that.frequency != null) return false;
if (this.id != null ? !this.id.equals(that.id) : that.id != null) return false;
if (this.notifyTriggers != null ? !this.notifyTriggers.equals(that.notifyTriggers) : that.notifyTriggers != null) return false;
if (this.notifyUsers != null ? !this.notifyUsers.equals(that.notifyUsers) : that.notifyUsers != null) return false;
if (this.setForAccount != null ? !this.setForAccount.equals(that.setForAccount) : that.setForAccount != null) return false;
if (this.startTimestamp != null ? !this.startTimestamp.equals(that.startTimestamp) : that.startTimestamp != null) return false;
if (this.suspendImmediateTrigger != null ? !this.suspendImmediateTrigger.equals(that.suspendImmediateTrigger) : that.suspendImmediateTrigger != null) return false;
if (this.suspendImmediateTriggers != null ? !this.suspendImmediateTriggers.equals(that.suspendImmediateTriggers) : that.suspendImmediateTriggers != null) return false;
if (this.suspendTrigger != null ? !this.suspendTrigger.equals(that.suspendTrigger) : that.suspendTrigger != null) return false;
if (this.suspendTriggers != null ? !this.suspendTriggers.equals(that.suspendTriggers) : that.suspendTriggers != null) return false;
if (this.warehouses != null ? !this.warehouses.equals(that.warehouses) : that.warehouses != null) return false;
if (this.connection != null ? !this.connection.equals(that.connection) : that.connection != null) return false;
if (this.count != null ? !this.count.equals(that.count) : that.count != null) return false;
if (this.dependsOn != null ? !this.dependsOn.equals(that.dependsOn) : that.dependsOn != null) return false;
if (this.forEach != null ? !this.forEach.equals(that.forEach) : that.forEach != null) return false;
if (this.lifecycle != null ? !this.lifecycle.equals(that.lifecycle) : that.lifecycle != null) return false;
if (this.provider != null ? !this.provider.equals(that.provider) : that.provider != null) return false;
return this.provisioners != null ? this.provisioners.equals(that.provisioners) : that.provisioners == null;
}
@Override
public final int hashCode() {
int result = this.name.hashCode();
result = 31 * result + (this.creditQuota != null ? this.creditQuota.hashCode() : 0);
result = 31 * result + (this.endTimestamp != null ? this.endTimestamp.hashCode() : 0);
result = 31 * result + (this.frequency != null ? this.frequency.hashCode() : 0);
result = 31 * result + (this.id != null ? this.id.hashCode() : 0);
result = 31 * result + (this.notifyTriggers != null ? this.notifyTriggers.hashCode() : 0);
result = 31 * result + (this.notifyUsers != null ? this.notifyUsers.hashCode() : 0);
result = 31 * result + (this.setForAccount != null ? this.setForAccount.hashCode() : 0);
result = 31 * result + (this.startTimestamp != null ? this.startTimestamp.hashCode() : 0);
result = 31 * result + (this.suspendImmediateTrigger != null ? this.suspendImmediateTrigger.hashCode() : 0);
result = 31 * result + (this.suspendImmediateTriggers != null ? this.suspendImmediateTriggers.hashCode() : 0);
result = 31 * result + (this.suspendTrigger != null ? this.suspendTrigger.hashCode() : 0);
result = 31 * result + (this.suspendTriggers != null ? this.suspendTriggers.hashCode() : 0);
result = 31 * result + (this.warehouses != null ? this.warehouses.hashCode() : 0);
result = 31 * result + (this.connection != null ? this.connection.hashCode() : 0);
result = 31 * result + (this.count != null ? this.count.hashCode() : 0);
result = 31 * result + (this.dependsOn != null ? this.dependsOn.hashCode() : 0);
result = 31 * result + (this.forEach != null ? this.forEach.hashCode() : 0);
result = 31 * result + (this.lifecycle != null ? this.lifecycle.hashCode() : 0);
result = 31 * result + (this.provider != null ? this.provider.hashCode() : 0);
result = 31 * result + (this.provisioners != null ? this.provisioners.hashCode() : 0);
return result;
}
}
}