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

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

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

/**
 * Array that contains the data stores for the data lake.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:29.062Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.Store")
@software.amazon.jsii.Jsii.Proxy(Store.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface Store extends software.amazon.jsii.JsiiSerializable {

    /**
     * Human-readable label of the MongoDB Cloud cluster on which the store is based.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.String getClusterName() {
        return null;
    }

    /**
     * Human-readable label that identifies the data store.
     * 

* The databases.[n].collections.[n].dataSources.[n].storeName field references this values as part of the mapping configuration. To use MongoDB Cloud as a data store, the data lake requires a serverless instance or an M10 or higher cluster. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getName() { return null; } /** * Unique 24-hexadecimal digit string that identifies the project.Regex ^([a-f0-9]{24})$ . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProjectId() { return null; } /** * Allowed values atlas, http, online_archive, s3 and DataLakeAzureBlobStore. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProvider() { return null; } /** * MongoDB Cloud cluster read preference, which describes how to route read requests to the cluster. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.ReadPreference getReadPreference() { return null; } /** * @return a {@link Builder} of {@link Store} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link Store} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String clusterName; java.lang.String name; java.lang.String projectId; java.lang.String provider; org.mongodb.awscdk.resources.mongodbatlas.ReadPreference readPreference; /** * Sets the value of {@link Store#getClusterName} * @param clusterName Human-readable label of the MongoDB Cloud cluster on which the store is based. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder clusterName(java.lang.String clusterName) { this.clusterName = clusterName; return this; } /** * Sets the value of {@link Store#getName} * @param name Human-readable label that identifies the data store. * The databases.[n].collections.[n].dataSources.[n].storeName field references this values as part of the mapping configuration. To use MongoDB Cloud as a data store, the data lake requires a serverless instance or an M10 or higher cluster. * @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 Store#getProjectId} * @param projectId Unique 24-hexadecimal digit string that identifies the project.Regex ^([a-f0-9]{24})$ . * @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 Store#getProvider} * @param provider Allowed values atlas, http, online_archive, s3 and DataLakeAzureBlobStore. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder provider(java.lang.String provider) { this.provider = provider; return this; } /** * Sets the value of {@link Store#getReadPreference} * @param readPreference MongoDB Cloud cluster read preference, which describes how to route read requests to the cluster. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder readPreference(org.mongodb.awscdk.resources.mongodbatlas.ReadPreference readPreference) { this.readPreference = readPreference; return this; } /** * Builds the configured instance. * @return a new instance of {@link Store} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public Store build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link Store} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Store { private final java.lang.String clusterName; private final java.lang.String name; private final java.lang.String projectId; private final java.lang.String provider; private final org.mongodb.awscdk.resources.mongodbatlas.ReadPreference readPreference; /** * 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.clusterName = software.amazon.jsii.Kernel.get(this, "clusterName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); 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.provider = software.amazon.jsii.Kernel.get(this, "provider", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.readPreference = software.amazon.jsii.Kernel.get(this, "readPreference", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ReadPreference.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.clusterName = builder.clusterName; this.name = builder.name; this.projectId = builder.projectId; this.provider = builder.provider; this.readPreference = builder.readPreference; } @Override public final java.lang.String getClusterName() { return this.clusterName; } @Override public final java.lang.String getName() { return this.name; } @Override public final java.lang.String getProjectId() { return this.projectId; } @Override public final java.lang.String getProvider() { return this.provider; } @Override public final org.mongodb.awscdk.resources.mongodbatlas.ReadPreference getReadPreference() { return this.readPreference; } @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.getClusterName() != null) { data.set("clusterName", om.valueToTree(this.getClusterName())); } if (this.getName() != null) { data.set("name", om.valueToTree(this.getName())); } if (this.getProjectId() != null) { data.set("projectId", om.valueToTree(this.getProjectId())); } if (this.getProvider() != null) { data.set("provider", om.valueToTree(this.getProvider())); } if (this.getReadPreference() != null) { data.set("readPreference", om.valueToTree(this.getReadPreference())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.Store")); 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; Store.Jsii$Proxy that = (Store.Jsii$Proxy) o; if (this.clusterName != null ? !this.clusterName.equals(that.clusterName) : that.clusterName != null) return false; if (this.name != null ? !this.name.equals(that.name) : that.name != null) return false; if (this.projectId != null ? !this.projectId.equals(that.projectId) : that.projectId != null) return false; if (this.provider != null ? !this.provider.equals(that.provider) : that.provider != null) return false; return this.readPreference != null ? this.readPreference.equals(that.readPreference) : that.readPreference == null; } @Override public final int hashCode() { int result = this.clusterName != null ? this.clusterName.hashCode() : 0; result = 31 * result + (this.name != null ? this.name.hashCode() : 0); result = 31 * result + (this.projectId != null ? this.projectId.hashCode() : 0); result = 31 * result + (this.provider != null ? this.provider.hashCode() : 0); result = 31 * result + (this.readPreference != null ? this.readPreference.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy