Class: Aws::AmplifyUIBuilder::Types::Predicate

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb

Overview

Note:

When making an API call, you may pass Predicate data as a hash:

{
  and: [
    {
      and: {
        # recursive PredicateList
      },
      field: "String",
      operand: "String",
      operator: "String",
      or: {
        # recursive PredicateList
      },
    },
  ],
  field: "String",
  operand: "String",
  operator: "String",
  or: [
    {
      and: {
        # recursive PredicateList
      },
      field: "String",
      operand: "String",
      operator: "String",
      or: {
        # recursive PredicateList
      },
    },
  ],
}

Stores information for generating Amplify DataStore queries. Use a Predicate to retrieve a subset of the data in a collection.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#andArray<Types::Predicate>

A list of predicates to combine logically.

Returns:



5258
5259
5260
5261
5262
5263
5264
5265
5266
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 5258

class Predicate < Struct.new(
  :and,
  :field,
  :operand,
  :operator,
  :or)
  SENSITIVE = []
  include Aws::Structure
end

#fieldString

The field to query.

Returns:

  • (String)


5258
5259
5260
5261
5262
5263
5264
5265
5266
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 5258

class Predicate < Struct.new(
  :and,
  :field,
  :operand,
  :operator,
  :or)
  SENSITIVE = []
  include Aws::Structure
end

#operandString

The value to use when performing the evaluation.

Returns:

  • (String)


5258
5259
5260
5261
5262
5263
5264
5265
5266
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 5258

class Predicate < Struct.new(
  :and,
  :field,
  :operand,
  :operator,
  :or)
  SENSITIVE = []
  include Aws::Structure
end

#operatorString

The operator to use to perform the evaluation.

Returns:

  • (String)


5258
5259
5260
5261
5262
5263
5264
5265
5266
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 5258

class Predicate < Struct.new(
  :and,
  :field,
  :operand,
  :operator,
  :or)
  SENSITIVE = []
  include Aws::Structure
end

#orArray<Types::Predicate>

A list of predicates to combine logically.

Returns:



5258
5259
5260
5261
5262
5263
5264
5265
5266
# File 'gems/aws-sdk-amplifyuibuilder/lib/aws-sdk-amplifyuibuilder/types.rb', line 5258

class Predicate < Struct.new(
  :and,
  :field,
  :operand,
  :operator,
  :or)
  SENSITIVE = []
  include Aws::Structure
end