io.github.randyridgley.cdk.datalake.constructs.DataLakeBucketProps 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.627Z")
@software.amazon.jsii.Jsii(module = io.github.randyridgley.cdk.datalake.constructs.$Module.class, fqn = "@randyridgley/cdk-datalake-constructs.DataLakeBucketProps")
@software.amazon.jsii.Jsii.Proxy(DataLakeBucketProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface DataLakeBucketProps extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getBucketName();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.Boolean getCrossAccount();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getDataCatalogAccountId();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.s3.Bucket getLogBucket();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.BucketProps getS3Properties() {
return null;
}
/**
* @return a {@link Builder} of {@link DataLakeBucketProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DataLakeBucketProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.String bucketName;
private java.lang.Boolean crossAccount;
private java.lang.String dataCatalogAccountId;
private software.amazon.awscdk.services.s3.Bucket logBucket;
private software.amazon.awscdk.services.s3.BucketProps s3Properties;
/**
* Sets the value of {@link DataLakeBucketProps#getBucketName}
* @param bucketName the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder bucketName(java.lang.String bucketName) {
this.bucketName = bucketName;
return this;
}
/**
* Sets the value of {@link DataLakeBucketProps#getCrossAccount}
* @param crossAccount the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder crossAccount(java.lang.Boolean crossAccount) {
this.crossAccount = crossAccount;
return this;
}
/**
* Sets the value of {@link DataLakeBucketProps#getDataCatalogAccountId}
* @param dataCatalogAccountId the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder dataCatalogAccountId(java.lang.String dataCatalogAccountId) {
this.dataCatalogAccountId = dataCatalogAccountId;
return this;
}
/**
* Sets the value of {@link DataLakeBucketProps#getLogBucket}
* @param logBucket the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder logBucket(software.amazon.awscdk.services.s3.Bucket logBucket) {
this.logBucket = logBucket;
return this;
}
/**
* Sets the value of {@link DataLakeBucketProps#getS3Properties}
* @param s3Properties the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder s3Properties(software.amazon.awscdk.services.s3.BucketProps s3Properties) {
this.s3Properties = s3Properties;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DataLakeBucketProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public DataLakeBucketProps build() {
return new Jsii$Proxy(bucketName, crossAccount, dataCatalogAccountId, logBucket, s3Properties);
}
}
/**
* An implementation for {@link DataLakeBucketProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataLakeBucketProps {
private final java.lang.String bucketName;
private final java.lang.Boolean crossAccount;
private final java.lang.String dataCatalogAccountId;
private final software.amazon.awscdk.services.s3.Bucket logBucket;
private final software.amazon.awscdk.services.s3.BucketProps s3Properties;
/**
* 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.bucketName = software.amazon.jsii.Kernel.get(this, "bucketName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.crossAccount = software.amazon.jsii.Kernel.get(this, "crossAccount", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.dataCatalogAccountId = software.amazon.jsii.Kernel.get(this, "dataCatalogAccountId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.logBucket = software.amazon.jsii.Kernel.get(this, "logBucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.Bucket.class));
this.s3Properties = software.amazon.jsii.Kernel.get(this, "s3Properties", 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}.
*/
protected Jsii$Proxy(final java.lang.String bucketName, final java.lang.Boolean crossAccount, final java.lang.String dataCatalogAccountId, final software.amazon.awscdk.services.s3.Bucket logBucket, final software.amazon.awscdk.services.s3.BucketProps s3Properties) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.bucketName = java.util.Objects.requireNonNull(bucketName, "bucketName is required");
this.crossAccount = java.util.Objects.requireNonNull(crossAccount, "crossAccount is required");
this.dataCatalogAccountId = java.util.Objects.requireNonNull(dataCatalogAccountId, "dataCatalogAccountId is required");
this.logBucket = java.util.Objects.requireNonNull(logBucket, "logBucket is required");
this.s3Properties = s3Properties;
}
@Override
public final java.lang.String getBucketName() {
return this.bucketName;
}
@Override
public final java.lang.Boolean getCrossAccount() {
return this.crossAccount;
}
@Override
public final java.lang.String getDataCatalogAccountId() {
return this.dataCatalogAccountId;
}
@Override
public final software.amazon.awscdk.services.s3.Bucket getLogBucket() {
return this.logBucket;
}
@Override
public final software.amazon.awscdk.services.s3.BucketProps getS3Properties() {
return this.s3Properties;
}
@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("bucketName", om.valueToTree(this.getBucketName()));
data.set("crossAccount", om.valueToTree(this.getCrossAccount()));
data.set("dataCatalogAccountId", om.valueToTree(this.getDataCatalogAccountId()));
data.set("logBucket", om.valueToTree(this.getLogBucket()));
if (this.getS3Properties() != null) {
data.set("s3Properties", om.valueToTree(this.getS3Properties()));
}
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.DataLakeBucketProps"));
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;
DataLakeBucketProps.Jsii$Proxy that = (DataLakeBucketProps.Jsii$Proxy) o;
if (!bucketName.equals(that.bucketName)) return false;
if (!crossAccount.equals(that.crossAccount)) return false;
if (!dataCatalogAccountId.equals(that.dataCatalogAccountId)) return false;
if (!logBucket.equals(that.logBucket)) return false;
return this.s3Properties != null ? this.s3Properties.equals(that.s3Properties) : that.s3Properties == null;
}
@Override
public final int hashCode() {
int result = this.bucketName.hashCode();
result = 31 * result + (this.crossAccount.hashCode());
result = 31 * result + (this.dataCatalogAccountId.hashCode());
result = 31 * result + (this.logBucket.hashCode());
result = 31 * result + (this.s3Properties != null ? this.s3Properties.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy