org.mongodb.awscdk.resources.mongodbatlas.CfnProjectProps 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;
/**
* Retrieves or creates projects in any given Atlas organization.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.975Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CfnProjectProps")
@software.amazon.jsii.Jsii.Proxy(CfnProjectProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnProjectProps extends software.amazon.jsii.JsiiSerializable {
/**
* Name of the project to create.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getName();
/**
* Unique identifier of the organization within which to create the project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getOrgId();
/**
* 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;
}
/**
* API keys that you assigned to the specified project.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getProjectApiKeys() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings getProjectSettings() {
return null;
}
/**
* Teams to which the authenticated user has access in the project specified using its unique 24-hexadecimal digit identifier.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getProjectTeams() {
return null;
}
/**
* Region usage restrictions that designate the project's AWS region.Enum: "GOV_REGIONS_ONLY" "COMMERCIAL_FEDRAMP_REGIONS_ONLY" "NONE".
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getRegionUsageRestrictions() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getTags() {
return null;
}
/**
* Flag that indicates whether to create the project with default alert settings.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getWithDefaultAlertsSettings() {
return null;
}
/**
* @return a {@link Builder} of {@link CfnProjectProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CfnProjectProps}
*/
@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 orgId;
java.lang.String profile;
java.util.List projectApiKeys;
org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings projectSettings;
java.util.List projectTeams;
java.lang.String regionUsageRestrictions;
java.lang.Object tags;
java.lang.Boolean withDefaultAlertsSettings;
/**
* Sets the value of {@link CfnProjectProps#getName}
* @param name Name of the project to create. 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 CfnProjectProps#getOrgId}
* @param orgId Unique identifier of the organization within which to create the project. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder orgId(java.lang.String orgId) {
this.orgId = orgId;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#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 CfnProjectProps#getProjectApiKeys}
* @param projectApiKeys API keys that you assigned to the specified project.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder projectApiKeys(java.util.List extends org.mongodb.awscdk.resources.mongodbatlas.ProjectApiKey> projectApiKeys) {
this.projectApiKeys = (java.util.List)projectApiKeys;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#getProjectSettings}
* @param projectSettings the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder projectSettings(org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings projectSettings) {
this.projectSettings = projectSettings;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#getProjectTeams}
* @param projectTeams Teams to which the authenticated user has access in the project specified using its unique 24-hexadecimal digit identifier.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder projectTeams(java.util.List extends org.mongodb.awscdk.resources.mongodbatlas.ProjectTeam> projectTeams) {
this.projectTeams = (java.util.List)projectTeams;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#getRegionUsageRestrictions}
* @param regionUsageRestrictions Region usage restrictions that designate the project's AWS region.Enum: "GOV_REGIONS_ONLY" "COMMERCIAL_FEDRAMP_REGIONS_ONLY" "NONE".
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder regionUsageRestrictions(java.lang.String regionUsageRestrictions) {
this.regionUsageRestrictions = regionUsageRestrictions;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#getTags}
* @param tags the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder tags(java.lang.Object tags) {
this.tags = tags;
return this;
}
/**
* Sets the value of {@link CfnProjectProps#getWithDefaultAlertsSettings}
* @param withDefaultAlertsSettings Flag that indicates whether to create the project with default alert settings.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder withDefaultAlertsSettings(java.lang.Boolean withDefaultAlertsSettings) {
this.withDefaultAlertsSettings = withDefaultAlertsSettings;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CfnProjectProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public CfnProjectProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link CfnProjectProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnProjectProps {
private final java.lang.String name;
private final java.lang.String orgId;
private final java.lang.String profile;
private final java.util.List projectApiKeys;
private final org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings projectSettings;
private final java.util.List projectTeams;
private final java.lang.String regionUsageRestrictions;
private final java.lang.Object tags;
private final java.lang.Boolean withDefaultAlertsSettings;
/**
* 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.orgId = software.amazon.jsii.Kernel.get(this, "orgId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.projectApiKeys = software.amazon.jsii.Kernel.get(this, "projectApiKeys", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ProjectApiKey.class)));
this.projectSettings = software.amazon.jsii.Kernel.get(this, "projectSettings", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings.class));
this.projectTeams = software.amazon.jsii.Kernel.get(this, "projectTeams", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ProjectTeam.class)));
this.regionUsageRestrictions = software.amazon.jsii.Kernel.get(this, "regionUsageRestrictions", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.withDefaultAlertsSettings = software.amazon.jsii.Kernel.get(this, "withDefaultAlertsSettings", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.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.orgId = java.util.Objects.requireNonNull(builder.orgId, "orgId is required");
this.profile = builder.profile;
this.projectApiKeys = (java.util.List)builder.projectApiKeys;
this.projectSettings = builder.projectSettings;
this.projectTeams = (java.util.List)builder.projectTeams;
this.regionUsageRestrictions = builder.regionUsageRestrictions;
this.tags = builder.tags;
this.withDefaultAlertsSettings = builder.withDefaultAlertsSettings;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.lang.String getOrgId() {
return this.orgId;
}
@Override
public final java.lang.String getProfile() {
return this.profile;
}
@Override
public final java.util.List getProjectApiKeys() {
return this.projectApiKeys;
}
@Override
public final org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings getProjectSettings() {
return this.projectSettings;
}
@Override
public final java.util.List getProjectTeams() {
return this.projectTeams;
}
@Override
public final java.lang.String getRegionUsageRestrictions() {
return this.regionUsageRestrictions;
}
@Override
public final java.lang.Object getTags() {
return this.tags;
}
@Override
public final java.lang.Boolean getWithDefaultAlertsSettings() {
return this.withDefaultAlertsSettings;
}
@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("orgId", om.valueToTree(this.getOrgId()));
if (this.getProfile() != null) {
data.set("profile", om.valueToTree(this.getProfile()));
}
if (this.getProjectApiKeys() != null) {
data.set("projectApiKeys", om.valueToTree(this.getProjectApiKeys()));
}
if (this.getProjectSettings() != null) {
data.set("projectSettings", om.valueToTree(this.getProjectSettings()));
}
if (this.getProjectTeams() != null) {
data.set("projectTeams", om.valueToTree(this.getProjectTeams()));
}
if (this.getRegionUsageRestrictions() != null) {
data.set("regionUsageRestrictions", om.valueToTree(this.getRegionUsageRestrictions()));
}
if (this.getTags() != null) {
data.set("tags", om.valueToTree(this.getTags()));
}
if (this.getWithDefaultAlertsSettings() != null) {
data.set("withDefaultAlertsSettings", om.valueToTree(this.getWithDefaultAlertsSettings()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.CfnProjectProps"));
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;
CfnProjectProps.Jsii$Proxy that = (CfnProjectProps.Jsii$Proxy) o;
if (!name.equals(that.name)) return false;
if (!orgId.equals(that.orgId)) return false;
if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false;
if (this.projectApiKeys != null ? !this.projectApiKeys.equals(that.projectApiKeys) : that.projectApiKeys != null) return false;
if (this.projectSettings != null ? !this.projectSettings.equals(that.projectSettings) : that.projectSettings != null) return false;
if (this.projectTeams != null ? !this.projectTeams.equals(that.projectTeams) : that.projectTeams != null) return false;
if (this.regionUsageRestrictions != null ? !this.regionUsageRestrictions.equals(that.regionUsageRestrictions) : that.regionUsageRestrictions != null) return false;
if (this.tags != null ? !this.tags.equals(that.tags) : that.tags != null) return false;
return this.withDefaultAlertsSettings != null ? this.withDefaultAlertsSettings.equals(that.withDefaultAlertsSettings) : that.withDefaultAlertsSettings == null;
}
@Override
public final int hashCode() {
int result = this.name.hashCode();
result = 31 * result + (this.orgId.hashCode());
result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0);
result = 31 * result + (this.projectApiKeys != null ? this.projectApiKeys.hashCode() : 0);
result = 31 * result + (this.projectSettings != null ? this.projectSettings.hashCode() : 0);
result = 31 * result + (this.projectTeams != null ? this.projectTeams.hashCode() : 0);
result = 31 * result + (this.regionUsageRestrictions != null ? this.regionUsageRestrictions.hashCode() : 0);
result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0);
result = 31 * result + (this.withDefaultAlertsSettings != null ? this.withDefaultAlertsSettings.hashCode() : 0);
return result;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy