software.amazon.textract.idp.RDSAuroraServerless Maven / Gradle / Ivy
Show all versions of idp-cdk-constructs Show documentation
package software.amazon.textract.idp;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.90.0 (build d6bdb4d)", date = "2023-10-26T15:43:30.314Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.textract.idp.$Module.class, fqn = "amazon-textract-idp-cdk-constructs.RDSAuroraServerless")
public class RDSAuroraServerless extends software.constructs.Construct {
protected RDSAuroraServerless(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RDSAuroraServerless(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @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 RDSAuroraServerless(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.textract.idp.RDSAuroraServerlessProps 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 software.amazon.textract.idp.RDSAuroraServerlessProps getProps() {
return software.amazon.jsii.Kernel.get(this, "props", software.amazon.jsii.NativeType.forClass(software.amazon.textract.idp.RDSAuroraServerlessProps.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.ISecurityGroup getAuroraSecurityGroup() {
return software.amazon.jsii.Kernel.get(this, "auroraSecurityGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISecurityGroup.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setAuroraSecurityGroup(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.ISecurityGroup value) {
software.amazon.jsii.Kernel.set(this, "auroraSecurityGroup", java.util.Objects.requireNonNull(value, "auroraSecurityGroup is required"));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.rds.IServerlessCluster getDbCluster() {
return software.amazon.jsii.Kernel.get(this, "dbCluster", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.rds.IServerlessCluster.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setDbCluster(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.rds.IServerlessCluster value) {
software.amazon.jsii.Kernel.set(this, "dbCluster", java.util.Objects.requireNonNull(value, "dbCluster is required"));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.ISecurityGroup getLambdaSecurityGroup() {
return software.amazon.jsii.Kernel.get(this, "lambdaSecurityGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISecurityGroup.class));
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setLambdaSecurityGroup(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.ISecurityGroup value) {
software.amazon.jsii.Kernel.set(this, "lambdaSecurityGroup", java.util.Objects.requireNonNull(value, "lambdaSecurityGroup is required"));
}
/**
* A fluent builder for {@link software.amazon.textract.idp.RDSAuroraServerless}.
*/
@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 software.amazon.textract.idp.RDSAuroraServerlessProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new software.amazon.textract.idp.RDSAuroraServerlessProps.Builder();
}
/**
* VPC to install the database into.
*
* @return {@code this}
* @param vpc VPC to install the database into. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder vpc(final software.amazon.awscdk.services.ec2.IVpc vpc) {
this.props.vpc(vpc);
return this;
}
/**
* @return a newly built instance of {@link software.amazon.textract.idp.RDSAuroraServerless}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public software.amazon.textract.idp.RDSAuroraServerless build() {
return new software.amazon.textract.idp.RDSAuroraServerless(
this.scope,
this.id,
this.props.build()
);
}
}
}