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

com.hashicorp.cdktf.providers.snowflake.table.TableColumnDefault Maven / Gradle / Ivy

The newest version!
package com.hashicorp.cdktf.providers.snowflake.table;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-08-03T03:24:50.646Z")
@software.amazon.jsii.Jsii(module = com.hashicorp.cdktf.providers.snowflake.$Module.class, fqn = "@cdktf/provider-snowflake.table.TableColumnDefault")
@software.amazon.jsii.Jsii.Proxy(TableColumnDefault.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface TableColumnDefault extends software.amazon.jsii.JsiiSerializable {

    /**
     * The default constant value for the column.
     * 

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/table#constant Table#constant} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getConstant() { return null; } /** * The default expression value for the column. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/table#expression Table#expression} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getExpression() { return null; } /** * The default sequence to use for the column. *

* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/table#sequence Table#sequence} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getSequence() { return null; } /** * @return a {@link Builder} of {@link TableColumnDefault} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link TableColumnDefault} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String constant; java.lang.String expression; java.lang.String sequence; /** * Sets the value of {@link TableColumnDefault#getConstant} * @param constant The default constant value for the column. * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/table#constant Table#constant} * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder constant(java.lang.String constant) { this.constant = constant; return this; } /** * Sets the value of {@link TableColumnDefault#getExpression} * @param expression The default expression value for the column. * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/table#expression Table#expression} * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder expression(java.lang.String expression) { this.expression = expression; return this; } /** * Sets the value of {@link TableColumnDefault#getSequence} * @param sequence The default sequence to use for the column. * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/snowflake-labs/snowflake/0.94.1/docs/resources/table#sequence Table#sequence} * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder sequence(java.lang.String sequence) { this.sequence = sequence; return this; } /** * Builds the configured instance. * @return a new instance of {@link TableColumnDefault} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public TableColumnDefault build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link TableColumnDefault} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TableColumnDefault { private final java.lang.String constant; private final java.lang.String expression; private final java.lang.String sequence; /** * 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.constant = software.amazon.jsii.Kernel.get(this, "constant", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.expression = software.amazon.jsii.Kernel.get(this, "expression", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.sequence = software.amazon.jsii.Kernel.get(this, "sequence", 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.constant = builder.constant; this.expression = builder.expression; this.sequence = builder.sequence; } @Override public final java.lang.String getConstant() { return this.constant; } @Override public final java.lang.String getExpression() { return this.expression; } @Override public final java.lang.String getSequence() { return this.sequence; } @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.getConstant() != null) { data.set("constant", om.valueToTree(this.getConstant())); } if (this.getExpression() != null) { data.set("expression", om.valueToTree(this.getExpression())); } if (this.getSequence() != null) { data.set("sequence", om.valueToTree(this.getSequence())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@cdktf/provider-snowflake.table.TableColumnDefault")); 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; TableColumnDefault.Jsii$Proxy that = (TableColumnDefault.Jsii$Proxy) o; if (this.constant != null ? !this.constant.equals(that.constant) : that.constant != null) return false; if (this.expression != null ? !this.expression.equals(that.expression) : that.expression != null) return false; return this.sequence != null ? this.sequence.equals(that.sequence) : that.sequence == null; } @Override public final int hashCode() { int result = this.constant != null ? this.constant.hashCode() : 0; result = 31 * result + (this.expression != null ? this.expression.hashCode() : 0); result = 31 * result + (this.sequence != null ? this.sequence.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy