io.github.hsiehshujeng.cdk.comprehend.s3olap.GeneralRoleProps Maven / Gradle / Ivy
Show all versions of cdk-comprehend-s3olap Show documentation
package io.github.hsiehshujeng.cdk.comprehend.s3olap;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.102.0 (build e354887)", date = "2024-08-18T00:49:21.573Z")
@software.amazon.jsii.Jsii(module = io.github.hsiehshujeng.cdk.comprehend.s3olap.$Module.class, fqn = "cdk-comprehend-s3olap.GeneralRoleProps")
@software.amazon.jsii.Jsii.Proxy(GeneralRoleProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface GeneralRoleProps extends software.amazon.jsii.JsiiSerializable {
/**
* The name of the IAM role.
*
* Default: 'GeneralRole'
*/
@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: 'accessctl-s3olap-survey-results-unknown-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: 'general-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 GeneralRoleProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link GeneralRoleProps}
*/
@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 GeneralRoleProps#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 GeneralRoleProps#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 GeneralRoleProps#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 GeneralRoleProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public GeneralRoleProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link GeneralRoleProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements GeneralRoleProps {
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.GeneralRoleProps"));
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;
GeneralRoleProps.Jsii$Proxy that = (GeneralRoleProps.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;
}
}
}