You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::SimpleDB::Types::UpdateCondition

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

Overview

Note:

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

{
  name: "String",
  value: "String",
  exists: false,
}

Specifies the conditions under which data should be updated. If an update condition is specified for a request, the data will only be updated if the condition is satisfied. For example, if an attribute with a specific name and value exists, or if a specific attribute doesn't exist.

Instance Attribute Summary collapse

Instance Attribute Details

#existsBoolean

A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true if the attribute must exist for the update condition to be satisfied. Specify false if the attribute should not exist in order for the update condition to be satisfied.

Returns:

  • (Boolean)


556
557
558
559
560
561
# File 'gems/aws-sdk-simpledb/lib/aws-sdk-simpledb/types.rb', line 556

class UpdateCondition < Struct.new(
  :name,
  :value,
  :exists)
  include Aws::Structure
end

#nameString

The name of the attribute involved in the condition.

Returns:

  • (String)


556
557
558
559
560
561
# File 'gems/aws-sdk-simpledb/lib/aws-sdk-simpledb/types.rb', line 556

class UpdateCondition < Struct.new(
  :name,
  :value,
  :exists)
  include Aws::Structure
end

#valueString

The value of an attribute. This value can only be specified when the Exists parameter is equal to true.

Returns:

  • (String)


556
557
558
559
560
561
# File 'gems/aws-sdk-simpledb/lib/aws-sdk-simpledb/types.rb', line 556

class UpdateCondition < Struct.new(
  :name,
  :value,
  :exists)
  include Aws::Structure
end