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

io.github.cdklabs.cdk.appflow.Validation Maven / Gradle / Ivy

The newest version!
package io.github.cdklabs.cdk.appflow;

/**
 * (experimental) A representation of a validation operation, that is an operation testing records and acting on the test results.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-23T07:35:38.292Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.appflow.$Module.class, fqn = "@cdklabs/cdk-appflow.Validation")
public class Validation extends io.github.cdklabs.cdk.appflow.OperationBase implements io.github.cdklabs.cdk.appflow.IValidation {

    protected Validation(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected Validation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param condition This parameter is required.
     * @param action This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    protected Validation(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ValidationCondition condition, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ValidationAction action) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(condition, "condition is required"), java.util.Objects.requireNonNull(action, "action is required") });
    }

    /**
     * @return a Validation instance
     * @see ValidationAction for the validation
     * @param condition a. This parameter is required.
     * @param action a. This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public static @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.IValidation when(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ValidationCondition condition, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ValidationAction action) {
        return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Validation.class, "when", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.IValidation.class), new Object[] { java.util.Objects.requireNonNull(condition, "condition is required"), java.util.Objects.requireNonNull(action, "action is required") });
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ValidationAction getAction() {
        return software.amazon.jsii.Kernel.get(this, "action", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.ValidationAction.class));
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ValidationCondition getCondition() {
        return software.amazon.jsii.Kernel.get(this, "condition", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.ValidationCondition.class));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy