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

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

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

/**
 * A CloudFormation MongoDB::Atlas::Project.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.94.0 (build b380f01)", date = "2024-02-05T16:04:31.878Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CfnProject")
public class CfnProject extends software.amazon.awscdk.CfnResource {

    protected CfnProject(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected CfnProject(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    static {
        CFN_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(org.mongodb.awscdk.resources.mongodbatlas.CfnProject.class, "CFN_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
    }

    /**
     * Create a new MongoDB::Atlas::Project.
     * 

* @param scope

  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param props
  • resource properties.
This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public CfnProject(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.CfnProjectProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } /** * The CloudFormation resource type name for this resource class. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public final static java.lang.String CFN_RESOURCE_TYPE_NAME; /** * Attribute MongoDB::Atlas::Project.Created. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getAttrCreated() { return software.amazon.jsii.Kernel.get(this, "attrCreated", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Attribute MongoDB::Atlas::Project.Id. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getAttrId() { return software.amazon.jsii.Kernel.get(this, "attrId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Attribute MongoDB::Atlas::Project.ProjectOwnerId. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull java.lang.String getAttrProjectOwnerId() { return software.amazon.jsii.Kernel.get(this, "attrProjectOwnerId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Resource props. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.CfnProjectProps getProps() { return software.amazon.jsii.Kernel.get(this, "props", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.CfnProjectProps.class)); } /** * A fluent builder for {@link org.mongodb.awscdk.resources.mongodbatlas.CfnProject}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private final org.mongodb.awscdk.resources.mongodbatlas.CfnProjectProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new org.mongodb.awscdk.resources.mongodbatlas.CfnProjectProps.Builder(); } /** * Name of the project to create. *

* @return {@code this} * @param name Name of the project to create. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(final java.lang.String name) { this.props.name(name); return this; } /** * Unique identifier of the organization within which to create the project. *

* @return {@code this} * @param orgId Unique identifier of the organization within which to create the project. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder orgId(final java.lang.String orgId) { this.props.orgId(orgId); return this; } /** * The number of Atlas clusters deployed in the project. *

* @return {@code this} * @param clusterCount The number of Atlas clusters deployed in the project. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder clusterCount(final java.lang.Number clusterCount) { this.props.clusterCount(clusterCount); return this; } /** * 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} * @param profile Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided default is used. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder profile(final java.lang.String profile) { this.props.profile(profile); return this; } /** * API keys that you assigned to the specified project. *

* @return {@code this} * @param projectApiKeys API keys that you assigned to the specified project. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder projectApiKeys(final java.util.List projectApiKeys) { this.props.projectApiKeys(projectApiKeys); return this; } /** * @return {@code this} * @param projectSettings This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder projectSettings(final org.mongodb.awscdk.resources.mongodbatlas.ProjectSettings projectSettings) { this.props.projectSettings(projectSettings); return this; } /** * Teams to which the authenticated user has access in the project specified using its unique 24-hexadecimal digit identifier. *

* @return {@code this} * @param projectTeams Teams to which the authenticated user has access in the project specified using its unique 24-hexadecimal digit identifier. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder projectTeams(final java.util.List projectTeams) { this.props.projectTeams(projectTeams); return this; } /** * Region usage restrictions that designate the project's AWS region.Enum: "GOV_REGIONS_ONLY" "COMMERCIAL_FEDRAMP_REGIONS_ONLY" "NONE". *

* @return {@code this} * @param regionUsageRestrictions Region usage restrictions that designate the project's AWS region.Enum: "GOV_REGIONS_ONLY" "COMMERCIAL_FEDRAMP_REGIONS_ONLY" "NONE". This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder regionUsageRestrictions(final java.lang.String regionUsageRestrictions) { this.props.regionUsageRestrictions(regionUsageRestrictions); return this; } /** * Flag that indicates whether to create the project with default alert settings. *

* @return {@code this} * @param withDefaultAlertsSettings Flag that indicates whether to create the project with default alert settings. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder withDefaultAlertsSettings(final java.lang.Boolean withDefaultAlertsSettings) { this.props.withDefaultAlertsSettings(withDefaultAlertsSettings); return this; } /** * @return a newly built instance of {@link org.mongodb.awscdk.resources.mongodbatlas.CfnProject}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public org.mongodb.awscdk.resources.mongodbatlas.CfnProject build() { return new org.mongodb.awscdk.resources.mongodbatlas.CfnProject( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy