io.github.randyridgley.cdk.datalake.constructs.PipelineProperties 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.659Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.PipelineProperties")
@software.amazon.jsii.Jsii.Proxy(PipelineProperties.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface PipelineProperties extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull io.github.randyridgley.cdk.datalake.constructs.DataSetLocation getDataSetDropLocation();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getDestinationPrefix();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull io.github.randyridgley.cdk.datalake.constructs.DataPipelineType getType();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.randyridgley.cdk.datalake.constructs.JDBCProperties getJdbcProperties() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.randyridgley.cdk.datalake.constructs.JobProperties getJob() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.randyridgley.cdk.datalake.constructs.S3NotificationProperties getS3NotificationProps() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.randyridgley.cdk.datalake.constructs.S3Properties getS3Properties() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.randyridgley.cdk.datalake.constructs.StreamProperties getStreamProperties() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable io.github.randyridgley.cdk.datalake.constructs.TableProps getTable() {
return null;
}
/**
* @return a {@link Builder} of {@link PipelineProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link PipelineProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
private io.github.randyridgley.cdk.datalake.constructs.DataSetLocation dataSetDropLocation;
private java.lang.String destinationPrefix;
private java.lang.String name;
private io.github.randyridgley.cdk.datalake.constructs.DataPipelineType type;
private io.github.randyridgley.cdk.datalake.constructs.JDBCProperties jdbcProperties;
private io.github.randyridgley.cdk.datalake.constructs.JobProperties job;
private io.github.randyridgley.cdk.datalake.constructs.S3NotificationProperties s3NotificationProps;
private io.github.randyridgley.cdk.datalake.constructs.S3Properties s3Properties;
private io.github.randyridgley.cdk.datalake.constructs.StreamProperties streamProperties;
private io.github.randyridgley.cdk.datalake.constructs.TableProps table;
/**
* Sets the value of {@link PipelineProperties#getDataSetDropLocation}
* @param dataSetDropLocation the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder dataSetDropLocation(io.github.randyridgley.cdk.datalake.constructs.DataSetLocation dataSetDropLocation) {
this.dataSetDropLocation = dataSetDropLocation;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getDestinationPrefix}
* @param destinationPrefix the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder destinationPrefix(java.lang.String destinationPrefix) {
this.destinationPrefix = destinationPrefix;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getName}
* @param name the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder name(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getType}
* @param type the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder type(io.github.randyridgley.cdk.datalake.constructs.DataPipelineType type) {
this.type = type;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getJdbcProperties}
* @param jdbcProperties the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder jdbcProperties(io.github.randyridgley.cdk.datalake.constructs.JDBCProperties jdbcProperties) {
this.jdbcProperties = jdbcProperties;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getJob}
* @param job the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder job(io.github.randyridgley.cdk.datalake.constructs.JobProperties job) {
this.job = job;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getS3NotificationProps}
* @param s3NotificationProps the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder s3NotificationProps(io.github.randyridgley.cdk.datalake.constructs.S3NotificationProperties s3NotificationProps) {
this.s3NotificationProps = s3NotificationProps;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getS3Properties}
* @param s3Properties the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder s3Properties(io.github.randyridgley.cdk.datalake.constructs.S3Properties s3Properties) {
this.s3Properties = s3Properties;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getStreamProperties}
* @param streamProperties the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder streamProperties(io.github.randyridgley.cdk.datalake.constructs.StreamProperties streamProperties) {
this.streamProperties = streamProperties;
return this;
}
/**
* Sets the value of {@link PipelineProperties#getTable}
* @param table the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder table(io.github.randyridgley.cdk.datalake.constructs.TableProps table) {
this.table = table;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link PipelineProperties}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public PipelineProperties build() {
return new Jsii$Proxy(dataSetDropLocation, destinationPrefix, name, type, jdbcProperties, job, s3NotificationProps, s3Properties, streamProperties, table);
}
}
/**
* An implementation for {@link PipelineProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PipelineProperties {
private final io.github.randyridgley.cdk.datalake.constructs.DataSetLocation dataSetDropLocation;
private final java.lang.String destinationPrefix;
private final java.lang.String name;
private final io.github.randyridgley.cdk.datalake.constructs.DataPipelineType type;
private final io.github.randyridgley.cdk.datalake.constructs.JDBCProperties jdbcProperties;
private final io.github.randyridgley.cdk.datalake.constructs.JobProperties job;
private final io.github.randyridgley.cdk.datalake.constructs.S3NotificationProperties s3NotificationProps;
private final io.github.randyridgley.cdk.datalake.constructs.S3Properties s3Properties;
private final io.github.randyridgley.cdk.datalake.constructs.StreamProperties streamProperties;
private final io.github.randyridgley.cdk.datalake.constructs.TableProps table;
/**
* 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.dataSetDropLocation = software.amazon.jsii.Kernel.get(this, "dataSetDropLocation", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.DataSetLocation.class));
this.destinationPrefix = software.amazon.jsii.Kernel.get(this, "destinationPrefix", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.type = software.amazon.jsii.Kernel.get(this, "type", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.DataPipelineType.class));
this.jdbcProperties = software.amazon.jsii.Kernel.get(this, "jdbcProperties", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.JDBCProperties.class));
this.job = software.amazon.jsii.Kernel.get(this, "job", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.JobProperties.class));
this.s3NotificationProps = software.amazon.jsii.Kernel.get(this, "s3NotificationProps", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.S3NotificationProperties.class));
this.s3Properties = software.amazon.jsii.Kernel.get(this, "s3Properties", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.S3Properties.class));
this.streamProperties = software.amazon.jsii.Kernel.get(this, "streamProperties", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.StreamProperties.class));
this.table = software.amazon.jsii.Kernel.get(this, "table", software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.TableProps.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final io.github.randyridgley.cdk.datalake.constructs.DataSetLocation dataSetDropLocation, final java.lang.String destinationPrefix, final java.lang.String name, final io.github.randyridgley.cdk.datalake.constructs.DataPipelineType type, final io.github.randyridgley.cdk.datalake.constructs.JDBCProperties jdbcProperties, final io.github.randyridgley.cdk.datalake.constructs.JobProperties job, final io.github.randyridgley.cdk.datalake.constructs.S3NotificationProperties s3NotificationProps, final io.github.randyridgley.cdk.datalake.constructs.S3Properties s3Properties, final io.github.randyridgley.cdk.datalake.constructs.StreamProperties streamProperties, final io.github.randyridgley.cdk.datalake.constructs.TableProps table) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.dataSetDropLocation = java.util.Objects.requireNonNull(dataSetDropLocation, "dataSetDropLocation is required");
this.destinationPrefix = java.util.Objects.requireNonNull(destinationPrefix, "destinationPrefix is required");
this.name = java.util.Objects.requireNonNull(name, "name is required");
this.type = java.util.Objects.requireNonNull(type, "type is required");
this.jdbcProperties = jdbcProperties;
this.job = job;
this.s3NotificationProps = s3NotificationProps;
this.s3Properties = s3Properties;
this.streamProperties = streamProperties;
this.table = table;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.DataSetLocation getDataSetDropLocation() {
return this.dataSetDropLocation;
}
@Override
public final java.lang.String getDestinationPrefix() {
return this.destinationPrefix;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.DataPipelineType getType() {
return this.type;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.JDBCProperties getJdbcProperties() {
return this.jdbcProperties;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.JobProperties getJob() {
return this.job;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.S3NotificationProperties getS3NotificationProps() {
return this.s3NotificationProps;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.S3Properties getS3Properties() {
return this.s3Properties;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.StreamProperties getStreamProperties() {
return this.streamProperties;
}
@Override
public final io.github.randyridgley.cdk.datalake.constructs.TableProps getTable() {
return this.table;
}
@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("dataSetDropLocation", om.valueToTree(this.getDataSetDropLocation()));
data.set("destinationPrefix", om.valueToTree(this.getDestinationPrefix()));
data.set("name", om.valueToTree(this.getName()));
data.set("type", om.valueToTree(this.getType()));
if (this.getJdbcProperties() != null) {
data.set("jdbcProperties", om.valueToTree(this.getJdbcProperties()));
}
if (this.getJob() != null) {
data.set("job", om.valueToTree(this.getJob()));
}
if (this.getS3NotificationProps() != null) {
data.set("s3NotificationProps", om.valueToTree(this.getS3NotificationProps()));
}
if (this.getS3Properties() != null) {
data.set("s3Properties", om.valueToTree(this.getS3Properties()));
}
if (this.getStreamProperties() != null) {
data.set("streamProperties", om.valueToTree(this.getStreamProperties()));
}
if (this.getTable() != null) {
data.set("table", om.valueToTree(this.getTable()));
}
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.PipelineProperties"));
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;
PipelineProperties.Jsii$Proxy that = (PipelineProperties.Jsii$Proxy) o;
if (!dataSetDropLocation.equals(that.dataSetDropLocation)) return false;
if (!destinationPrefix.equals(that.destinationPrefix)) return false;
if (!name.equals(that.name)) return false;
if (!type.equals(that.type)) return false;
if (this.jdbcProperties != null ? !this.jdbcProperties.equals(that.jdbcProperties) : that.jdbcProperties != null) return false;
if (this.job != null ? !this.job.equals(that.job) : that.job != null) return false;
if (this.s3NotificationProps != null ? !this.s3NotificationProps.equals(that.s3NotificationProps) : that.s3NotificationProps != null) return false;
if (this.s3Properties != null ? !this.s3Properties.equals(that.s3Properties) : that.s3Properties != null) return false;
if (this.streamProperties != null ? !this.streamProperties.equals(that.streamProperties) : that.streamProperties != null) return false;
return this.table != null ? this.table.equals(that.table) : that.table == null;
}
@Override
public final int hashCode() {
int result = this.dataSetDropLocation.hashCode();
result = 31 * result + (this.destinationPrefix.hashCode());
result = 31 * result + (this.name.hashCode());
result = 31 * result + (this.type.hashCode());
result = 31 * result + (this.jdbcProperties != null ? this.jdbcProperties.hashCode() : 0);
result = 31 * result + (this.job != null ? this.job.hashCode() : 0);
result = 31 * result + (this.s3NotificationProps != null ? this.s3NotificationProps.hashCode() : 0);
result = 31 * result + (this.s3Properties != null ? this.s3Properties.hashCode() : 0);
result = 31 * result + (this.streamProperties != null ? this.streamProperties.hashCode() : 0);
result = 31 * result + (this.table != null ? this.table.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy