com.gammarer.cdk.aws.secure_bucket.SecureBucket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-secure-bucket Show documentation
Show all versions of aws-secure-bucket Show documentation
This is a Simple S3 Secure Bucket.
package com.gammarer.cdk.aws.secure_bucket;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.89.0 (build 2f74b3e)", date = "2023-10-05T01:31:33.215Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = com.gammarer.cdk.aws.secure_bucket.$Module.class, fqn = "@gammarer/aws-secure-bucket.SecureBucket")
public class SecureBucket extends software.amazon.awscdk.services.s3.Bucket {
protected SecureBucket(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected SecureBucket(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public SecureBucket(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable com.gammarer.cdk.aws.secure_bucket.SecureBucketProps 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"), props });
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public SecureBucket(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id) {
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") });
}
/**
* A fluent builder for {@link com.gammarer.cdk.aws.secure_bucket.SecureBucket}.
*/
@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 com.gammarer.cdk.aws.secure_bucket.SecureBucketProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
}
/**
* @return {@code this}
* @param bucketName This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder bucketName(final java.lang.String bucketName) {
this.props().bucketName(bucketName);
return this;
}
/**
* @return {@code this}
* @param encryption This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(final com.gammarer.cdk.aws.secure_bucket.SecureBucketEncryption encryption) {
this.props().encryption(encryption);
return this;
}
/**
* @return {@code this}
* @param eventBridgeEnabled This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder eventBridgeEnabled(final java.lang.Boolean eventBridgeEnabled) {
this.props().eventBridgeEnabled(eventBridgeEnabled);
return this;
}
/**
* @return {@code this}
* @param lifecycleRules This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder lifecycleRules(final java.util.List extends software.amazon.awscdk.services.s3.LifecycleRule> lifecycleRules) {
this.props().lifecycleRules(lifecycleRules);
return this;
}
/**
* @return {@code this}
* @param objectOwnership This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder objectOwnership(final com.gammarer.cdk.aws.secure_bucket.SecureObjectOwnership objectOwnership) {
this.props().objectOwnership(objectOwnership);
return this;
}
/**
* @return {@code this}
* @param versioned This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder versioned(final java.lang.Boolean versioned) {
this.props().versioned(versioned);
return this;
}
/**
* @return a newly built instance of {@link com.gammarer.cdk.aws.secure_bucket.SecureBucket}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public com.gammarer.cdk.aws.secure_bucket.SecureBucket build() {
return new com.gammarer.cdk.aws.secure_bucket.SecureBucket(
this.scope,
this.id,
this.props != null ? this.props.build() : null
);
}
private com.gammarer.cdk.aws.secure_bucket.SecureBucketProps.Builder props() {
if (this.props == null) {
this.props = new com.gammarer.cdk.aws.secure_bucket.SecureBucketProps.Builder();
}
return this.props;
}
}
}