io.github.randyridgley.cdk.datalake.constructs.TableProps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-datalake-constructs Show documentation
Show all versions of cdk-datalake-constructs Show documentation
AWS CDK Constructs that can be used to create datalakes/meshes and more
package io.github.randyridgley.cdk.datalake.constructs;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.42.0 (build 5f6b62c)", date = "2021-11-05T12:40:41.662Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.TableProps")
@software.amazon.jsii.Jsii.Proxy(TableProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface TableProps extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getCatalogId();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.Object getColumns();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getDescription();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getInputFormat();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getOutputFormat();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.util.Map getParameters();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.Object getPartitionKeys();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.util.Map getSerdeParameters();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getSerializationLibrary();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getTableName();
/**
* @return a {@link Builder} of {@link TableProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link TableProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.String catalogId;
private java.lang.Object columns;
private java.lang.String description;
private java.lang.String inputFormat;
private java.lang.String outputFormat;
private java.util.Map parameters;
private java.lang.Object partitionKeys;
private java.util.Map serdeParameters;
private java.lang.String serializationLibrary;
private java.lang.String tableName;
/**
* Sets the value of {@link TableProps#getCatalogId}
* @param catalogId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder catalogId(java.lang.String catalogId) {
this.catalogId = catalogId;
return this;
}
/**
* Sets the value of {@link TableProps#getColumns}
* @param columns the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder columns(software.amazon.awscdk.core.IResolvable columns) {
this.columns = columns;
return this;
}
/**
* Sets the value of {@link TableProps#getColumns}
* @param columns the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder columns(java.util.List extends java.lang.Object> columns) {
this.columns = columns;
return this;
}
/**
* Sets the value of {@link TableProps#getDescription}
* @param description the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder description(java.lang.String description) {
this.description = description;
return this;
}
/**
* Sets the value of {@link TableProps#getInputFormat}
* @param inputFormat the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder inputFormat(java.lang.String inputFormat) {
this.inputFormat = inputFormat;
return this;
}
/**
* Sets the value of {@link TableProps#getOutputFormat}
* @param outputFormat the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder outputFormat(java.lang.String outputFormat) {
this.outputFormat = outputFormat;
return this;
}
/**
* Sets the value of {@link TableProps#getParameters}
* @param parameters the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder parameters(java.util.Map parameters) {
this.parameters = (java.util.Map)parameters;
return this;
}
/**
* Sets the value of {@link TableProps#getPartitionKeys}
* @param partitionKeys the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder partitionKeys(software.amazon.awscdk.core.IResolvable partitionKeys) {
this.partitionKeys = partitionKeys;
return this;
}
/**
* Sets the value of {@link TableProps#getPartitionKeys}
* @param partitionKeys the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder partitionKeys(java.util.List extends java.lang.Object> partitionKeys) {
this.partitionKeys = partitionKeys;
return this;
}
/**
* Sets the value of {@link TableProps#getSerdeParameters}
* @param serdeParameters the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder serdeParameters(java.util.Map serdeParameters) {
this.serdeParameters = (java.util.Map)serdeParameters;
return this;
}
/**
* Sets the value of {@link TableProps#getSerializationLibrary}
* @param serializationLibrary the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder serializationLibrary(java.lang.String serializationLibrary) {
this.serializationLibrary = serializationLibrary;
return this;
}
/**
* Sets the value of {@link TableProps#getTableName}
* @param tableName the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder tableName(java.lang.String tableName) {
this.tableName = tableName;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link TableProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public TableProps build() {
return new Jsii$Proxy(catalogId, columns, description, inputFormat, outputFormat, parameters, partitionKeys, serdeParameters, serializationLibrary, tableName);
}
}
/**
* An implementation for {@link TableProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TableProps {
private final java.lang.String catalogId;
private final java.lang.Object columns;
private final java.lang.String description;
private final java.lang.String inputFormat;
private final java.lang.String outputFormat;
private final java.util.Map parameters;
private final java.lang.Object partitionKeys;
private final java.util.Map serdeParameters;
private final java.lang.String serializationLibrary;
private final java.lang.String tableName;
/**
* 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.catalogId = software.amazon.jsii.Kernel.get(this, "catalogId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.columns = software.amazon.jsii.Kernel.get(this, "columns", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.description = software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.inputFormat = software.amazon.jsii.Kernel.get(this, "inputFormat", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.outputFormat = software.amazon.jsii.Kernel.get(this, "outputFormat", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.parameters = software.amazon.jsii.Kernel.get(this, "parameters", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)));
this.partitionKeys = software.amazon.jsii.Kernel.get(this, "partitionKeys", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.serdeParameters = software.amazon.jsii.Kernel.get(this, "serdeParameters", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)));
this.serializationLibrary = software.amazon.jsii.Kernel.get(this, "serializationLibrary", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.tableName = software.amazon.jsii.Kernel.get(this, "tableName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final java.lang.String catalogId, final java.lang.Object columns, final java.lang.String description, final java.lang.String inputFormat, final java.lang.String outputFormat, final java.util.Map parameters, final java.lang.Object partitionKeys, final java.util.Map serdeParameters, final java.lang.String serializationLibrary, final java.lang.String tableName) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.catalogId = java.util.Objects.requireNonNull(catalogId, "catalogId is required");
this.columns = java.util.Objects.requireNonNull(columns, "columns is required");
this.description = java.util.Objects.requireNonNull(description, "description is required");
this.inputFormat = java.util.Objects.requireNonNull(inputFormat, "inputFormat is required");
this.outputFormat = java.util.Objects.requireNonNull(outputFormat, "outputFormat is required");
this.parameters = (java.util.Map)java.util.Objects.requireNonNull(parameters, "parameters is required");
this.partitionKeys = java.util.Objects.requireNonNull(partitionKeys, "partitionKeys is required");
this.serdeParameters = (java.util.Map)java.util.Objects.requireNonNull(serdeParameters, "serdeParameters is required");
this.serializationLibrary = java.util.Objects.requireNonNull(serializationLibrary, "serializationLibrary is required");
this.tableName = java.util.Objects.requireNonNull(tableName, "tableName is required");
}
@Override
public final java.lang.String getCatalogId() {
return this.catalogId;
}
@Override
public final java.lang.Object getColumns() {
return this.columns;
}
@Override
public final java.lang.String getDescription() {
return this.description;
}
@Override
public final java.lang.String getInputFormat() {
return this.inputFormat;
}
@Override
public final java.lang.String getOutputFormat() {
return this.outputFormat;
}
@Override
public final java.util.Map getParameters() {
return this.parameters;
}
@Override
public final java.lang.Object getPartitionKeys() {
return this.partitionKeys;
}
@Override
public final java.util.Map getSerdeParameters() {
return this.serdeParameters;
}
@Override
public final java.lang.String getSerializationLibrary() {
return this.serializationLibrary;
}
@Override
public final java.lang.String getTableName() {
return this.tableName;
}
@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("catalogId", om.valueToTree(this.getCatalogId()));
data.set("columns", om.valueToTree(this.getColumns()));
data.set("description", om.valueToTree(this.getDescription()));
data.set("inputFormat", om.valueToTree(this.getInputFormat()));
data.set("outputFormat", om.valueToTree(this.getOutputFormat()));
data.set("parameters", om.valueToTree(this.getParameters()));
data.set("partitionKeys", om.valueToTree(this.getPartitionKeys()));
data.set("serdeParameters", om.valueToTree(this.getSerdeParameters()));
data.set("serializationLibrary", om.valueToTree(this.getSerializationLibrary()));
data.set("tableName", om.valueToTree(this.getTableName()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@randyridgley/cdk-datalake-constructs.TableProps"));
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;
TableProps.Jsii$Proxy that = (TableProps.Jsii$Proxy) o;
if (!catalogId.equals(that.catalogId)) return false;
if (!columns.equals(that.columns)) return false;
if (!description.equals(that.description)) return false;
if (!inputFormat.equals(that.inputFormat)) return false;
if (!outputFormat.equals(that.outputFormat)) return false;
if (!parameters.equals(that.parameters)) return false;
if (!partitionKeys.equals(that.partitionKeys)) return false;
if (!serdeParameters.equals(that.serdeParameters)) return false;
if (!serializationLibrary.equals(that.serializationLibrary)) return false;
return this.tableName.equals(that.tableName);
}
@Override
public final int hashCode() {
int result = this.catalogId.hashCode();
result = 31 * result + (this.columns.hashCode());
result = 31 * result + (this.description.hashCode());
result = 31 * result + (this.inputFormat.hashCode());
result = 31 * result + (this.outputFormat.hashCode());
result = 31 * result + (this.parameters.hashCode());
result = 31 * result + (this.partitionKeys.hashCode());
result = 31 * result + (this.serdeParameters.hashCode());
result = 31 * result + (this.serializationLibrary.hashCode());
result = 31 * result + (this.tableName.hashCode());
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy