io.github.cdklabs.cdk.appflow.Mapping Maven / Gradle / Ivy
package io.github.cdklabs.cdk.appflow;
/**
* (experimental) A representation of an instance of a mapping operation, that is an operation translating source to destination fields.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-23T07:35:38.252Z")
@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.Mapping")
public class Mapping extends io.github.cdklabs.cdk.appflow.OperationBase implements io.github.cdklabs.cdk.appflow.IMapping {
protected Mapping(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected Mapping(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param tasks This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Mapping(final @org.jetbrains.annotations.NotNull java.util.List tasks) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(tasks, "tasks is required") });
}
/**
* (experimental) Specifies an addition mapping of two numeric values from asource to a destination.
*
* @return an IMapping instance
* @param sourceField1 a numeric value. This parameter is required.
* @param sourceField2 a numeric value. This parameter is required.
* @param to a numeric value. 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.Mapping add(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field sourceField1, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field sourceField2, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field to) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Mapping.class, "add", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.Mapping.class), new Object[] { java.util.Objects.requireNonNull(sourceField1, "sourceField1 is required"), java.util.Objects.requireNonNull(sourceField2, "sourceField2 is required"), java.util.Objects.requireNonNull(to, "to is required") });
}
/**
* (experimental) A mapping definition building concatenation of source fields into a destination field.
*
* @return a mapping instance with concatenation definition
* @param from an array of source fields. This parameter is required.
* @param to a desintation field. This parameter is required.
* @param format a format. 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.Mapping concat(final @org.jetbrains.annotations.NotNull java.util.List extends io.github.cdklabs.cdk.appflow.Field> from, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field to, final @org.jetbrains.annotations.NotNull java.lang.String format) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Mapping.class, "concat", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.Mapping.class), new Object[] { java.util.Objects.requireNonNull(from, "from is required"), java.util.Objects.requireNonNull(to, "to is required"), java.util.Objects.requireNonNull(format, "format is required") });
}
/**
* (experimental) Specifies a division mapping of two numeric values from a source to a destination.
*
* @return an IMapping instance
* @param sourceField1 a numeric value. This parameter is required.
* @param sourceField2 a numeric value. This parameter is required.
* @param to a numeric value. 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.Mapping divide(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field sourceField1, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field sourceField2, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field to) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Mapping.class, "divide", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.Mapping.class), new Object[] { java.util.Objects.requireNonNull(sourceField1, "sourceField1 is required"), java.util.Objects.requireNonNull(sourceField2, "sourceField2 is required"), java.util.Objects.requireNonNull(to, "to is required") });
}
/**
* @param from This parameter is required.
* @param to 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.IMapping map(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field from, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field to) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Mapping.class, "map", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.IMapping.class), new Object[] { java.util.Objects.requireNonNull(from, "from is required"), java.util.Objects.requireNonNull(to, "to is required") });
}
/**
* @param config
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.IMapping mapAll(final @org.jetbrains.annotations.Nullable io.github.cdklabs.cdk.appflow.MapAllConfig config) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Mapping.class, "mapAll", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.IMapping.class), new Object[] { config });
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.IMapping mapAll() {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Mapping.class, "mapAll", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.IMapping.class));
}
/**
* (experimental) Specifies a multiplication mapping of two numeric values from a source to a destination.
*
* @return an IMapping instance
* @param sourceField1 a numeric value. This parameter is required.
* @param sourceField2 a numeric value. This parameter is required.
* @param to a numeric value. 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.Mapping multiply(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field sourceField1, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field sourceField2, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field to) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Mapping.class, "multiply", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.Mapping.class), new Object[] { java.util.Objects.requireNonNull(sourceField1, "sourceField1 is required"), java.util.Objects.requireNonNull(sourceField2, "sourceField2 is required"), java.util.Objects.requireNonNull(to, "to is required") });
}
/**
* (experimental) Specifies a subtraction mapping of two numeric values from a source to a destination.
*
* @return an IMapping instance
* @param sourceField1 a numeric value. This parameter is required.
* @param sourceField2 a numeric value. This parameter is required.
* @param to a numeric value. 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.Mapping subtract(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field sourceField1, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field sourceField2, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.Field to) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.Mapping.class, "subtract", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.Mapping.class), new Object[] { java.util.Objects.requireNonNull(sourceField1, "sourceField1 is required"), java.util.Objects.requireNonNull(sourceField2, "sourceField2 is required"), java.util.Objects.requireNonNull(to, "to is required") });
}
}