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

software.amazon.textract.idp.SpacySfnTaskProps Maven / Gradle / Ivy

There is a newer version: 0.0.43
Show newest version
package software.amazon.textract.idp;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.90.0 (build d6bdb4d)", date = "2023-10-26T15:43:30.326Z")
@software.amazon.jsii.Jsii(module = software.amazon.textract.idp.$Module.class, fqn = "amazon-textract-idp-cdk-constructs.SpacySfnTaskProps")
@software.amazon.jsii.Jsii.Proxy(SpacySfnTaskProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface SpacySfnTaskProps 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; } /** * Docker Container (to use in DockerImageCode.from_ecr() call). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.lambda.IFunction getDockerImageFunction() { 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; } /** * log level for Lambda function, supports DEBUG|INFO|WARNING|ERROR|FATAL. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getLambdaLogLevel() { 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; } /** * ECR Container URI for Spacy classification. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getSpacyImageEcrRepository() { return null; } /** * memorySize for Lambda function calling Spacy NLP, default is 4096 MB. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Number getSpacyLambdaMemorySize() { return null; } /** * timeout for Lambda function calling Spacy NLP, default is 900 seconds. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Number getSpacyLambdaTimeout() { return null; } /** * how long can we wait for the process (default is 48 hours (60*48=2880)). */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Number getTextractStateMachineTimeoutMinutes() { return null; } /** * @return a {@link Builder} of {@link SpacySfnTaskProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link SpacySfnTaskProps} */ @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.lambda.IFunction dockerImageFunction; software.amazon.awscdk.services.stepfunctions.TaskInput input; java.lang.String lambdaLogLevel; java.lang.String name; java.lang.String spacyImageEcrRepository; java.lang.Number spacyLambdaMemorySize; java.lang.Number spacyLambdaTimeout; java.lang.Number textractStateMachineTimeoutMinutes; 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 SpacySfnTaskProps#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 SpacySfnTaskProps#getDockerImageFunction} * @param dockerImageFunction Docker Container (to use in DockerImageCode.from_ecr() call). * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder dockerImageFunction(software.amazon.awscdk.services.lambda.IFunction dockerImageFunction) { this.dockerImageFunction = dockerImageFunction; return this; } /** * Sets the value of {@link SpacySfnTaskProps#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 SpacySfnTaskProps#getLambdaLogLevel} * @param lambdaLogLevel log level for Lambda function, supports DEBUG|INFO|WARNING|ERROR|FATAL. * @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 SpacySfnTaskProps#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 SpacySfnTaskProps#getSpacyImageEcrRepository} * @param spacyImageEcrRepository ECR Container URI for Spacy classification. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder spacyImageEcrRepository(java.lang.String spacyImageEcrRepository) { this.spacyImageEcrRepository = spacyImageEcrRepository; return this; } /** * Sets the value of {@link SpacySfnTaskProps#getSpacyLambdaMemorySize} * @param spacyLambdaMemorySize memorySize for Lambda function calling Spacy NLP, default is 4096 MB. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder spacyLambdaMemorySize(java.lang.Number spacyLambdaMemorySize) { this.spacyLambdaMemorySize = spacyLambdaMemorySize; return this; } /** * Sets the value of {@link SpacySfnTaskProps#getSpacyLambdaTimeout} * @param spacyLambdaTimeout timeout for Lambda function calling Spacy NLP, default is 900 seconds. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder spacyLambdaTimeout(java.lang.Number spacyLambdaTimeout) { this.spacyLambdaTimeout = spacyLambdaTimeout; return this; } /** * Sets the value of {@link SpacySfnTaskProps#getTextractStateMachineTimeoutMinutes} * @param textractStateMachineTimeoutMinutes how long can we wait for the process (default is 48 hours (60*48=2880)). * @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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps#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 SpacySfnTaskProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public SpacySfnTaskProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link SpacySfnTaskProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SpacySfnTaskProps { private final java.lang.Boolean associateWithParent; private final software.amazon.awscdk.services.lambda.IFunction dockerImageFunction; private final software.amazon.awscdk.services.stepfunctions.TaskInput input; private final java.lang.String lambdaLogLevel; private final java.lang.String name; private final java.lang.String spacyImageEcrRepository; private final java.lang.Number spacyLambdaMemorySize; private final java.lang.Number spacyLambdaTimeout; private final java.lang.Number textractStateMachineTimeoutMinutes; 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.dockerImageFunction = software.amazon.jsii.Kernel.get(this, "dockerImageFunction", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.lambda.IFunction.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.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.spacyImageEcrRepository = software.amazon.jsii.Kernel.get(this, "spacyImageEcrRepository", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.spacyLambdaMemorySize = software.amazon.jsii.Kernel.get(this, "spacyLambdaMemorySize", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.spacyLambdaTimeout = software.amazon.jsii.Kernel.get(this, "spacyLambdaTimeout", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.textractStateMachineTimeoutMinutes = software.amazon.jsii.Kernel.get(this, "textractStateMachineTimeoutMinutes", software.amazon.jsii.NativeType.forClass(java.lang.Number.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.dockerImageFunction = builder.dockerImageFunction; this.input = builder.input; this.lambdaLogLevel = builder.lambdaLogLevel; this.name = builder.name; this.spacyImageEcrRepository = builder.spacyImageEcrRepository; this.spacyLambdaMemorySize = builder.spacyLambdaMemorySize; this.spacyLambdaTimeout = builder.spacyLambdaTimeout; this.textractStateMachineTimeoutMinutes = builder.textractStateMachineTimeoutMinutes; 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.lambda.IFunction getDockerImageFunction() { return this.dockerImageFunction; } @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.String getName() { return this.name; } @Override public final java.lang.String getSpacyImageEcrRepository() { return this.spacyImageEcrRepository; } @Override public final java.lang.Number getSpacyLambdaMemorySize() { return this.spacyLambdaMemorySize; } @Override public final java.lang.Number getSpacyLambdaTimeout() { return this.spacyLambdaTimeout; } @Override public final java.lang.Number getTextractStateMachineTimeoutMinutes() { return this.textractStateMachineTimeoutMinutes; } @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.getDockerImageFunction() != null) { data.set("dockerImageFunction", om.valueToTree(this.getDockerImageFunction())); } if (this.getInput() != null) { data.set("input", om.valueToTree(this.getInput())); } if (this.getLambdaLogLevel() != null) { data.set("lambdaLogLevel", om.valueToTree(this.getLambdaLogLevel())); } if (this.getName() != null) { data.set("name", om.valueToTree(this.getName())); } if (this.getSpacyImageEcrRepository() != null) { data.set("spacyImageEcrRepository", om.valueToTree(this.getSpacyImageEcrRepository())); } if (this.getSpacyLambdaMemorySize() != null) { data.set("spacyLambdaMemorySize", om.valueToTree(this.getSpacyLambdaMemorySize())); } if (this.getSpacyLambdaTimeout() != null) { data.set("spacyLambdaTimeout", om.valueToTree(this.getSpacyLambdaTimeout())); } if (this.getTextractStateMachineTimeoutMinutes() != null) { data.set("textractStateMachineTimeoutMinutes", om.valueToTree(this.getTextractStateMachineTimeoutMinutes())); } 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.SpacySfnTaskProps")); 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; SpacySfnTaskProps.Jsii$Proxy that = (SpacySfnTaskProps.Jsii$Proxy) o; if (this.associateWithParent != null ? !this.associateWithParent.equals(that.associateWithParent) : that.associateWithParent != null) return false; if (this.dockerImageFunction != null ? !this.dockerImageFunction.equals(that.dockerImageFunction) : that.dockerImageFunction != 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.name != null ? !this.name.equals(that.name) : that.name != null) return false; if (this.spacyImageEcrRepository != null ? !this.spacyImageEcrRepository.equals(that.spacyImageEcrRepository) : that.spacyImageEcrRepository != null) return false; if (this.spacyLambdaMemorySize != null ? !this.spacyLambdaMemorySize.equals(that.spacyLambdaMemorySize) : that.spacyLambdaMemorySize != null) return false; if (this.spacyLambdaTimeout != null ? !this.spacyLambdaTimeout.equals(that.spacyLambdaTimeout) : that.spacyLambdaTimeout != null) return false; if (this.textractStateMachineTimeoutMinutes != null ? !this.textractStateMachineTimeoutMinutes.equals(that.textractStateMachineTimeoutMinutes) : that.textractStateMachineTimeoutMinutes != 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.dockerImageFunction != null ? this.dockerImageFunction.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.name != null ? this.name.hashCode() : 0); result = 31 * result + (this.spacyImageEcrRepository != null ? this.spacyImageEcrRepository.hashCode() : 0); result = 31 * result + (this.spacyLambdaMemorySize != null ? this.spacyLambdaMemorySize.hashCode() : 0); result = 31 * result + (this.spacyLambdaTimeout != null ? this.spacyLambdaTimeout.hashCode() : 0); result = 31 * result + (this.textractStateMachineTimeoutMinutes != null ? this.textractStateMachineTimeoutMinutes.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; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy