org.mongodb.awscdk.resources.mongodbatlas.CfnDataLakePipelineProps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of awscdk-resources-mongodbatlas Show documentation
Show all versions of awscdk-resources-mongodbatlas Show documentation
MongoDB Atlas CDK Construct Library for AWS CloudFormation Resources
package org.mongodb.awscdk.resources.mongodbatlas;
/**
* An example resource schema demonstrating some basic constructs and validation rules.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.919Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CfnDataLakePipelineProps")
@software.amazon.jsii.Jsii.Proxy(CfnDataLakePipelineProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnDataLakePipelineProps extends software.amazon.jsii.JsiiSerializable {
/**
* Name of this Data Lake Pipeline.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
* Unique 24-hexadecimal digit string that identifies your project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getProjectId();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.Sink getSink();
/**
* Ingestion destination of a Data Lake Pipeline.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.util.List getTransformations();
/**
* Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided default is used.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getProfile() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.Source getSource() {
return null;
}
/**
* State of the Data Lake Pipeline.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getState() {
return null;
}
/**
* @return a {@link Builder} of {@link CfnDataLakePipelineProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CfnDataLakePipelineProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String name;
java.lang.String projectId;
org.mongodb.awscdk.resources.mongodbatlas.Sink sink;
java.util.List transformations;
java.lang.String profile;
org.mongodb.awscdk.resources.mongodbatlas.Source source;
java.lang.String state;
/**
* Sets the value of {@link CfnDataLakePipelineProps#getName}
* @param name Name of this Data Lake Pipeline. This parameter is required.
* @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 CfnDataLakePipelineProps#getProjectId}
* @param projectId Unique 24-hexadecimal digit string that identifies your project. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder projectId(java.lang.String projectId) {
this.projectId = projectId;
return this;
}
/**
* Sets the value of {@link CfnDataLakePipelineProps#getSink}
* @param sink the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder sink(org.mongodb.awscdk.resources.mongodbatlas.Sink sink) {
this.sink = sink;
return this;
}
/**
* Sets the value of {@link CfnDataLakePipelineProps#getTransformations}
* @param transformations Ingestion destination of a Data Lake Pipeline. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder transformations(java.util.List extends org.mongodb.awscdk.resources.mongodbatlas.Transformations> transformations) {
this.transformations = (java.util.List)transformations;
return this;
}
/**
* Sets the value of {@link CfnDataLakePipelineProps#getProfile}
* @param profile Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided default is used.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder profile(java.lang.String profile) {
this.profile = profile;
return this;
}
/**
* Sets the value of {@link CfnDataLakePipelineProps#getSource}
* @param source the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder source(org.mongodb.awscdk.resources.mongodbatlas.Source source) {
this.source = source;
return this;
}
/**
* Sets the value of {@link CfnDataLakePipelineProps#getState}
* @param state State of the Data Lake Pipeline.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder state(java.lang.String state) {
this.state = state;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CfnDataLakePipelineProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public CfnDataLakePipelineProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link CfnDataLakePipelineProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnDataLakePipelineProps {
private final java.lang.String name;
private final java.lang.String projectId;
private final org.mongodb.awscdk.resources.mongodbatlas.Sink sink;
private final java.util.List transformations;
private final java.lang.String profile;
private final org.mongodb.awscdk.resources.mongodbatlas.Source source;
private final java.lang.String state;
/**
* 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.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.projectId = software.amazon.jsii.Kernel.get(this, "projectId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.sink = software.amazon.jsii.Kernel.get(this, "sink", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.Sink.class));
this.transformations = software.amazon.jsii.Kernel.get(this, "transformations", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.Transformations.class)));
this.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.source = software.amazon.jsii.Kernel.get(this, "source", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.Source.class));
this.state = software.amazon.jsii.Kernel.get(this, "state", 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 Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.name = java.util.Objects.requireNonNull(builder.name, "name is required");
this.projectId = java.util.Objects.requireNonNull(builder.projectId, "projectId is required");
this.sink = java.util.Objects.requireNonNull(builder.sink, "sink is required");
this.transformations = (java.util.List)java.util.Objects.requireNonNull(builder.transformations, "transformations is required");
this.profile = builder.profile;
this.source = builder.source;
this.state = builder.state;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.lang.String getProjectId() {
return this.projectId;
}
@Override
public final org.mongodb.awscdk.resources.mongodbatlas.Sink getSink() {
return this.sink;
}
@Override
public final java.util.List getTransformations() {
return this.transformations;
}
@Override
public final java.lang.String getProfile() {
return this.profile;
}
@Override
public final org.mongodb.awscdk.resources.mongodbatlas.Source getSource() {
return this.source;
}
@Override
public final java.lang.String getState() {
return this.state;
}
@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("name", om.valueToTree(this.getName()));
data.set("projectId", om.valueToTree(this.getProjectId()));
data.set("sink", om.valueToTree(this.getSink()));
data.set("transformations", om.valueToTree(this.getTransformations()));
if (this.getProfile() != null) {
data.set("profile", om.valueToTree(this.getProfile()));
}
if (this.getSource() != null) {
data.set("source", om.valueToTree(this.getSource()));
}
if (this.getState() != null) {
data.set("state", om.valueToTree(this.getState()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.CfnDataLakePipelineProps"));
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;
CfnDataLakePipelineProps.Jsii$Proxy that = (CfnDataLakePipelineProps.Jsii$Proxy) o;
if (!name.equals(that.name)) return false;
if (!projectId.equals(that.projectId)) return false;
if (!sink.equals(that.sink)) return false;
if (!transformations.equals(that.transformations)) return false;
if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false;
if (this.source != null ? !this.source.equals(that.source) : that.source != null) return false;
return this.state != null ? this.state.equals(that.state) : that.state == null;
}
@Override
public final int hashCode() {
int result = this.name.hashCode();
result = 31 * result + (this.projectId.hashCode());
result = 31 * result + (this.sink.hashCode());
result = 31 * result + (this.transformations.hashCode());
result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0);
result = 31 * result + (this.source != null ? this.source.hashCode() : 0);
result = 31 * result + (this.state != null ? this.state.hashCode() : 0);
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy