io.github.randyridgley.cdk.datalake.constructs.DataProductProperties 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.58.0 (build f8ba112)", date = "2022-05-10T19:23:44.606Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.DataProductProperties")
@software.amazon.jsii.Jsii.Proxy(DataProductProperties.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DataProductProperties extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getAccountId();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getDatabaseName();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.util.List getPipelines();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getDataCatalogAccountId() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.BucketProps getS3BucketProps() {
return null;
}
/**
* @return a {@link Builder} of {@link DataProductProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DataProductProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String accountId;
java.lang.String databaseName;
java.util.List pipelines;
java.lang.String dataCatalogAccountId;
software.amazon.awscdk.services.s3.BucketProps s3BucketProps;
/**
* Sets the value of {@link DataProductProperties#getAccountId}
* @param accountId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder accountId(java.lang.String accountId) {
this.accountId = accountId;
return this;
}
/**
* Sets the value of {@link DataProductProperties#getDatabaseName}
* @param databaseName the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder databaseName(java.lang.String databaseName) {
this.databaseName = databaseName;
return this;
}
/**
* Sets the value of {@link DataProductProperties#getPipelines}
* @param pipelines the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder pipelines(java.util.List extends io.github.randyridgley.cdk.datalake.constructs.Pipeline> pipelines) {
this.pipelines = (java.util.List)pipelines;
return this;
}
/**
* Sets the value of {@link DataProductProperties#getDataCatalogAccountId}
* @param dataCatalogAccountId the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder dataCatalogAccountId(java.lang.String dataCatalogAccountId) {
this.dataCatalogAccountId = dataCatalogAccountId;
return this;
}
/**
* Sets the value of {@link DataProductProperties#getS3BucketProps}
* @param s3BucketProps the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder s3BucketProps(software.amazon.awscdk.services.s3.BucketProps s3BucketProps) {
this.s3BucketProps = s3BucketProps;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DataProductProperties}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DataProductProperties build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link DataProductProperties}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataProductProperties {
private final java.lang.String accountId;
private final java.lang.String databaseName;
private final java.util.List pipelines;
private final java.lang.String dataCatalogAccountId;
private final software.amazon.awscdk.services.s3.BucketProps s3BucketProps;
/**
* 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.accountId = software.amazon.jsii.Kernel.get(this, "accountId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.databaseName = software.amazon.jsii.Kernel.get(this, "databaseName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.pipelines = software.amazon.jsii.Kernel.get(this, "pipelines", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(io.github.randyridgley.cdk.datalake.constructs.Pipeline.class)));
this.dataCatalogAccountId = software.amazon.jsii.Kernel.get(this, "dataCatalogAccountId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.s3BucketProps = software.amazon.jsii.Kernel.get(this, "s3BucketProps", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.BucketProps.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.accountId = java.util.Objects.requireNonNull(builder.accountId, "accountId is required");
this.databaseName = java.util.Objects.requireNonNull(builder.databaseName, "databaseName is required");
this.pipelines = (java.util.List)java.util.Objects.requireNonNull(builder.pipelines, "pipelines is required");
this.dataCatalogAccountId = builder.dataCatalogAccountId;
this.s3BucketProps = builder.s3BucketProps;
}
@Override
public final java.lang.String getAccountId() {
return this.accountId;
}
@Override
public final java.lang.String getDatabaseName() {
return this.databaseName;
}
@Override
public final java.util.List getPipelines() {
return this.pipelines;
}
@Override
public final java.lang.String getDataCatalogAccountId() {
return this.dataCatalogAccountId;
}
@Override
public final software.amazon.awscdk.services.s3.BucketProps getS3BucketProps() {
return this.s3BucketProps;
}
@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("accountId", om.valueToTree(this.getAccountId()));
data.set("databaseName", om.valueToTree(this.getDatabaseName()));
data.set("pipelines", om.valueToTree(this.getPipelines()));
if (this.getDataCatalogAccountId() != null) {
data.set("dataCatalogAccountId", om.valueToTree(this.getDataCatalogAccountId()));
}
if (this.getS3BucketProps() != null) {
data.set("s3BucketProps", om.valueToTree(this.getS3BucketProps()));
}
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.DataProductProperties"));
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;
DataProductProperties.Jsii$Proxy that = (DataProductProperties.Jsii$Proxy) o;
if (!accountId.equals(that.accountId)) return false;
if (!databaseName.equals(that.databaseName)) return false;
if (!pipelines.equals(that.pipelines)) return false;
if (this.dataCatalogAccountId != null ? !this.dataCatalogAccountId.equals(that.dataCatalogAccountId) : that.dataCatalogAccountId != null) return false;
return this.s3BucketProps != null ? this.s3BucketProps.equals(that.s3BucketProps) : that.s3BucketProps == null;
}
@Override
public final int hashCode() {
int result = this.accountId.hashCode();
result = 31 * result + (this.databaseName.hashCode());
result = 31 * result + (this.pipelines.hashCode());
result = 31 * result + (this.dataCatalogAccountId != null ? this.dataCatalogAccountId.hashCode() : 0);
result = 31 * result + (this.s3BucketProps != null ? this.s3BucketProps.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy