software.amazon.textract.idp.CSVToAuroraTaskProps 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.295Z")
@software.amazon.jsii.Jsii(module = software.amazon.textract.idp.$Module.class, fqn = "amazon-textract-idp-cdk-constructs.CSVToAuroraTaskProps")
@software.amazon.jsii.Jsii.Proxy(CSVToAuroraTaskProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CSVToAuroraTaskProps extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps {
/**
* Pass the execution ID from the context object to the execution input.
*
* This allows the Step Functions UI to link child executions from parent executions, making it easier to trace execution flow across state machines.
*
* If you set this property to true
, the input
property must be an object (provided by sfn.TaskInput.fromObject
) or omitted entirely.
*
* Default: - false
*
* @see https://docs.aws.amazon.com/step-functions/latest/dg/concepts-nested-workflows.html#nested-execution-startid
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getAssociateWithParent() {
return null;
}
/**
* auroraSecurity Group for Cluster.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.ISecurityGroup getAuroraSecurityGroup() {
return null;
}
/**
* default is 1.1.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getCsvToAuroraBackoffRate() {
return null;
}
/**
* default is 1.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getCsvToAuroraInterval() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getCsvToAuroraMaxRetries() {
return null;
}
/**
* DBCluster to import into.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.rds.IServerlessCluster getDbCluster() {
return null;
}
/**
* enable CloudWatch Metrics and Dashboard.
*
* Default: - false
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getEnableCloudWatchMetricsAndDashboard() {
return null;
}
/**
* The JSON input for the execution, same as that of StartExecution.
*
* Default: - The state input (JSON path '$')
*
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.stepfunctions.TaskInput getInput() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getLambdaLogLevel() {
return null;
}
/**
* Memory allocated to Lambda function, default 512.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getLambdaMemory() {
return null;
}
/**
* lambdaSecurity Group for Cluster.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.ISecurityGroup getLambdaSecurityGroup() {
return null;
}
/**
* Lambda Function Timeout in seconds, default 300.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getLambdaTimeout() {
return null;
}
/**
* The name of the execution, same as that of StartExecution.
*
* Default: - None
*
* @see https://docs.aws.amazon.com/step-functions/latest/apireference/API_StartExecution.html
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getName() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getTextractStateMachineTimeoutMinutes() {
return null;
}
/**
* VPC to install the database into, optional if dbCluster is passed in.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.IVpc getVpc() {
return null;
}
/**
* @return a {@link Builder} of {@link CSVToAuroraTaskProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CSVToAuroraTaskProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Boolean associateWithParent;
software.amazon.awscdk.services.ec2.ISecurityGroup auroraSecurityGroup;
java.lang.Number csvToAuroraBackoffRate;
java.lang.Number csvToAuroraInterval;
java.lang.Number csvToAuroraMaxRetries;
software.amazon.awscdk.services.rds.IServerlessCluster dbCluster;
java.lang.Boolean enableCloudWatchMetricsAndDashboard;
software.amazon.awscdk.services.stepfunctions.TaskInput input;
java.lang.String lambdaLogLevel;
java.lang.Number lambdaMemory;
software.amazon.awscdk.services.ec2.ISecurityGroup lambdaSecurityGroup;
java.lang.Number lambdaTimeout;
java.lang.String name;
java.lang.Number textractStateMachineTimeoutMinutes;
software.amazon.awscdk.services.ec2.IVpc vpc;
java.lang.String comment;
software.amazon.awscdk.services.stepfunctions.Credentials credentials;
software.amazon.awscdk.Duration heartbeat;
software.amazon.awscdk.services.stepfunctions.Timeout heartbeatTimeout;
java.lang.String inputPath;
software.amazon.awscdk.services.stepfunctions.IntegrationPattern integrationPattern;
java.lang.String outputPath;
java.lang.String resultPath;
java.util.Map resultSelector;
software.amazon.awscdk.services.stepfunctions.Timeout taskTimeout;
software.amazon.awscdk.Duration timeout;
/**
* Sets the value of {@link CSVToAuroraTaskProps#getAssociateWithParent}
* @param associateWithParent Pass the execution ID from the context object to the execution input.
* This allows the Step Functions UI to link child executions from parent executions, making it easier to trace execution flow across state machines.
*
* If you set this property to true
, the input
property must be an object (provided by sfn.TaskInput.fromObject
) or omitted entirely.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder associateWithParent(java.lang.Boolean associateWithParent) {
this.associateWithParent = associateWithParent;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getAuroraSecurityGroup}
* @param auroraSecurityGroup auroraSecurity Group for Cluster.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder auroraSecurityGroup(software.amazon.awscdk.services.ec2.ISecurityGroup auroraSecurityGroup) {
this.auroraSecurityGroup = auroraSecurityGroup;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getCsvToAuroraBackoffRate}
* @param csvToAuroraBackoffRate default is 1.1.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder csvToAuroraBackoffRate(java.lang.Number csvToAuroraBackoffRate) {
this.csvToAuroraBackoffRate = csvToAuroraBackoffRate;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getCsvToAuroraInterval}
* @param csvToAuroraInterval default is 1.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder csvToAuroraInterval(java.lang.Number csvToAuroraInterval) {
this.csvToAuroraInterval = csvToAuroraInterval;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getCsvToAuroraMaxRetries}
* @param csvToAuroraMaxRetries the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder csvToAuroraMaxRetries(java.lang.Number csvToAuroraMaxRetries) {
this.csvToAuroraMaxRetries = csvToAuroraMaxRetries;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getDbCluster}
* @param dbCluster DBCluster to import into.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder dbCluster(software.amazon.awscdk.services.rds.IServerlessCluster dbCluster) {
this.dbCluster = dbCluster;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getEnableCloudWatchMetricsAndDashboard}
* @param enableCloudWatchMetricsAndDashboard enable CloudWatch Metrics and Dashboard.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder enableCloudWatchMetricsAndDashboard(java.lang.Boolean enableCloudWatchMetricsAndDashboard) {
this.enableCloudWatchMetricsAndDashboard = enableCloudWatchMetricsAndDashboard;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getInput}
* @param input The JSON input for the execution, same as that of StartExecution.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder input(software.amazon.awscdk.services.stepfunctions.TaskInput input) {
this.input = input;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getLambdaLogLevel}
* @param lambdaLogLevel the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder lambdaLogLevel(java.lang.String lambdaLogLevel) {
this.lambdaLogLevel = lambdaLogLevel;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getLambdaMemory}
* @param lambdaMemory Memory allocated to Lambda function, default 512.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder lambdaMemory(java.lang.Number lambdaMemory) {
this.lambdaMemory = lambdaMemory;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getLambdaSecurityGroup}
* @param lambdaSecurityGroup lambdaSecurity Group for Cluster.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder lambdaSecurityGroup(software.amazon.awscdk.services.ec2.ISecurityGroup lambdaSecurityGroup) {
this.lambdaSecurityGroup = lambdaSecurityGroup;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getLambdaTimeout}
* @param lambdaTimeout Lambda Function Timeout in seconds, default 300.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder lambdaTimeout(java.lang.Number lambdaTimeout) {
this.lambdaTimeout = lambdaTimeout;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getName}
* @param name The name of the execution, same as that of StartExecution.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder name(java.lang.String name) {
this.name = name;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getTextractStateMachineTimeoutMinutes}
* @param textractStateMachineTimeoutMinutes the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder textractStateMachineTimeoutMinutes(java.lang.Number textractStateMachineTimeoutMinutes) {
this.textractStateMachineTimeoutMinutes = textractStateMachineTimeoutMinutes;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getVpc}
* @param vpc VPC to install the database into, optional if dbCluster is passed in.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder vpc(software.amazon.awscdk.services.ec2.IVpc vpc) {
this.vpc = vpc;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getComment}
* @param comment An optional description for this state.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder comment(java.lang.String comment) {
this.comment = comment;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getCredentials}
* @param credentials Credentials for an IAM Role that the State Machine assumes for executing the task.
* This enables cross-account resource invocations.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder credentials(software.amazon.awscdk.services.stepfunctions.Credentials credentials) {
this.credentials = credentials;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getHeartbeat}
* @param heartbeat Timeout for the heartbeat.
* @return {@code this}
* @deprecated use `heartbeatTimeout`
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
public Builder heartbeat(software.amazon.awscdk.Duration heartbeat) {
this.heartbeat = heartbeat;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getHeartbeatTimeout}
* @param heartbeatTimeout Timeout for the heartbeat.
* [disable-awslint:duration-prop-type] is needed because all props interface in
* aws-stepfunctions-tasks extend this interface
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder heartbeatTimeout(software.amazon.awscdk.services.stepfunctions.Timeout heartbeatTimeout) {
this.heartbeatTimeout = heartbeatTimeout;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getInputPath}
* @param inputPath JSONPath expression to select part of the state to be the input to this state.
* May also be the special value JsonPath.DISCARD, which will cause the effective
* input to be the empty object {}.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder inputPath(java.lang.String inputPath) {
this.inputPath = inputPath;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getIntegrationPattern}
* @param integrationPattern AWS Step Functions integrates with services directly in the Amazon States Language.
* You can control these AWS services using service integration patterns
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder integrationPattern(software.amazon.awscdk.services.stepfunctions.IntegrationPattern integrationPattern) {
this.integrationPattern = integrationPattern;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getOutputPath}
* @param outputPath JSONPath expression to select select a portion of the state output to pass to the next state.
* May also be the special value JsonPath.DISCARD, which will cause the effective
* output to be the empty object {}.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder outputPath(java.lang.String outputPath) {
this.outputPath = outputPath;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getResultPath}
* @param resultPath JSONPath expression to indicate where to inject the state's output.
* May also be the special value JsonPath.DISCARD, which will cause the state's
* input to become its output.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder resultPath(java.lang.String resultPath) {
this.resultPath = resultPath;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getResultSelector}
* @param resultSelector The JSON that will replace the state's raw result and become the effective result before ResultPath is applied.
* You can use ResultSelector to create a payload with values that are static
* or selected from the state's raw result.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder resultSelector(java.util.Map resultSelector) {
this.resultSelector = (java.util.Map)resultSelector;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getTaskTimeout}
* @param taskTimeout Timeout for the task.
* [disable-awslint:duration-prop-type] is needed because all props interface in
* aws-stepfunctions-tasks extend this interface
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder taskTimeout(software.amazon.awscdk.services.stepfunctions.Timeout taskTimeout) {
this.taskTimeout = taskTimeout;
return this;
}
/**
* Sets the value of {@link CSVToAuroraTaskProps#getTimeout}
* @param timeout Timeout for the task.
* @return {@code this}
* @deprecated use `taskTimeout`
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
public Builder timeout(software.amazon.awscdk.Duration timeout) {
this.timeout = timeout;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CSVToAuroraTaskProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public CSVToAuroraTaskProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link CSVToAuroraTaskProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CSVToAuroraTaskProps {
private final java.lang.Boolean associateWithParent;
private final software.amazon.awscdk.services.ec2.ISecurityGroup auroraSecurityGroup;
private final java.lang.Number csvToAuroraBackoffRate;
private final java.lang.Number csvToAuroraInterval;
private final java.lang.Number csvToAuroraMaxRetries;
private final software.amazon.awscdk.services.rds.IServerlessCluster dbCluster;
private final java.lang.Boolean enableCloudWatchMetricsAndDashboard;
private final software.amazon.awscdk.services.stepfunctions.TaskInput input;
private final java.lang.String lambdaLogLevel;
private final java.lang.Number lambdaMemory;
private final software.amazon.awscdk.services.ec2.ISecurityGroup lambdaSecurityGroup;
private final java.lang.Number lambdaTimeout;
private final java.lang.String name;
private final java.lang.Number textractStateMachineTimeoutMinutes;
private final software.amazon.awscdk.services.ec2.IVpc vpc;
private final java.lang.String comment;
private final software.amazon.awscdk.services.stepfunctions.Credentials credentials;
private final software.amazon.awscdk.Duration heartbeat;
private final software.amazon.awscdk.services.stepfunctions.Timeout heartbeatTimeout;
private final java.lang.String inputPath;
private final software.amazon.awscdk.services.stepfunctions.IntegrationPattern integrationPattern;
private final java.lang.String outputPath;
private final java.lang.String resultPath;
private final java.util.Map resultSelector;
private final software.amazon.awscdk.services.stepfunctions.Timeout taskTimeout;
private final software.amazon.awscdk.Duration timeout;
/**
* 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.associateWithParent = software.amazon.jsii.Kernel.get(this, "associateWithParent", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.auroraSecurityGroup = software.amazon.jsii.Kernel.get(this, "auroraSecurityGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISecurityGroup.class));
this.csvToAuroraBackoffRate = software.amazon.jsii.Kernel.get(this, "csvToAuroraBackoffRate", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.csvToAuroraInterval = software.amazon.jsii.Kernel.get(this, "csvToAuroraInterval", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.csvToAuroraMaxRetries = software.amazon.jsii.Kernel.get(this, "csvToAuroraMaxRetries", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.dbCluster = software.amazon.jsii.Kernel.get(this, "dbCluster", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.rds.IServerlessCluster.class));
this.enableCloudWatchMetricsAndDashboard = software.amazon.jsii.Kernel.get(this, "enableCloudWatchMetricsAndDashboard", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class));
this.input = software.amazon.jsii.Kernel.get(this, "input", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.stepfunctions.TaskInput.class));
this.lambdaLogLevel = software.amazon.jsii.Kernel.get(this, "lambdaLogLevel", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.lambdaMemory = software.amazon.jsii.Kernel.get(this, "lambdaMemory", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.lambdaSecurityGroup = software.amazon.jsii.Kernel.get(this, "lambdaSecurityGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISecurityGroup.class));
this.lambdaTimeout = software.amazon.jsii.Kernel.get(this, "lambdaTimeout", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.textractStateMachineTimeoutMinutes = software.amazon.jsii.Kernel.get(this, "textractStateMachineTimeoutMinutes", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.vpc = software.amazon.jsii.Kernel.get(this, "vpc", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.IVpc.class));
this.comment = software.amazon.jsii.Kernel.get(this, "comment", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.credentials = software.amazon.jsii.Kernel.get(this, "credentials", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.stepfunctions.Credentials.class));
this.heartbeat = software.amazon.jsii.Kernel.get(this, "heartbeat", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Duration.class));
this.heartbeatTimeout = software.amazon.jsii.Kernel.get(this, "heartbeatTimeout", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.stepfunctions.Timeout.class));
this.inputPath = software.amazon.jsii.Kernel.get(this, "inputPath", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.integrationPattern = software.amazon.jsii.Kernel.get(this, "integrationPattern", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.stepfunctions.IntegrationPattern.class));
this.outputPath = software.amazon.jsii.Kernel.get(this, "outputPath", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.resultPath = software.amazon.jsii.Kernel.get(this, "resultPath", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.resultSelector = software.amazon.jsii.Kernel.get(this, "resultSelector", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)));
this.taskTimeout = software.amazon.jsii.Kernel.get(this, "taskTimeout", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.stepfunctions.Timeout.class));
this.timeout = software.amazon.jsii.Kernel.get(this, "timeout", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Duration.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.associateWithParent = builder.associateWithParent;
this.auroraSecurityGroup = builder.auroraSecurityGroup;
this.csvToAuroraBackoffRate = builder.csvToAuroraBackoffRate;
this.csvToAuroraInterval = builder.csvToAuroraInterval;
this.csvToAuroraMaxRetries = builder.csvToAuroraMaxRetries;
this.dbCluster = builder.dbCluster;
this.enableCloudWatchMetricsAndDashboard = builder.enableCloudWatchMetricsAndDashboard;
this.input = builder.input;
this.lambdaLogLevel = builder.lambdaLogLevel;
this.lambdaMemory = builder.lambdaMemory;
this.lambdaSecurityGroup = builder.lambdaSecurityGroup;
this.lambdaTimeout = builder.lambdaTimeout;
this.name = builder.name;
this.textractStateMachineTimeoutMinutes = builder.textractStateMachineTimeoutMinutes;
this.vpc = builder.vpc;
this.comment = builder.comment;
this.credentials = builder.credentials;
this.heartbeat = builder.heartbeat;
this.heartbeatTimeout = builder.heartbeatTimeout;
this.inputPath = builder.inputPath;
this.integrationPattern = builder.integrationPattern;
this.outputPath = builder.outputPath;
this.resultPath = builder.resultPath;
this.resultSelector = (java.util.Map)builder.resultSelector;
this.taskTimeout = builder.taskTimeout;
this.timeout = builder.timeout;
}
@Override
public final java.lang.Boolean getAssociateWithParent() {
return this.associateWithParent;
}
@Override
public final software.amazon.awscdk.services.ec2.ISecurityGroup getAuroraSecurityGroup() {
return this.auroraSecurityGroup;
}
@Override
public final java.lang.Number getCsvToAuroraBackoffRate() {
return this.csvToAuroraBackoffRate;
}
@Override
public final java.lang.Number getCsvToAuroraInterval() {
return this.csvToAuroraInterval;
}
@Override
public final java.lang.Number getCsvToAuroraMaxRetries() {
return this.csvToAuroraMaxRetries;
}
@Override
public final software.amazon.awscdk.services.rds.IServerlessCluster getDbCluster() {
return this.dbCluster;
}
@Override
public final java.lang.Boolean getEnableCloudWatchMetricsAndDashboard() {
return this.enableCloudWatchMetricsAndDashboard;
}
@Override
public final software.amazon.awscdk.services.stepfunctions.TaskInput getInput() {
return this.input;
}
@Override
public final java.lang.String getLambdaLogLevel() {
return this.lambdaLogLevel;
}
@Override
public final java.lang.Number getLambdaMemory() {
return this.lambdaMemory;
}
@Override
public final software.amazon.awscdk.services.ec2.ISecurityGroup getLambdaSecurityGroup() {
return this.lambdaSecurityGroup;
}
@Override
public final java.lang.Number getLambdaTimeout() {
return this.lambdaTimeout;
}
@Override
public final java.lang.String getName() {
return this.name;
}
@Override
public final java.lang.Number getTextractStateMachineTimeoutMinutes() {
return this.textractStateMachineTimeoutMinutes;
}
@Override
public final software.amazon.awscdk.services.ec2.IVpc getVpc() {
return this.vpc;
}
@Override
public final java.lang.String getComment() {
return this.comment;
}
@Override
public final software.amazon.awscdk.services.stepfunctions.Credentials getCredentials() {
return this.credentials;
}
@Override
public final software.amazon.awscdk.Duration getHeartbeat() {
return this.heartbeat;
}
@Override
public final software.amazon.awscdk.services.stepfunctions.Timeout getHeartbeatTimeout() {
return this.heartbeatTimeout;
}
@Override
public final java.lang.String getInputPath() {
return this.inputPath;
}
@Override
public final software.amazon.awscdk.services.stepfunctions.IntegrationPattern getIntegrationPattern() {
return this.integrationPattern;
}
@Override
public final java.lang.String getOutputPath() {
return this.outputPath;
}
@Override
public final java.lang.String getResultPath() {
return this.resultPath;
}
@Override
public final java.util.Map getResultSelector() {
return this.resultSelector;
}
@Override
public final software.amazon.awscdk.services.stepfunctions.Timeout getTaskTimeout() {
return this.taskTimeout;
}
@Override
public final software.amazon.awscdk.Duration getTimeout() {
return this.timeout;
}
@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.getAssociateWithParent() != null) {
data.set("associateWithParent", om.valueToTree(this.getAssociateWithParent()));
}
if (this.getAuroraSecurityGroup() != null) {
data.set("auroraSecurityGroup", om.valueToTree(this.getAuroraSecurityGroup()));
}
if (this.getCsvToAuroraBackoffRate() != null) {
data.set("csvToAuroraBackoffRate", om.valueToTree(this.getCsvToAuroraBackoffRate()));
}
if (this.getCsvToAuroraInterval() != null) {
data.set("csvToAuroraInterval", om.valueToTree(this.getCsvToAuroraInterval()));
}
if (this.getCsvToAuroraMaxRetries() != null) {
data.set("csvToAuroraMaxRetries", om.valueToTree(this.getCsvToAuroraMaxRetries()));
}
if (this.getDbCluster() != null) {
data.set("dbCluster", om.valueToTree(this.getDbCluster()));
}
if (this.getEnableCloudWatchMetricsAndDashboard() != null) {
data.set("enableCloudWatchMetricsAndDashboard", om.valueToTree(this.getEnableCloudWatchMetricsAndDashboard()));
}
if (this.getInput() != null) {
data.set("input", om.valueToTree(this.getInput()));
}
if (this.getLambdaLogLevel() != null) {
data.set("lambdaLogLevel", om.valueToTree(this.getLambdaLogLevel()));
}
if (this.getLambdaMemory() != null) {
data.set("lambdaMemory", om.valueToTree(this.getLambdaMemory()));
}
if (this.getLambdaSecurityGroup() != null) {
data.set("lambdaSecurityGroup", om.valueToTree(this.getLambdaSecurityGroup()));
}
if (this.getLambdaTimeout() != null) {
data.set("lambdaTimeout", om.valueToTree(this.getLambdaTimeout()));
}
if (this.getName() != null) {
data.set("name", om.valueToTree(this.getName()));
}
if (this.getTextractStateMachineTimeoutMinutes() != null) {
data.set("textractStateMachineTimeoutMinutes", om.valueToTree(this.getTextractStateMachineTimeoutMinutes()));
}
if (this.getVpc() != null) {
data.set("vpc", om.valueToTree(this.getVpc()));
}
if (this.getComment() != null) {
data.set("comment", om.valueToTree(this.getComment()));
}
if (this.getCredentials() != null) {
data.set("credentials", om.valueToTree(this.getCredentials()));
}
if (this.getHeartbeat() != null) {
data.set("heartbeat", om.valueToTree(this.getHeartbeat()));
}
if (this.getHeartbeatTimeout() != null) {
data.set("heartbeatTimeout", om.valueToTree(this.getHeartbeatTimeout()));
}
if (this.getInputPath() != null) {
data.set("inputPath", om.valueToTree(this.getInputPath()));
}
if (this.getIntegrationPattern() != null) {
data.set("integrationPattern", om.valueToTree(this.getIntegrationPattern()));
}
if (this.getOutputPath() != null) {
data.set("outputPath", om.valueToTree(this.getOutputPath()));
}
if (this.getResultPath() != null) {
data.set("resultPath", om.valueToTree(this.getResultPath()));
}
if (this.getResultSelector() != null) {
data.set("resultSelector", om.valueToTree(this.getResultSelector()));
}
if (this.getTaskTimeout() != null) {
data.set("taskTimeout", om.valueToTree(this.getTaskTimeout()));
}
if (this.getTimeout() != null) {
data.set("timeout", om.valueToTree(this.getTimeout()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("amazon-textract-idp-cdk-constructs.CSVToAuroraTaskProps"));
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;
CSVToAuroraTaskProps.Jsii$Proxy that = (CSVToAuroraTaskProps.Jsii$Proxy) o;
if (this.associateWithParent != null ? !this.associateWithParent.equals(that.associateWithParent) : that.associateWithParent != null) return false;
if (this.auroraSecurityGroup != null ? !this.auroraSecurityGroup.equals(that.auroraSecurityGroup) : that.auroraSecurityGroup != null) return false;
if (this.csvToAuroraBackoffRate != null ? !this.csvToAuroraBackoffRate.equals(that.csvToAuroraBackoffRate) : that.csvToAuroraBackoffRate != null) return false;
if (this.csvToAuroraInterval != null ? !this.csvToAuroraInterval.equals(that.csvToAuroraInterval) : that.csvToAuroraInterval != null) return false;
if (this.csvToAuroraMaxRetries != null ? !this.csvToAuroraMaxRetries.equals(that.csvToAuroraMaxRetries) : that.csvToAuroraMaxRetries != null) return false;
if (this.dbCluster != null ? !this.dbCluster.equals(that.dbCluster) : that.dbCluster != null) return false;
if (this.enableCloudWatchMetricsAndDashboard != null ? !this.enableCloudWatchMetricsAndDashboard.equals(that.enableCloudWatchMetricsAndDashboard) : that.enableCloudWatchMetricsAndDashboard != null) return false;
if (this.input != null ? !this.input.equals(that.input) : that.input != null) return false;
if (this.lambdaLogLevel != null ? !this.lambdaLogLevel.equals(that.lambdaLogLevel) : that.lambdaLogLevel != null) return false;
if (this.lambdaMemory != null ? !this.lambdaMemory.equals(that.lambdaMemory) : that.lambdaMemory != null) return false;
if (this.lambdaSecurityGroup != null ? !this.lambdaSecurityGroup.equals(that.lambdaSecurityGroup) : that.lambdaSecurityGroup != null) return false;
if (this.lambdaTimeout != null ? !this.lambdaTimeout.equals(that.lambdaTimeout) : that.lambdaTimeout != null) return false;
if (this.name != null ? !this.name.equals(that.name) : that.name != null) return false;
if (this.textractStateMachineTimeoutMinutes != null ? !this.textractStateMachineTimeoutMinutes.equals(that.textractStateMachineTimeoutMinutes) : that.textractStateMachineTimeoutMinutes != null) return false;
if (this.vpc != null ? !this.vpc.equals(that.vpc) : that.vpc != null) return false;
if (this.comment != null ? !this.comment.equals(that.comment) : that.comment != null) return false;
if (this.credentials != null ? !this.credentials.equals(that.credentials) : that.credentials != null) return false;
if (this.heartbeat != null ? !this.heartbeat.equals(that.heartbeat) : that.heartbeat != null) return false;
if (this.heartbeatTimeout != null ? !this.heartbeatTimeout.equals(that.heartbeatTimeout) : that.heartbeatTimeout != null) return false;
if (this.inputPath != null ? !this.inputPath.equals(that.inputPath) : that.inputPath != null) return false;
if (this.integrationPattern != null ? !this.integrationPattern.equals(that.integrationPattern) : that.integrationPattern != null) return false;
if (this.outputPath != null ? !this.outputPath.equals(that.outputPath) : that.outputPath != null) return false;
if (this.resultPath != null ? !this.resultPath.equals(that.resultPath) : that.resultPath != null) return false;
if (this.resultSelector != null ? !this.resultSelector.equals(that.resultSelector) : that.resultSelector != null) return false;
if (this.taskTimeout != null ? !this.taskTimeout.equals(that.taskTimeout) : that.taskTimeout != null) return false;
return this.timeout != null ? this.timeout.equals(that.timeout) : that.timeout == null;
}
@Override
public final int hashCode() {
int result = this.associateWithParent != null ? this.associateWithParent.hashCode() : 0;
result = 31 * result + (this.auroraSecurityGroup != null ? this.auroraSecurityGroup.hashCode() : 0);
result = 31 * result + (this.csvToAuroraBackoffRate != null ? this.csvToAuroraBackoffRate.hashCode() : 0);
result = 31 * result + (this.csvToAuroraInterval != null ? this.csvToAuroraInterval.hashCode() : 0);
result = 31 * result + (this.csvToAuroraMaxRetries != null ? this.csvToAuroraMaxRetries.hashCode() : 0);
result = 31 * result + (this.dbCluster != null ? this.dbCluster.hashCode() : 0);
result = 31 * result + (this.enableCloudWatchMetricsAndDashboard != null ? this.enableCloudWatchMetricsAndDashboard.hashCode() : 0);
result = 31 * result + (this.input != null ? this.input.hashCode() : 0);
result = 31 * result + (this.lambdaLogLevel != null ? this.lambdaLogLevel.hashCode() : 0);
result = 31 * result + (this.lambdaMemory != null ? this.lambdaMemory.hashCode() : 0);
result = 31 * result + (this.lambdaSecurityGroup != null ? this.lambdaSecurityGroup.hashCode() : 0);
result = 31 * result + (this.lambdaTimeout != null ? this.lambdaTimeout.hashCode() : 0);
result = 31 * result + (this.name != null ? this.name.hashCode() : 0);
result = 31 * result + (this.textractStateMachineTimeoutMinutes != null ? this.textractStateMachineTimeoutMinutes.hashCode() : 0);
result = 31 * result + (this.vpc != null ? this.vpc.hashCode() : 0);
result = 31 * result + (this.comment != null ? this.comment.hashCode() : 0);
result = 31 * result + (this.credentials != null ? this.credentials.hashCode() : 0);
result = 31 * result + (this.heartbeat != null ? this.heartbeat.hashCode() : 0);
result = 31 * result + (this.heartbeatTimeout != null ? this.heartbeatTimeout.hashCode() : 0);
result = 31 * result + (this.inputPath != null ? this.inputPath.hashCode() : 0);
result = 31 * result + (this.integrationPattern != null ? this.integrationPattern.hashCode() : 0);
result = 31 * result + (this.outputPath != null ? this.outputPath.hashCode() : 0);
result = 31 * result + (this.resultPath != null ? this.resultPath.hashCode() : 0);
result = 31 * result + (this.resultSelector != null ? this.resultSelector.hashCode() : 0);
result = 31 * result + (this.taskTimeout != null ? this.taskTimeout.hashCode() : 0);
result = 31 * result + (this.timeout != null ? this.timeout.hashCode() : 0);
return result;
}
}
}