org.mongodb.awscdk.resources.mongodbatlas.DataLakeDatabaseView Maven / Gradle / Ivy
Show all versions of awscdk-resources-mongodbatlas Show documentation
package org.mongodb.awscdk.resources.mongodbatlas;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.94.0 (build b380f01)", date = "2024-02-05T16:04:31.925Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.DataLakeDatabaseView")
@software.amazon.jsii.Jsii.Proxy(DataLakeDatabaseView.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface DataLakeDatabaseView extends software.amazon.jsii.JsiiSerializable {
/**
* Array of collections and data sources that map to a stores
data store.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getCollections() {
return null;
}
/**
* Maximum number of wildcard collections in the database.
*
* This only applies to S3 data sources.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getMaxWildcardCollections() {
return null;
}
/**
* Human-readable label that identifies the database to which the data lake maps data.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getName() {
return null;
}
/**
* Array of aggregation pipelines that apply to the collection.
*
* This only applies to S3 data sources.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getViews() {
return null;
}
/**
* @return a {@link Builder} of {@link DataLakeDatabaseView}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DataLakeDatabaseView}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.util.List collections;
java.lang.Number maxWildcardCollections;
java.lang.String name;
java.util.List views;
/**
* Sets the value of {@link DataLakeDatabaseView#getCollections}
* @param collections Array of collections and data sources that map to a stores
data store.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder collections(java.util.List extends org.mongodb.awscdk.resources.mongodbatlas.DataLakeDatabaseCollectionView> collections) {
this.collections = (java.util.List)collections;
return this;
}
/**
* Sets the value of {@link DataLakeDatabaseView#getMaxWildcardCollections}
* @param maxWildcardCollections Maximum number of wildcard collections in the database.
* This only applies to S3 data sources.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder maxWildcardCollections(java.lang.Number maxWildcardCollections) {
this.maxWildcardCollections = maxWildcardCollections;
return this;
}
/**
* Sets the value of {@link DataLakeDatabaseView#getName}
* @param name Human-readable label that identifies the database to which the data lake maps data.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder name(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sets the value of {@link DataLakeDatabaseView#getViews}
* @param views Array of aggregation pipelines that apply to the collection.
* This only applies to S3 data sources.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder views(java.util.List extends org.mongodb.awscdk.resources.mongodbatlas.DataLakeViewView> views) {
this.views = (java.util.List)views;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DataLakeDatabaseView}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DataLakeDatabaseView build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link DataLakeDatabaseView}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DataLakeDatabaseView {
private final java.util.List collections;
private final java.lang.Number maxWildcardCollections;
private final java.lang.String name;
private final java.util.List views;
/**
* 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.collections = software.amazon.jsii.Kernel.get(this, "collections", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.DataLakeDatabaseCollectionView.class)));
this.maxWildcardCollections = software.amazon.jsii.Kernel.get(this, "maxWildcardCollections", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.views = software.amazon.jsii.Kernel.get(this, "views", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.DataLakeViewView.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.collections = (java.util.List)builder.collections;
this.maxWildcardCollections = builder.maxWildcardCollections;
this.name = builder.name;
this.views = (java.util.List)builder.views;
}
@Override
public final java.util.List getCollections() {
return this.collections;
}
@Override
public final java.lang.Number getMaxWildcardCollections() {
return this.maxWildcardCollections;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.util.List getViews() {
return this.views;
}
@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.getCollections() != null) {
data.set("collections", om.valueToTree(this.getCollections()));
}
if (this.getMaxWildcardCollections() != null) {
data.set("maxWildcardCollections", om.valueToTree(this.getMaxWildcardCollections()));
}
if (this.getName() != null) {
data.set("name", om.valueToTree(this.getName()));
}
if (this.getViews() != null) {
data.set("views", om.valueToTree(this.getViews()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.DataLakeDatabaseView"));
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;
DataLakeDatabaseView.Jsii$Proxy that = (DataLakeDatabaseView.Jsii$Proxy) o;
if (this.collections != null ? !this.collections.equals(that.collections) : that.collections != null) return false;
if (this.maxWildcardCollections != null ? !this.maxWildcardCollections.equals(that.maxWildcardCollections) : that.maxWildcardCollections != null) return false;
if (this.name != null ? !this.name.equals(that.name) : that.name != null) return false;
return this.views != null ? this.views.equals(that.views) : that.views == null;
}
@Override
public final int hashCode() {
int result = this.collections != null ? this.collections.hashCode() : 0;
result = 31 * result + (this.maxWildcardCollections != null ? this.maxWildcardCollections.hashCode() : 0);
result = 31 * result + (this.name != null ? this.name.hashCode() : 0);
result = 31 * result + (this.views != null ? this.views.hashCode() : 0);
return result;
}
}
}