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

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

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

/**
 * Returns, adds, and removes Global Cluster managed namespaces and custom zone mappings.
 * 

* This resource can only be used with Atlas-managed clusters, see doc for GlobalClusterSelfManagedSharding attribute in Mongodb::Atlas::Cluster resource for more info. */ @javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.936Z") @software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CfnGlobalClusterConfigProps") @software.amazon.jsii.Jsii.Proxy(CfnGlobalClusterConfigProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface CfnGlobalClusterConfigProps extends software.amazon.jsii.JsiiSerializable { /** * The name of the Atlas cluster that contains the snapshots you want to retrieve. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getClusterName() { return null; } /** * List that contains comma-separated key value pairs to map zones to geographic regions. *

* These pairs map an ISO 3166-1a2 location code, with an ISO 3166-2 subdivision code when possible, to the human-readable label for the desired custom zone. MongoDB Cloud maps the ISO 3166-1a2 code to the nearest geographical zone by default. Include this parameter to override the default mappings. *

* This parameter returns an empty object if no custom zones exist. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getCustomZoneMappings() { return null; } /** * List that contains comma-separated key value pairs to map zones to geographic regions. *

* These pairs map an ISO 3166-1a2 location code, with an ISO 3166-2 subdivision code when possible, to the human-readable label for the desired custom zone. MongoDB Cloud maps the ISO 3166-1a2 code to the nearest geographical zone by default. Include this parameter to override the default mappings. *

* This parameter returns an empty object if no custom zones exist. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getManagedNamespaces() { 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; } /** * The unique identifier of the project for the Atlas cluster. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProjectId() { return null; } /** * @return a {@link Builder} of {@link CfnGlobalClusterConfigProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnGlobalClusterConfigProps} */ @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.util.List customZoneMappings; java.util.List managedNamespaces; java.lang.String profile; java.lang.String projectId; /** * Sets the value of {@link CfnGlobalClusterConfigProps#getClusterName} * @param clusterName The name of the Atlas cluster that contains the snapshots you want to retrieve. * @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 CfnGlobalClusterConfigProps#getCustomZoneMappings} * @param customZoneMappings List that contains comma-separated key value pairs to map zones to geographic regions. * These pairs map an ISO 3166-1a2 location code, with an ISO 3166-2 subdivision code when possible, to the human-readable label for the desired custom zone. MongoDB Cloud maps the ISO 3166-1a2 code to the nearest geographical zone by default. Include this parameter to override the default mappings. *

* This parameter returns an empty object if no custom zones exist. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder customZoneMappings(java.util.List customZoneMappings) { this.customZoneMappings = (java.util.List)customZoneMappings; return this; } /** * Sets the value of {@link CfnGlobalClusterConfigProps#getManagedNamespaces} * @param managedNamespaces List that contains comma-separated key value pairs to map zones to geographic regions. * These pairs map an ISO 3166-1a2 location code, with an ISO 3166-2 subdivision code when possible, to the human-readable label for the desired custom zone. MongoDB Cloud maps the ISO 3166-1a2 code to the nearest geographical zone by default. Include this parameter to override the default mappings. *

* This parameter returns an empty object if no custom zones exist. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder managedNamespaces(java.util.List managedNamespaces) { this.managedNamespaces = (java.util.List)managedNamespaces; return this; } /** * Sets the value of {@link CfnGlobalClusterConfigProps#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; } /** * Sets the value of {@link CfnGlobalClusterConfigProps#getProjectId} * @param projectId The unique identifier of the project for the Atlas cluster. * @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; } /** * Builds the configured instance. * @return a new instance of {@link CfnGlobalClusterConfigProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnGlobalClusterConfigProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CfnGlobalClusterConfigProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnGlobalClusterConfigProps { private final java.lang.String clusterName; private final java.util.List customZoneMappings; private final java.util.List managedNamespaces; private final java.lang.String profile; private final java.lang.String projectId; /** * 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.customZoneMappings = software.amazon.jsii.Kernel.get(this, "customZoneMappings", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ZoneMapping.class))); this.managedNamespaces = software.amazon.jsii.Kernel.get(this, "managedNamespaces", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ManagedNamespace.class))); this.profile = software.amazon.jsii.Kernel.get(this, "profile", 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)); } /** * 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.clusterName = builder.clusterName; this.customZoneMappings = (java.util.List)builder.customZoneMappings; this.managedNamespaces = (java.util.List)builder.managedNamespaces; this.profile = builder.profile; this.projectId = builder.projectId; } @Override public final java.lang.String getClusterName() { return this.clusterName; } @Override public final java.util.List getCustomZoneMappings() { return this.customZoneMappings; } @Override public final java.util.List getManagedNamespaces() { return this.managedNamespaces; } @Override public final java.lang.String getProfile() { return this.profile; } @Override public final java.lang.String getProjectId() { return this.projectId; } @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.getCustomZoneMappings() != null) { data.set("customZoneMappings", om.valueToTree(this.getCustomZoneMappings())); } if (this.getManagedNamespaces() != null) { data.set("managedNamespaces", om.valueToTree(this.getManagedNamespaces())); } if (this.getProfile() != null) { data.set("profile", om.valueToTree(this.getProfile())); } if (this.getProjectId() != null) { data.set("projectId", om.valueToTree(this.getProjectId())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.CfnGlobalClusterConfigProps")); 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; CfnGlobalClusterConfigProps.Jsii$Proxy that = (CfnGlobalClusterConfigProps.Jsii$Proxy) o; if (this.clusterName != null ? !this.clusterName.equals(that.clusterName) : that.clusterName != null) return false; if (this.customZoneMappings != null ? !this.customZoneMappings.equals(that.customZoneMappings) : that.customZoneMappings != null) return false; if (this.managedNamespaces != null ? !this.managedNamespaces.equals(that.managedNamespaces) : that.managedNamespaces != null) return false; if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false; return this.projectId != null ? this.projectId.equals(that.projectId) : that.projectId == null; } @Override public final int hashCode() { int result = this.clusterName != null ? this.clusterName.hashCode() : 0; result = 31 * result + (this.customZoneMappings != null ? this.customZoneMappings.hashCode() : 0); result = 31 * result + (this.managedNamespaces != null ? this.managedNamespaces.hashCode() : 0); result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0); result = 31 * result + (this.projectId != null ? this.projectId.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy