com.hashicorp.cdktf.providers.snowflake.data_snowflake_streamlits.DataSnowflakeStreamlitsIn Maven / Gradle / Ivy
Show all versions of cdktf-provider-snowflake Show documentation
package com.hashicorp.cdktf.providers.snowflake.data_snowflake_streamlits;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.272Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.dataSnowflakeStreamlits.DataSnowflakeStreamlitsIn")
@software.amazon.jsii.Jsii.Proxy(DataSnowflakeStreamlitsIn.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DataSnowflakeStreamlitsIn extends software.amazon.jsii.JsiiSerializable {
/**
* Returns records for the entire account.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/streamlits#account DataSnowflakeStreamlits#account}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getAccount() {
return null;
}
/**
* Returns records for the current database in use or for a specified database (db_name).
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/streamlits#database DataSnowflakeStreamlits#database}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getDatabase() {
return null;
}
/**
* Returns records for the current schema in use or a specified schema (schema_name).
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/streamlits#schema DataSnowflakeStreamlits#schema}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getSchema() {
return null;
}
/**
* @return a {@link Builder} of {@link DataSnowflakeStreamlitsIn}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DataSnowflakeStreamlitsIn}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object account;
java.lang.String database;
java.lang.String schema;
/**
* Sets the value of {@link DataSnowflakeStreamlitsIn#getAccount}
* @param account Returns records for the entire account.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/streamlits#account DataSnowflakeStreamlits#account}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder account(java.lang.Boolean account) {
this.account = account;
return this;
}
/**
* Sets the value of {@link DataSnowflakeStreamlitsIn#getAccount}
* @param account Returns records for the entire account.
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/streamlits#account DataSnowflakeStreamlits#account}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder account(com.hashicorp.cdktf.IResolvable account) {
this.account = account;
return this;
}
/**
* Sets the value of {@link DataSnowflakeStreamlitsIn#getDatabase}
* @param database Returns records for the current database in use or for a specified database (db_name).
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/streamlits#database DataSnowflakeStreamlits#database}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder database(java.lang.String database) {
this.database = database;
return this;
}
/**
* Sets the value of {@link DataSnowflakeStreamlitsIn#getSchema}
* @param schema Returns records for the current schema in use or a specified schema (schema_name).
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/data-sources/streamlits#schema DataSnowflakeStreamlits#schema}
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder schema(java.lang.String schema) {
this.schema = schema;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DataSnowflakeStreamlitsIn}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DataSnowflakeStreamlitsIn build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link DataSnowflakeStreamlitsIn}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataSnowflakeStreamlitsIn {
private final java.lang.Object account;
private final java.lang.String database;
private final java.lang.String schema;
/**
* 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.account = software.amazon.jsii.Kernel.get(this, "account", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.database = software.amazon.jsii.Kernel.get(this, "database", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.schema = software.amazon.jsii.Kernel.get(this, "schema", software.amazon.jsii.NativeType.forClass(java.lang.String.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.account = builder.account;
this.database = builder.database;
this.schema = builder.schema;
}
@Override
public final java.lang.Object getAccount() {
return this.account;
}
@Override
public final java.lang.String getDatabase() {
return this.database;
}
@Override
public final java.lang.String getSchema() {
return this.schema;
}
@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.getAccount() != null) {
data.set("account", om.valueToTree(this.getAccount()));
}
if (this.getDatabase() != null) {
data.set("database", om.valueToTree(this.getDatabase()));
}
if (this.getSchema() != null) {
data.set("schema", om.valueToTree(this.getSchema()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@cdktf/provider-snowflake.dataSnowflakeStreamlits.DataSnowflakeStreamlitsIn"));
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;
DataSnowflakeStreamlitsIn.Jsii$Proxy that = (DataSnowflakeStreamlitsIn.Jsii$Proxy) o;
if (this.account != null ? !this.account.equals(that.account) : that.account != null) return false;
if (this.database != null ? !this.database.equals(that.database) : that.database != null) return false;
return this.schema != null ? this.schema.equals(that.schema) : that.schema == null;
}
@Override
public final int hashCode() {
int result = this.account != null ? this.account.hashCode() : 0;
result = 31 * result + (this.database != null ? this.database.hashCode() : 0);
result = 31 * result + (this.schema != null ? this.schema.hashCode() : 0);
return result;
}
}
}