org.mongodb.awscdk.resources.mongodbatlas.AtlasBasic Maven / Gradle / Ivy
Show all versions of awscdk-resources-mongodbatlas Show documentation
package org.mongodb.awscdk.resources.mongodbatlas;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.869Z")
@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.AtlasBasic")
public class AtlasBasic extends software.constructs.Construct {
protected AtlasBasic(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected AtlasBasic(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* Creates an instance of AtlasBasic.
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public AtlasBasic(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.AtlasBasicProps 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") });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.CfnProjectIpAccessList getIpAccessList() {
return software.amazon.jsii.Kernel.get(this, "ipAccessList", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.CfnProjectIpAccessList.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.CfnCluster getMCluster() {
return software.amazon.jsii.Kernel.get(this, "mCluster", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.CfnCluster.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.CfnDatabaseUser getMDBUser() {
return software.amazon.jsii.Kernel.get(this, "mDBUser", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.CfnDatabaseUser.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull org.mongodb.awscdk.resources.mongodbatlas.CfnProject getMProject() {
return software.amazon.jsii.Kernel.get(this, "mProject", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.CfnProject.class));
}
/**
* A fluent builder for {@link org.mongodb.awscdk.resources.mongodbatlas.AtlasBasic}.
*/
@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 This parameter is required.
* @param id 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.AtlasBasicProps.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.AtlasBasicProps.Builder();
}
/**
* @return {@code this}
* @param clusterProps This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder clusterProps(final org.mongodb.awscdk.resources.mongodbatlas.ClusterProps clusterProps) {
this.props.clusterProps(clusterProps);
return this;
}
/**
* @return {@code this}
* @param ipAccessListProps This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder ipAccessListProps(final org.mongodb.awscdk.resources.mongodbatlas.IpAccessListProps ipAccessListProps) {
this.props.ipAccessListProps(ipAccessListProps);
return this;
}
/**
* @return {@code this}
* @param projectProps This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder projectProps(final org.mongodb.awscdk.resources.mongodbatlas.ProjectProps projectProps) {
this.props.projectProps(projectProps);
return this;
}
/**
* @return {@code this}
* @param dbUserProps This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder dbUserProps(final org.mongodb.awscdk.resources.mongodbatlas.DatabaseUserProps dbUserProps) {
this.props.dbUserProps(dbUserProps);
return this;
}
/**
* @return {@code this}
* @param profile 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;
}
/**
* @return a newly built instance of {@link org.mongodb.awscdk.resources.mongodbatlas.AtlasBasic}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public org.mongodb.awscdk.resources.mongodbatlas.AtlasBasic build() {
return new org.mongodb.awscdk.resources.mongodbatlas.AtlasBasic(
this.scope,
this.id,
this.props.build()
);
}
}
}