io.github.hsiehshujeng.cdk.comprehend.s3olap.S3AccessPointNames 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.585Z")
@software.amazon.jsii.Jsii(module = io.github.hsiehshujeng.cdk.comprehend.s3olap.$Module.class, fqn = "cdk-comprehend-s3olap.S3AccessPointNames")
@software.amazon.jsii.Jsii.Proxy(S3AccessPointNames.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface S3AccessPointNames extends software.amazon.jsii.JsiiSerializable {
/**
* The name of the S3 aceess point for the admin role in the redaction case.
*
* Default: 'admin-s3-access-point-call-transcripts-known-pii'
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getAdmin();
/**
* The name of the S3 aceess point for the billing role in the redaction case.
*
* Default: 'bill-s3-access-point-call-transcripts-known-pii'
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getBilling();
/**
* The name of the S3 aceess point for the customer support role in the redaction case.
*
* Default: 'cs-s3-access-point-call-transcripts-known-pii'
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getCustomerSupport();
/**
* The name of the S3 aceess point for the general role in the access control case.
*
* Default: 'accessctl-s3-ap-survey-results-unknown-pii'
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getGeneral();
/**
* @return a {@link Builder} of {@link S3AccessPointNames}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link S3AccessPointNames}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.String admin;
java.lang.String billing;
java.lang.String customerSupport;
java.lang.String general;
/**
* Sets the value of {@link S3AccessPointNames#getAdmin}
* @param admin The name of the S3 aceess point for the admin role in the redaction case. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder admin(java.lang.String admin) {
this.admin = admin;
return this;
}
/**
* Sets the value of {@link S3AccessPointNames#getBilling}
* @param billing The name of the S3 aceess point for the billing role in the redaction case. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder billing(java.lang.String billing) {
this.billing = billing;
return this;
}
/**
* Sets the value of {@link S3AccessPointNames#getCustomerSupport}
* @param customerSupport The name of the S3 aceess point for the customer support role in the redaction case. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder customerSupport(java.lang.String customerSupport) {
this.customerSupport = customerSupport;
return this;
}
/**
* Sets the value of {@link S3AccessPointNames#getGeneral}
* @param general The name of the S3 aceess point for the general role in the access control case. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder general(java.lang.String general) {
this.general = general;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link S3AccessPointNames}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public S3AccessPointNames build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link S3AccessPointNames}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements S3AccessPointNames {
private final java.lang.String admin;
private final java.lang.String billing;
private final java.lang.String customerSupport;
private final java.lang.String general;
/**
* 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.admin = software.amazon.jsii.Kernel.get(this, "admin", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.billing = software.amazon.jsii.Kernel.get(this, "billing", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.customerSupport = software.amazon.jsii.Kernel.get(this, "customerSupport", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.general = software.amazon.jsii.Kernel.get(this, "general", 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.admin = java.util.Objects.requireNonNull(builder.admin, "admin is required");
this.billing = java.util.Objects.requireNonNull(builder.billing, "billing is required");
this.customerSupport = java.util.Objects.requireNonNull(builder.customerSupport, "customerSupport is required");
this.general = java.util.Objects.requireNonNull(builder.general, "general is required");
}
@Override
public final java.lang.String getAdmin() {
return this.admin;
}
@Override
public final java.lang.String getBilling() {
return this.billing;
}
@Override
public final java.lang.String getCustomerSupport() {
return this.customerSupport;
}
@Override
public final java.lang.String getGeneral() {
return this.general;
}
@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();
data.set("admin", om.valueToTree(this.getAdmin()));
data.set("billing", om.valueToTree(this.getBilling()));
data.set("customerSupport", om.valueToTree(this.getCustomerSupport()));
data.set("general", om.valueToTree(this.getGeneral()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("cdk-comprehend-s3olap.S3AccessPointNames"));
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;
S3AccessPointNames.Jsii$Proxy that = (S3AccessPointNames.Jsii$Proxy) o;
if (!admin.equals(that.admin)) return false;
if (!billing.equals(that.billing)) return false;
if (!customerSupport.equals(that.customerSupport)) return false;
return this.general.equals(that.general);
}
@Override
public final int hashCode() {
int result = this.admin.hashCode();
result = 31 * result + (this.billing.hashCode());
result = 31 * result + (this.customerSupport.hashCode());
result = 31 * result + (this.general.hashCode());
return result;
}
}
}