software.amazon.awscdk.services.appsync.KeyCondition Maven / Gradle / Ivy
Show all versions of appsync Show documentation
package software.amazon.awscdk.services.appsync;
/**
* (experimental) Factory class for DynamoDB key conditions.
*
* Example:
*
*
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import software.amazon.awscdk.services.appsync.*;
* KeyCondition keyCondition = KeyCondition.beginsWith("keyName", "arg");
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.72.0 (build 4b8828b)", date = "2023-01-03T16:22:41.845Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.appsync.$Module.class, fqn = "@aws-cdk/aws-appsync.KeyCondition")
public class KeyCondition extends software.amazon.jsii.JsiiObject {
protected KeyCondition(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected KeyCondition(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* (experimental) Condition (k, arg).
*
* True if the key attribute k begins with the Query argument.
*
* @param keyName This parameter is required.
* @param arg This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition beginsWith(final @org.jetbrains.annotations.NotNull java.lang.String keyName, final @org.jetbrains.annotations.NotNull java.lang.String arg) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.appsync.KeyCondition.class, "beginsWith", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.KeyCondition.class), new Object[] { java.util.Objects.requireNonNull(keyName, "keyName is required"), java.util.Objects.requireNonNull(arg, "arg is required") });
}
/**
* (experimental) Condition k BETWEEN arg1 AND arg2, true if k >= arg1 and k <= arg2.
*
* @param keyName This parameter is required.
* @param arg1 This parameter is required.
* @param arg2 This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition between(final @org.jetbrains.annotations.NotNull java.lang.String keyName, final @org.jetbrains.annotations.NotNull java.lang.String arg1, final @org.jetbrains.annotations.NotNull java.lang.String arg2) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.appsync.KeyCondition.class, "between", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.KeyCondition.class), new Object[] { java.util.Objects.requireNonNull(keyName, "keyName is required"), java.util.Objects.requireNonNull(arg1, "arg1 is required"), java.util.Objects.requireNonNull(arg2, "arg2 is required") });
}
/**
* (experimental) Condition k = arg, true if the key attribute k is equal to the Query argument.
*
* @param keyName This parameter is required.
* @param arg This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition eq(final @org.jetbrains.annotations.NotNull java.lang.String keyName, final @org.jetbrains.annotations.NotNull java.lang.String arg) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.appsync.KeyCondition.class, "eq", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.KeyCondition.class), new Object[] { java.util.Objects.requireNonNull(keyName, "keyName is required"), java.util.Objects.requireNonNull(arg, "arg is required") });
}
/**
* (experimental) Condition k >= arg, true if the key attribute k is greater or equal to the Query argument.
*
* @param keyName This parameter is required.
* @param arg This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition ge(final @org.jetbrains.annotations.NotNull java.lang.String keyName, final @org.jetbrains.annotations.NotNull java.lang.String arg) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.appsync.KeyCondition.class, "ge", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.KeyCondition.class), new Object[] { java.util.Objects.requireNonNull(keyName, "keyName is required"), java.util.Objects.requireNonNull(arg, "arg is required") });
}
/**
* (experimental) Condition k > arg, true if the key attribute k is greater than the the Query argument.
*
* @param keyName This parameter is required.
* @param arg This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition gt(final @org.jetbrains.annotations.NotNull java.lang.String keyName, final @org.jetbrains.annotations.NotNull java.lang.String arg) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.appsync.KeyCondition.class, "gt", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.KeyCondition.class), new Object[] { java.util.Objects.requireNonNull(keyName, "keyName is required"), java.util.Objects.requireNonNull(arg, "arg is required") });
}
/**
* (experimental) Condition k <= arg, true if the key attribute k is less than or equal to the Query argument.
*
* @param keyName This parameter is required.
* @param arg This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition le(final @org.jetbrains.annotations.NotNull java.lang.String keyName, final @org.jetbrains.annotations.NotNull java.lang.String arg) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.appsync.KeyCondition.class, "le", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.KeyCondition.class), new Object[] { java.util.Objects.requireNonNull(keyName, "keyName is required"), java.util.Objects.requireNonNull(arg, "arg is required") });
}
/**
* (experimental) Condition k < arg, true if the key attribute k is less than the Query argument.
*
* @param keyName This parameter is required.
* @param arg This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition lt(final @org.jetbrains.annotations.NotNull java.lang.String keyName, final @org.jetbrains.annotations.NotNull java.lang.String arg) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.appsync.KeyCondition.class, "lt", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.KeyCondition.class), new Object[] { java.util.Objects.requireNonNull(keyName, "keyName is required"), java.util.Objects.requireNonNull(arg, "arg is required") });
}
/**
* (experimental) Conjunction between two conditions.
*
* @param keyCond This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition and(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appsync.KeyCondition keyCond) {
return software.amazon.jsii.Kernel.call(this, "and", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appsync.KeyCondition.class), new Object[] { java.util.Objects.requireNonNull(keyCond, "keyCond is required") });
}
/**
* (experimental) Renders the key condition to a VTL string.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull java.lang.String renderTemplate() {
return software.amazon.jsii.Kernel.call(this, "renderTemplate", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
}