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

io.github.hsiehshujeng.cdk.comprehend.s3olap.BillingRoleProps Maven / Gradle / Ivy

Go to download

A constrcut for PII and redaction scenarios with Amazon Comprehend and S3 Object Lambda

There is a newer version: 2.0.521
Show newest version
package io.github.hsiehshujeng.cdk.comprehend.s3olap;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.0 (build 3b9adc4)", date = "2024-08-29T00:48:08.960Z")
@software.amazon.jsii.Jsii(module = io.github.hsiehshujeng.cdk.comprehend.s3olap.$Module.class, fqn = "cdk-comprehend-s3olap.BillingRoleProps")
@software.amazon.jsii.Jsii.Proxy(BillingRoleProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface BillingRoleProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * The name of the IAM role.
     * 

* Default: 'RedactionBillingRole' */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getIamRoleName() { return null; } /** * The name of the object Lambda access point, which will be the same as the S3 acceess point for the S3 bucket in the demostration. *

* Default: 'billing-s3olap-call-transcripts-known-pii' */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getObjectLambdaAccessPointName() { return null; } /** * The name of the IAM policy for the IAM role. *

* Default: 'billing-role-s3olap-policy' */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getPolicyName() { return null; } /** * @return a {@link Builder} of {@link BillingRoleProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link BillingRoleProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String iamRoleName; java.lang.String objectLambdaAccessPointName; java.lang.String policyName; /** * Sets the value of {@link BillingRoleProps#getIamRoleName} * @param iamRoleName The name of the IAM role. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder iamRoleName(java.lang.String iamRoleName) { this.iamRoleName = iamRoleName; return this; } /** * Sets the value of {@link BillingRoleProps#getObjectLambdaAccessPointName} * @param objectLambdaAccessPointName The name of the object Lambda access point, which will be the same as the S3 acceess point for the S3 bucket in the demostration. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder objectLambdaAccessPointName(java.lang.String objectLambdaAccessPointName) { this.objectLambdaAccessPointName = objectLambdaAccessPointName; return this; } /** * Sets the value of {@link BillingRoleProps#getPolicyName} * @param policyName The name of the IAM policy for the IAM role. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder policyName(java.lang.String policyName) { this.policyName = policyName; return this; } /** * Builds the configured instance. * @return a new instance of {@link BillingRoleProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public BillingRoleProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link BillingRoleProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BillingRoleProps { private final java.lang.String iamRoleName; private final java.lang.String objectLambdaAccessPointName; private final java.lang.String policyName; /** * 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.iamRoleName = software.amazon.jsii.Kernel.get(this, "iamRoleName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.objectLambdaAccessPointName = software.amazon.jsii.Kernel.get(this, "objectLambdaAccessPointName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.policyName = software.amazon.jsii.Kernel.get(this, "policyName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.iamRoleName = builder.iamRoleName; this.objectLambdaAccessPointName = builder.objectLambdaAccessPointName; this.policyName = builder.policyName; } @Override public final java.lang.String getIamRoleName() { return this.iamRoleName; } @Override public final java.lang.String getObjectLambdaAccessPointName() { return this.objectLambdaAccessPointName; } @Override public final java.lang.String getPolicyName() { return this.policyName; } @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(); if (this.getIamRoleName() != null) { data.set("iamRoleName", om.valueToTree(this.getIamRoleName())); } if (this.getObjectLambdaAccessPointName() != null) { data.set("objectLambdaAccessPointName", om.valueToTree(this.getObjectLambdaAccessPointName())); } if (this.getPolicyName() != null) { data.set("policyName", om.valueToTree(this.getPolicyName())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("cdk-comprehend-s3olap.BillingRoleProps")); 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; BillingRoleProps.Jsii$Proxy that = (BillingRoleProps.Jsii$Proxy) o; if (this.iamRoleName != null ? !this.iamRoleName.equals(that.iamRoleName) : that.iamRoleName != null) return false; if (this.objectLambdaAccessPointName != null ? !this.objectLambdaAccessPointName.equals(that.objectLambdaAccessPointName) : that.objectLambdaAccessPointName != null) return false; return this.policyName != null ? this.policyName.equals(that.policyName) : that.policyName == null; } @Override public final int hashCode() { int result = this.iamRoleName != null ? this.iamRoleName.hashCode() : 0; result = 31 * result + (this.objectLambdaAccessPointName != null ? this.objectLambdaAccessPointName.hashCode() : 0); result = 31 * result + (this.policyName != null ? this.policyName.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy