com.hashicorp.cdktf.providers.snowflake.data_snowflake_dynamic_tables.DataSnowflakeDynamicTablesLimit Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.data_snowflake_dynamic_tables;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.127Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.dataSnowflakeDynamicTables.DataSnowflakeDynamicTablesLimit")
@software.amazon.jsii.Jsii.Proxy(DataSnowflakeDynamicTablesLimit.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DataSnowflakeDynamicTablesLimit extends software.amazon.jsii.JsiiSerializable {
/**
* The optional FROM 'name_string' subclause effectively serves as a “cursor” for the results.
*
* This enables fetching the specified number of rows following the first row whose object name matches the specified string
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/dynamic_tables#from DataSnowflakeDynamicTables#from}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getFrom() {
return null;
}
/**
* Specifies the maximum number of rows to return.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/dynamic_tables#rows DataSnowflakeDynamicTables#rows}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getRows() {
return null;
}
/**
* @return a {@link Builder} of {@link DataSnowflakeDynamicTablesLimit}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DataSnowflakeDynamicTablesLimit}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String from;
java.lang.Number rows;
/**
* Sets the value of {@link DataSnowflakeDynamicTablesLimit#getFrom}
* @param from The optional FROM 'name_string' subclause effectively serves as a “cursor” for the results.
* This enables fetching the specified number of rows following the first row whose object name matches the specified string
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/dynamic_tables#from DataSnowflakeDynamicTables#from}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder from(java.lang.String from) {
this.from = from;
return this;
}
/**
* Sets the value of {@link DataSnowflakeDynamicTablesLimit#getRows}
* @param rows Specifies the maximum number of rows to return.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/dynamic_tables#rows DataSnowflakeDynamicTables#rows}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder rows(java.lang.Number rows) {
this.rows = rows;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DataSnowflakeDynamicTablesLimit}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DataSnowflakeDynamicTablesLimit build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link DataSnowflakeDynamicTablesLimit}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataSnowflakeDynamicTablesLimit {
private final java.lang.String from;
private final java.lang.Number rows;
/**
* 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.from = software.amazon.jsii.Kernel.get(this, "from", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.rows = software.amazon.jsii.Kernel.get(this, "rows", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.from = builder.from;
this.rows = builder.rows;
}
@Override
public final java.lang.String getFrom() {
return this.from;
}
@Override
public final java.lang.Number getRows() {
return this.rows;
}
@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();
if (this.getFrom() != null) {
data.set("from", om.valueToTree(this.getFrom()));
}
if (this.getRows() != null) {
data.set("rows", om.valueToTree(this.getRows()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@cdktf/provider-snowflake.dataSnowflakeDynamicTables.DataSnowflakeDynamicTablesLimit"));
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;
DataSnowflakeDynamicTablesLimit.Jsii$Proxy that = (DataSnowflakeDynamicTablesLimit.Jsii$Proxy) o;
if (this.from != null ? !this.from.equals(that.from) : that.from != null) return false;
return this.rows != null ? this.rows.equals(that.rows) : that.rows == null;
}
@Override
public final int hashCode() {
int result = this.from != null ? this.from.hashCode() : 0;
result = 31 * result + (this.rows != null ? this.rows.hashCode() : 0);
return result;
}
}
}