All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mongodb.awscdk.resources.mongodbatlas.CfnStreamInstanceProps Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package org.mongodb.awscdk.resources.mongodbatlas;

/**
 * Returns, adds, edits, and removes Atlas Stream Processing Instances.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.986Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CfnStreamInstanceProps")
@software.amazon.jsii.Jsii.Proxy(CfnStreamInstanceProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnStreamInstanceProps extends software.amazon.jsii.JsiiSerializable {

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.StreamsDataProcessRegion getDataProcessRegion();

    /**
     * Human-readable label that identifies the stream connection.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getInstanceName();

    /**
     * Unique 24-hexadecimal character string that identifies the 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.StreamConfig getStreamConfig();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.util.List getConnections() {
        return null;
    }

    /**
     * The profile is defined in AWS Secret manager.
     * 

* See Secret Manager Profile setup. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProfile() { return null; } /** * @return a {@link Builder} of {@link CfnStreamInstanceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnStreamInstanceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { org.mongodb.awscdk.resources.mongodbatlas.StreamsDataProcessRegion dataProcessRegion; java.lang.String instanceName; java.lang.String projectId; org.mongodb.awscdk.resources.mongodbatlas.StreamConfig streamConfig; java.util.List connections; java.lang.String profile; /** * Sets the value of {@link CfnStreamInstanceProps#getDataProcessRegion} * @param dataProcessRegion the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder dataProcessRegion(org.mongodb.awscdk.resources.mongodbatlas.StreamsDataProcessRegion dataProcessRegion) { this.dataProcessRegion = dataProcessRegion; return this; } /** * Sets the value of {@link CfnStreamInstanceProps#getInstanceName} * @param instanceName Human-readable label that identifies the stream connection. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder instanceName(java.lang.String instanceName) { this.instanceName = instanceName; return this; } /** * Sets the value of {@link CfnStreamInstanceProps#getProjectId} * @param projectId Unique 24-hexadecimal character string that identifies the 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 CfnStreamInstanceProps#getStreamConfig} * @param streamConfig the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder streamConfig(org.mongodb.awscdk.resources.mongodbatlas.StreamConfig streamConfig) { this.streamConfig = streamConfig; return this; } /** * Sets the value of {@link CfnStreamInstanceProps#getConnections} * @param connections the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder connections(java.util.List connections) { this.connections = (java.util.List)connections; return this; } /** * Sets the value of {@link CfnStreamInstanceProps#getProfile} * @param profile The profile is defined in AWS Secret manager. * See Secret Manager Profile setup. * @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; } /** * Builds the configured instance. * @return a new instance of {@link CfnStreamInstanceProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnStreamInstanceProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CfnStreamInstanceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnStreamInstanceProps { private final org.mongodb.awscdk.resources.mongodbatlas.StreamsDataProcessRegion dataProcessRegion; private final java.lang.String instanceName; private final java.lang.String projectId; private final org.mongodb.awscdk.resources.mongodbatlas.StreamConfig streamConfig; private final java.util.List connections; private final java.lang.String profile; /** * 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.dataProcessRegion = software.amazon.jsii.Kernel.get(this, "dataProcessRegion", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.StreamsDataProcessRegion.class)); this.instanceName = software.amazon.jsii.Kernel.get(this, "instanceName", 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.streamConfig = software.amazon.jsii.Kernel.get(this, "streamConfig", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.StreamConfig.class)); this.connections = software.amazon.jsii.Kernel.get(this, "connections", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.StreamsConnection.class))); this.profile = software.amazon.jsii.Kernel.get(this, "profile", 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.dataProcessRegion = java.util.Objects.requireNonNull(builder.dataProcessRegion, "dataProcessRegion is required"); this.instanceName = java.util.Objects.requireNonNull(builder.instanceName, "instanceName is required"); this.projectId = java.util.Objects.requireNonNull(builder.projectId, "projectId is required"); this.streamConfig = java.util.Objects.requireNonNull(builder.streamConfig, "streamConfig is required"); this.connections = (java.util.List)builder.connections; this.profile = builder.profile; } @Override public final org.mongodb.awscdk.resources.mongodbatlas.StreamsDataProcessRegion getDataProcessRegion() { return this.dataProcessRegion; } @Override public final java.lang.String getInstanceName() { return this.instanceName; } @Override public final java.lang.String getProjectId() { return this.projectId; } @Override public final org.mongodb.awscdk.resources.mongodbatlas.StreamConfig getStreamConfig() { return this.streamConfig; } @Override public final java.util.List getConnections() { return this.connections; } @Override public final java.lang.String getProfile() { return this.profile; } @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("dataProcessRegion", om.valueToTree(this.getDataProcessRegion())); data.set("instanceName", om.valueToTree(this.getInstanceName())); data.set("projectId", om.valueToTree(this.getProjectId())); data.set("streamConfig", om.valueToTree(this.getStreamConfig())); if (this.getConnections() != null) { data.set("connections", om.valueToTree(this.getConnections())); } if (this.getProfile() != null) { data.set("profile", om.valueToTree(this.getProfile())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.CfnStreamInstanceProps")); 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; CfnStreamInstanceProps.Jsii$Proxy that = (CfnStreamInstanceProps.Jsii$Proxy) o; if (!dataProcessRegion.equals(that.dataProcessRegion)) return false; if (!instanceName.equals(that.instanceName)) return false; if (!projectId.equals(that.projectId)) return false; if (!streamConfig.equals(that.streamConfig)) return false; if (this.connections != null ? !this.connections.equals(that.connections) : that.connections != null) return false; return this.profile != null ? this.profile.equals(that.profile) : that.profile == null; } @Override public final int hashCode() { int result = this.dataProcessRegion.hashCode(); result = 31 * result + (this.instanceName.hashCode()); result = 31 * result + (this.projectId.hashCode()); result = 31 * result + (this.streamConfig.hashCode()); result = 31 * result + (this.connections != null ? this.connections.hashCode() : 0); result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy