Interface CfnComponent.PredicateProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnComponent.PredicateProperty.Jsii$Proxy
Enclosing class:
CfnComponent

@Stability(Stable) public static interface CfnComponent.PredicateProperty extends software.amazon.jsii.JsiiSerializable
The Predicate property specifies information for generating Amplify DataStore queries.

Use Predicate to retrieve a subset of the data in a collection.

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.amplifyuibuilder.*;
 PredicateProperty predicateProperty_;
 PredicateProperty predicateProperty = PredicateProperty.builder()
         .and(List.of(PredicateProperty.builder()
                 .and(List.of(predicateProperty_))
                 .field("field")
                 .operand("operand")
                 .operator("operator")
                 .or(List.of(predicateProperty_))
                 .build()))
         .field("field")
         .operand("operand")
         .operator("operator")
         .or(List.of(PredicateProperty.builder()
                 .and(List.of(predicateProperty_))
                 .field("field")
                 .operand("operand")
                 .operator("operator")
                 .or(List.of(predicateProperty_))
                 .build()))
         .build();
 
  • Method Details

    • getAnd

      @Stability(Stable) @Nullable default Object getAnd()
      A list of predicates to combine logically.
    • getField

      @Stability(Stable) @Nullable default String getField()
      The field to query.
    • getOperand

      @Stability(Stable) @Nullable default String getOperand()
      The value to use when performing the evaluation.
    • getOperator

      @Stability(Stable) @Nullable default String getOperator()
      The operator to use to perform the evaluation.
    • getOr

      @Stability(Stable) @Nullable default Object getOr()
      A list of predicates to combine logically.
    • builder

      @Stability(Stable) static CfnComponent.PredicateProperty.Builder builder()
      Returns:
      a CfnComponent.PredicateProperty.Builder of CfnComponent.PredicateProperty