AWSDynamoDBObjectMapperSaveBehavior
Objective-C
enum AWSDynamoDBObjectMapperSaveBehavior : NSInteger {}
Swift
enum AWSDynamoDBObjectMapperSaveBehavior : Int, @unchecked Sendable
Enumeration of behaviors for the save operation.
-
Unknown SaveBehavior.
Declaration
Objective-C
AWSDynamoDBObjectMapperSaveBehaviorUnknownSwift
case unknown = 0 -
AWSDynamoDBObjectMapperSaveBehaviorUpdatewill not affect unmodeled attributes on a save operation and a nil value for the modeled attribute will remove it from that item in DynamoDB. By default, the mapper usesAWSDynamoDBObjectMapperSaveBehaviorUpdate.Declaration
Objective-C
AWSDynamoDBObjectMapperSaveBehaviorUpdateSwift
case update = 1 -
AWSDynamoDBObjectMapperSaveBehaviorUpdateSkipNullAttributesis similar toAWSDynamoDBObjectMapperSaveBehaviorUpdate, except that it ignores any null value attribute(s) and will NOT remove them from that item in DynamoDB. It also guarantees to send only one single updateItem request, no matter the object is key-only or not.Declaration
Objective-C
AWSDynamoDBObjectMapperSaveBehaviorUpdateSkipNullAttributesSwift
case updateSkipNullAttributes = 2 -
AWSDynamoDBObjectMapperSaveBehaviorAppendSettreats scalar attributes (String, Number, Binary) the same asAWSDynamoDBObjectMapperSaveBehaviorUpdateSkipNullAttributesdoes. However, for set attributes, it will append to the existing attribute value, instead of overriding it. Caller needs to make sure that the modeled attribute type matches the existing set type, otherwise it would result in a service exception.Declaration
Objective-C
AWSDynamoDBObjectMapperSaveBehaviorAppendSetSwift
case appendSet = 3 -
AWSDynamoDBObjectMapperSaveBehaviorClobberwill clear and replace all attributes, included unmodeled ones, (delete and recreate) on save. Versioned field constraints will also be disregarded.Declaration
Objective-C
AWSDynamoDBObjectMapperSaveBehaviorClobberSwift
case clobber = 4
View on GitHub
Install in Dash
AWSDynamoDBObjectMapperSaveBehavior Enumeration Reference