forked from svdgraaf/aws-sdk-arduino
-
Notifications
You must be signed in to change notification settings - Fork 4
/
AmazonDynamoDBClient.h
1298 lines (1235 loc) · 67.3 KB
/
AmazonDynamoDBClient.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#ifndef AMAZONDYNAMODBCLIENT_H_
#define AMAZONDYNAMODBCLIENT_H_
#include "AWSFoundationalTypes.h"
#include "AWSClient.h"
enum ReturnValue{
NONE_RETURNVALUE,
ALL_OLD_RETURNVALUE,
UPDATED_OLD_RETURNVALUE,
ALL_NEW_RETURNVALUE,
UPDATED_NEW_RETURNVALUE
};
enum ConditionalOperator{
AND_CONDITIONALOPERATOR,
OR_CONDITIONALOPERATOR
};
enum TableStatus{
CREATING_TABLESTATUS,
UPDATING_TABLESTATUS,
DELETING_TABLESTATUS,
ACTIVE_TABLESTATUS
};
/* <p>If set to <code>TOTAL</code>, the response includes <i>ConsumedCapacity</i> data for tables and indexes. If set to <code>INDEXES</code>, the response includes <i>ConsumedCapacity</i> for indexes. If set to <code>NONE</code> (the default), <i>ConsumedCapacity</i> is not included in the response.</p> */
enum ReturnConsumedCapacity{
INDEXES_RETURNCONSUMEDCAPACITY,
TOTAL_RETURNCONSUMEDCAPACITY,
NONE_RETURNCONSUMEDCAPACITY
};
enum ProjectionType{
ALL_PROJECTIONTYPE,
KEYS_ONLY_PROJECTIONTYPE,
INCLUDE_PROJECTIONTYPE
};
enum ComparisonOperator{
EQ_COMPARISONOPERATOR,
NE_COMPARISONOPERATOR,
IN_COMPARISONOPERATOR,
LE_COMPARISONOPERATOR,
LT_COMPARISONOPERATOR,
GE_COMPARISONOPERATOR,
GT_COMPARISONOPERATOR,
BETWEEN_COMPARISONOPERATOR,
NOT_NULL_COMPARISONOPERATOR,
NULL_COMPARISONOPERATOR,
CONTAINS_COMPARISONOPERATOR,
NOT_CONTAINS_COMPARISONOPERATOR,
BEGINS_WITH_COMPARISONOPERATOR
};
enum ReturnItemCollectionMetrics{
SIZE_RETURNITEMCOLLECTIONMETRICS,
NONE_RETURNITEMCOLLECTIONMETRICS
};
enum ScalarAttributeType{
S_SCALARATTRIBUTETYPE,
N_SCALARATTRIBUTETYPE,
B_SCALARATTRIBUTETYPE
};
enum IndexStatus{
CREATING_INDEXSTATUS,
UPDATING_INDEXSTATUS,
DELETING_INDEXSTATUS,
ACTIVE_INDEXSTATUS
};
enum Select{
ALL_ATTRIBUTES_SELECT,
ALL_PROJECTED_ATTRIBUTES_SELECT,
SPECIFIC_ATTRIBUTES_SELECT,
COUNT_SELECT
};
enum KeyType{
HASH_KEYTYPE,
RANGE_KEYTYPE
};
enum AttributeAction{
ADD_ATTRIBUTEACTION,
PUT_ATTRIBUTEACTION,
DELETE_ATTRIBUTEACTION
};
/* <p>Represents <i>a single element</i> of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.</p><p>A <i>KeySchemaElement</i> represents exactly one attribute of the primary key. For example, a hash type primary key would be represented by one <i>KeySchemaElement</i>. A hash-and-range type primary key would require one <i>KeySchemaElement</i> for the hash attribute, and another <i>KeySchemaElement</i> for the range attribute.</p> */
class KeySchemaElement{
KeyType keyType;
MinimalString attributeName;
bool keyTypeBeenSet;
bool attributeNameBeenSet;
void reset();
public:
KeySchemaElement();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setKeyType(KeyType keyType);
void setAttributeName(MinimalString attributeName);
KeyType getKeyType() const;
MinimalString getAttributeName() const;
};
/* <p>Represents attributes that are copied (projected) from the table into an index. These are in addition to the primary key attributes and index key attributes, which are automatically projected.</p> */
class Projection{
ProjectionType projectionType;
MinimalList<MinimalString > nonKeyAttributes;
bool projectionTypeBeenSet;
bool nonKeyAttributesBeenSet;
void reset();
public:
Projection();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setProjectionType(ProjectionType projectionType);
void setNonKeyAttributes(MinimalList<MinimalString > nonKeyAttributes);
ProjectionType getProjectionType() const;
MinimalList<MinimalString > getNonKeyAttributes() const;
};
/* <p>Represents the provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.</p> */
class ProvisionedThroughputDescription{
long writeCapacityUnits;
long numberOfDecreasesToday;
MinimalString lastIncreaseDateTime;
MinimalString lastDecreaseDateTime;
long readCapacityUnits;
bool writeCapacityUnitsBeenSet;
bool numberOfDecreasesTodayBeenSet;
bool lastIncreaseDateTimeBeenSet;
bool lastDecreaseDateTimeBeenSet;
bool readCapacityUnitsBeenSet;
void reset();
public:
ProvisionedThroughputDescription();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setWriteCapacityUnits(long writeCapacityUnits);
void setNumberOfDecreasesToday(long numberOfDecreasesToday);
void setLastIncreaseDateTime(MinimalString lastIncreaseDateTime);
void setLastDecreaseDateTime(MinimalString lastDecreaseDateTime);
void setReadCapacityUnits(long readCapacityUnits);
long getWriteCapacityUnits() const;
long getNumberOfDecreasesToday() const;
MinimalString getLastIncreaseDateTime() const;
MinimalString getLastDecreaseDateTime() const;
long getReadCapacityUnits() const;
};
/* <p>Represents the data for an attribute. You can set one, and only one, of the elements.</p> */
class AttributeValue{
MinimalList<MinimalString > SS;
MinimalList<MinimalString > BS;
MinimalString B;
MinimalString S;
MinimalList<MinimalString > NS;
MinimalString N;
bool SSBeenSet;
bool BSBeenSet;
bool BBeenSet;
bool SBeenSet;
bool NSBeenSet;
bool NBeenSet;
void reset();
public:
AttributeValue();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setSS(MinimalList<MinimalString > SSS);
void setBS(MinimalList<MinimalString > BS);
void setB(MinimalString B);
void setS(MinimalString S);
void setNS(MinimalList<MinimalString > NS);
void setN(MinimalString N);
MinimalList<MinimalString > getSS() const;
MinimalList<MinimalString > getBS() const;
MinimalString getB() const;
MinimalString getS() const;
MinimalList<MinimalString > getNS() const;
MinimalString getN() const;
};
/* <p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <i>UpdateTable</i> operation.</p><p>For current minimum and maximum provisioned throughput values, see <a href="http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Limits</a> in the Amazon DynamoDB Developer Guide.</p> */
class ProvisionedThroughput{
long writeCapacityUnits;
long readCapacityUnits;
bool writeCapacityUnitsBeenSet;
bool readCapacityUnitsBeenSet;
void reset();
public:
ProvisionedThroughput();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setWriteCapacityUnits(long writeCapacityUnits);
void setReadCapacityUnits(long readCapacityUnits);
long getWriteCapacityUnits() const;
long getReadCapacityUnits() const;
};
/* <p>Represents an attribute for describing the key schema for the table and indexes.</p> */
class AttributeDefinition{
ScalarAttributeType attributeType;
MinimalString attributeName;
bool attributeTypeBeenSet;
bool attributeNameBeenSet;
void reset();
public:
AttributeDefinition();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setAttributeType(ScalarAttributeType attributeType);
void setAttributeName(MinimalString attributeName);
ScalarAttributeType getAttributeType() const;
MinimalString getAttributeName() const;
};
/* <p>Represents the properties of a local secondary index.</p> */
class LocalSecondaryIndexDescription{
Projection projection;
long itemCount;
long indexSizeBytes;
MinimalList<KeySchemaElement > keySchema;
MinimalString indexName;
bool projectionBeenSet;
bool itemCountBeenSet;
bool indexSizeBytesBeenSet;
bool keySchemaBeenSet;
bool indexNameBeenSet;
void reset();
public:
LocalSecondaryIndexDescription();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setProjection(Projection projection);
void setItemCount(long itemCount);
void setIndexSizeBytes(long indexSizeBytes);
void setKeySchema(MinimalList<KeySchemaElement > keySchema);
void setIndexName(MinimalString indexName);
Projection getProjection() const;
long getItemCount() const;
long getIndexSizeBytes() const;
MinimalList<KeySchemaElement > getKeySchema() const;
MinimalString getIndexName() const;
};
/* <p>Represents the properties of a global secondary index.</p> */
class GlobalSecondaryIndexDescription{
Projection projection;
ProvisionedThroughputDescription provisionedThroughput;
IndexStatus indexStatus;
long itemCount;
long indexSizeBytes;
MinimalList<KeySchemaElement > keySchema;
MinimalString indexName;
bool projectionBeenSet;
bool provisionedThroughputBeenSet;
bool indexStatusBeenSet;
bool itemCountBeenSet;
bool indexSizeBytesBeenSet;
bool keySchemaBeenSet;
bool indexNameBeenSet;
void reset();
public:
GlobalSecondaryIndexDescription();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setProjection(Projection projection);
void setProvisionedThroughput(ProvisionedThroughputDescription provisionedThroughput);
void setIndexStatus(IndexStatus indexStatus);
void setItemCount(long itemCount);
void setIndexSizeBytes(long indexSizeBytes);
void setKeySchema(MinimalList<KeySchemaElement > keySchema);
void setIndexName(MinimalString indexName);
Projection getProjection() const;
ProvisionedThroughputDescription getProvisionedThroughput() const;
IndexStatus getIndexStatus() const;
long getItemCount() const;
long getIndexSizeBytes() const;
MinimalList<KeySchemaElement > getKeySchema() const;
MinimalString getIndexName() const;
};
/* <p>Represents the amount of provisioned throughput capacity consumed on a table or an index. </p> */
class Capacity{
double capacityUnits;
bool capacityUnitsBeenSet;
void reset();
public:
Capacity();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setCapacityUnits(double capacityUnits);
double getCapacityUnits() const;
};
/* <p>Represents a request to perform a <i>PutItem</i> operation on an item.</p> */
class PutRequest{
MinimalMap<AttributeValue > item;
bool itemBeenSet;
void reset();
public:
PutRequest();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setItem(MinimalMap<AttributeValue > item);
MinimalMap<AttributeValue > getItem() const;
};
/* <p>Represents a request to perform a <i>DeleteItem</i> operation on an item.</p> */
class DeleteRequest{
MinimalMap<AttributeValue > key;
bool keyBeenSet;
void reset();
public:
DeleteRequest();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setKey(MinimalMap<AttributeValue > key);
MinimalMap<AttributeValue > getKey() const;
};
/* <p>Represents the new provisioned throughput settings to be applied to a global secondary index.</p> */
class UpdateGlobalSecondaryIndexAction{
ProvisionedThroughput provisionedThroughput;
MinimalString indexName;
bool provisionedThroughputBeenSet;
bool indexNameBeenSet;
void reset();
public:
UpdateGlobalSecondaryIndexAction();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput);
void setIndexName(MinimalString indexName);
ProvisionedThroughput getProvisionedThroughput() const;
MinimalString getIndexName() const;
};
/* <p>Represents the properties of a table.</p> */
class TableDescription{
ProvisionedThroughputDescription provisionedThroughput;
MinimalString creationDateTime;
long itemCount;
MinimalList<GlobalSecondaryIndexDescription > globalSecondaryIndexes;
TableStatus tableStatus;
MinimalString tableName;
MinimalList<LocalSecondaryIndexDescription > localSecondaryIndexes;
MinimalList<KeySchemaElement > keySchema;
MinimalList<AttributeDefinition > attributeDefinitions;
long tableSizeBytes;
bool provisionedThroughputBeenSet;
bool creationDateTimeBeenSet;
bool itemCountBeenSet;
bool globalSecondaryIndexesBeenSet;
bool tableStatusBeenSet;
bool tableNameBeenSet;
bool localSecondaryIndexesBeenSet;
bool keySchemaBeenSet;
bool attributeDefinitionsBeenSet;
bool tableSizeBytesBeenSet;
void reset();
public:
TableDescription();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setProvisionedThroughput(ProvisionedThroughputDescription provisionedThroughput);
void setCreationDateTime(MinimalString creationDateTime);
void setItemCount(long itemCount);
void setGlobalSecondaryIndexes(MinimalList<GlobalSecondaryIndexDescription > globalSecondaryIndexes);
void setTableStatus(TableStatus tableStatus);
void setTableName(MinimalString tableName);
void setLocalSecondaryIndexes(MinimalList<LocalSecondaryIndexDescription > localSecondaryIndexes);
void setKeySchema(MinimalList<KeySchemaElement > keySchema);
void setAttributeDefinitions(MinimalList<AttributeDefinition > attributeDefinitions);
void setTableSizeBytes(long tableSizeBytes);
ProvisionedThroughputDescription getProvisionedThroughput() const;
MinimalString getCreationDateTime() const;
long getItemCount() const;
MinimalList<GlobalSecondaryIndexDescription > getGlobalSecondaryIndexes() const;
TableStatus getTableStatus() const;
MinimalString getTableName() const;
MinimalList<LocalSecondaryIndexDescription > getLocalSecondaryIndexes() const;
MinimalList<KeySchemaElement > getKeySchema() const;
MinimalList<AttributeDefinition > getAttributeDefinitions() const;
long getTableSizeBytes() const;
};
/* <p>Represents the capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. <i>ConsumedCapacity</i> is only returned if it was asked for in the request. For more information, see <a href="http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html">Provisioned Throughput</a> in the Amazon DynamoDB Developer Guide.</p> */
class ConsumedCapacity{
double capacityUnits;
MinimalMap<Capacity > globalSecondaryIndexes;
MinimalString tableName;
MinimalMap<Capacity > localSecondaryIndexes;
Capacity table;
bool capacityUnitsBeenSet;
bool globalSecondaryIndexesBeenSet;
bool tableNameBeenSet;
bool localSecondaryIndexesBeenSet;
bool tableBeenSet;
void reset();
public:
ConsumedCapacity();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setCapacityUnits(double capacityUnits);
void setGlobalSecondaryIndexes(MinimalMap<Capacity > globalSecondaryIndexes);
void setTableName(MinimalString tableName);
void setLocalSecondaryIndexes(MinimalMap<Capacity > localSecondaryIndexes);
void setTable(Capacity table);
double getCapacityUnits() const;
MinimalMap<Capacity > getGlobalSecondaryIndexes() const;
MinimalString getTableName() const;
MinimalMap<Capacity > getLocalSecondaryIndexes() const;
Capacity getTable() const;
};
/* <p>Information about item collections, if any, that were affected by the operation. <i>ItemCollectionMetrics</i> is only returned if it was asked for in the request. If the table does not have any local secondary indexes, this information is not returned in the response.</p> */
class ItemCollectionMetrics{
MinimalList<SerializableDouble > sizeEstimateRangeGB;
MinimalMap<AttributeValue > itemCollectionKey;
bool sizeEstimateRangeGBBeenSet;
bool itemCollectionKeyBeenSet;
void reset();
public:
ItemCollectionMetrics();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setSizeEstimateRangeGB(MinimalList<SerializableDouble > sizeEstimateRangeGB);
void setItemCollectionKey(MinimalMap<AttributeValue > itemCollectionKey);
MinimalList<SerializableDouble > getSizeEstimateRangeGB() const;
MinimalMap<AttributeValue > getItemCollectionKey() const;
};
/* <p>Represents a condition to be compared with an attribute value. This condition can be used with <i>DeleteItem</i>, <i>PutItem</i> or <i>UpdateItem</i> operations; if the comparison evaluates to true, the operation succeeds; if not the operation fails. You can use <i>ExpectedAttributeValue</i> in one of two different ways:</p><ul><li><p>Use <i>AttributeValueList</i> to specify one or more values to compare against an attribute. Use <i>ComparisonOperator</i> to specify how you want to perform the comparison. If the comparison evaluates to true, then the conditional operation succeeds.</p></li><li><p>Use <i>Value</i> to specify a value that DynamoDB will compare against an attribute. If the values match, then <i>ExpectedAttributeValue</i> evaluates to true and the conditional operation succeeds. Optionally, you can also set <i>Exists</i> to false, indicating that you <i>do not</i> expect to find the attribute value in the table. In this case, the conditional operation succeeds only if the comparison evaluates to false.</p></li></ul><p><i>Value</i> and <i>Exists</i> are incompatible with <i>AttributeValueList</i> and <i>ComparisonOperator</i>. If you attempt to use both sets of parameters at once, DynamoDB will throw a <i>ValidationException</i>.</p><important><p>The <i>Value</i> and <i>Exists</i> parameters are deprecated. Even though DynamoDB will continue to support these parameters, we recommend that you use <i>AttributeValueList</i> and <i>ComparisonOperator</i> instead. <i>AttributeValueList</i> and <i>ComparisonOperator</i> let you construct a much wider range of conditions than is possible with <i>Value</i> and <i>Exists</i>.</p></important> */
class ExpectedAttributeValue{
AttributeValue value;
bool exists;
MinimalList<AttributeValue > attributeValueList;
ComparisonOperator comparisonOperator;
bool valueBeenSet;
bool existsBeenSet;
bool attributeValueListBeenSet;
bool comparisonOperatorBeenSet;
void reset();
public:
ExpectedAttributeValue();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setValue(AttributeValue value);
void setExists(bool exists);
void setAttributeValueList(MinimalList<AttributeValue > attributeValueList);
void setComparisonOperator(ComparisonOperator comparisonOperator);
AttributeValue getValue() const;
bool getExists() const;
MinimalList<AttributeValue > getAttributeValueList() const;
ComparisonOperator getComparisonOperator() const;
};
/* <p>Represents the selection criteria for a <i>Query</i> or <i>Scan</i> operation:</p><ul><li><p>For a <i>Query</i> operation, <i>Condition</i> is used for specifying the <i>KeyConditions</i> to use when querying a table or an index. For <i>KeyConditions</i>, only the following comparison operators are supported:</p><p><code>EQ | LE | LT | GE | GT | BEGINS_WITH | BETWEEN</code></p><p><i>Condition</i> is also used in a <i>QueryFilter</i>, which evaluates the query results and returns only the desired values.</p></li><li><p>For a <i>Scan</i> operation, <i>Condition</i> is used in a <i>ScanFilter</i>, which evaluates the scan results and returns only the desired values.</p></li></ul> */
class Condition{
MinimalList<AttributeValue > attributeValueList;
ComparisonOperator comparisonOperator;
bool attributeValueListBeenSet;
bool comparisonOperatorBeenSet;
void reset();
public:
Condition();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setAttributeValueList(MinimalList<AttributeValue > attributeValueList);
void setComparisonOperator(ComparisonOperator comparisonOperator);
MinimalList<AttributeValue > getAttributeValueList() const;
ComparisonOperator getComparisonOperator() const;
};
/* <p>Represents an operation to perform - either <i>DeleteItem</i> or <i>PutItem</i>. You can only specify one of these operations, not both, in a single <i>WriteRequest</i>. If you do need to perform both of these operations, you will need to specify two separate <i>WriteRequest</i> objects.</p> */
class WriteRequest{
DeleteRequest deleteRequest;
PutRequest putRequest;
bool deleteRequestBeenSet;
bool putRequestBeenSet;
void reset();
public:
WriteRequest();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setDeleteRequest(DeleteRequest deleteRequest);
void setPutRequest(PutRequest putRequest);
DeleteRequest getDeleteRequest() const;
PutRequest getPutRequest() const;
};
/* <p>Represents a set of primary keys and, for each key, the attributes to retrieve from the table.</p><p>For each primary key, you must provide <i>all</i> of the key attributes. For example, with a hash type primary key, you only need to specify the hash attribute. For a hash-and-range type primary key, you must specify <i>both</i> the hash attribute and the range attribute.</p> */
class KeysAndAttributes{
bool consistentRead;
MinimalList<MinimalString > attributesToGet;
MinimalList<MinimalMap<AttributeValue > > keys;
bool consistentReadBeenSet;
bool attributesToGetBeenSet;
bool keysBeenSet;
void reset();
public:
KeysAndAttributes();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setConsistentRead(bool consistentRead);
void setAttributesToGet(MinimalList<MinimalString > attributesToGet);
void setKeys(MinimalList<MinimalMap<AttributeValue > > keys);
bool getConsistentRead() const;
MinimalList<MinimalString > getAttributesToGet() const;
MinimalList<MinimalMap<AttributeValue > > getKeys() const;
};
/* <p>Represents a local secondary index.</p> */
class LocalSecondaryIndex{
Projection projection;
MinimalList<KeySchemaElement > keySchema;
MinimalString indexName;
bool projectionBeenSet;
bool keySchemaBeenSet;
bool indexNameBeenSet;
void reset();
public:
LocalSecondaryIndex();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setProjection(Projection projection);
void setKeySchema(MinimalList<KeySchemaElement > keySchema);
void setIndexName(MinimalString indexName);
Projection getProjection() const;
MinimalList<KeySchemaElement > getKeySchema() const;
MinimalString getIndexName() const;
};
/* <p>Represents a global secondary index.</p> */
class GlobalSecondaryIndex{
Projection projection;
ProvisionedThroughput provisionedThroughput;
MinimalList<KeySchemaElement > keySchema;
MinimalString indexName;
bool projectionBeenSet;
bool provisionedThroughputBeenSet;
bool keySchemaBeenSet;
bool indexNameBeenSet;
void reset();
public:
GlobalSecondaryIndex();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setProjection(Projection projection);
void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput);
void setKeySchema(MinimalList<KeySchemaElement > keySchema);
void setIndexName(MinimalString indexName);
Projection getProjection() const;
ProvisionedThroughput getProvisionedThroughput() const;
MinimalList<KeySchemaElement > getKeySchema() const;
MinimalString getIndexName() const;
};
/* <p>For the <i>UpdateItem</i> operation, represents the attributes to be modified, the action to perform on each, and the new value for each.</p><p>Attribute values cannot be null; string and binary type attributes must have lengths greater than zero; and set type attributes must not be empty. Requests with empty values will be rejected with a <i>ValidationException</i>.</p> */
class AttributeValueUpdate{
AttributeValue value;
AttributeAction action;
bool valueBeenSet;
bool actionBeenSet;
void reset();
public:
AttributeValueUpdate();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setValue(AttributeValue value);
void setAction(AttributeAction action);
AttributeValue getValue() const;
AttributeAction getAction() const;
};
/* <p>Represents the new provisioned throughput settings to apply to a global secondary index.</p> */
class GlobalSecondaryIndexUpdate{
UpdateGlobalSecondaryIndexAction update;
bool updateBeenSet;
void reset();
public:
GlobalSecondaryIndexUpdate();
bool jsonDeserialize(MinimalString json);
MinimalString jsonSerialize() const;
void setUpdate(UpdateGlobalSecondaryIndexAction update);
UpdateGlobalSecondaryIndexAction getUpdate() const;
};
/* <p>Represents the output of a <i>ListTables</i> operation.</p> */
class ListTablesOutput{
MinimalString lastEvaluatedTableName;
MinimalList<MinimalString > tableNames;
bool lastEvaluatedTableNameBeenSet;
bool tableNamesBeenSet;
MinimalString errorType;
MinimalString errorMessage;
void reset();
public:
ListTablesOutput();
bool jsonDeserialize(MinimalString json);
MinimalString getErrorType() const;
MinimalString getErrorMessage() const;
void setLastEvaluatedTableName(MinimalString lastEvaluatedTableName);
void setTableNames(MinimalList<MinimalString > tableNames);
MinimalString getLastEvaluatedTableName() const;
MinimalList<MinimalString > getTableNames() const;
};
/* <p>Represents the output of an <i>UpdateTable</i> operation.</p> */
class UpdateTableOutput{
TableDescription tableDescription;
bool tableDescriptionBeenSet;
MinimalString errorType;
MinimalString errorMessage;
void reset();
public:
UpdateTableOutput();
bool jsonDeserialize(MinimalString json);
MinimalString getErrorType() const;
MinimalString getErrorMessage() const;
void setTableDescription(TableDescription tableDescription);
TableDescription getTableDescription() const;
};
/* <p>Represents the output of an <i>UpdateItem</i> operation.</p> */
class UpdateItemOutput{
MinimalMap<AttributeValue > attributes;
ItemCollectionMetrics itemCollectionMetrics;
ConsumedCapacity consumedCapacity;
bool attributesBeenSet;
bool itemCollectionMetricsBeenSet;
bool consumedCapacityBeenSet;
MinimalString errorType;
MinimalString errorMessage;
void reset();
public:
UpdateItemOutput();
bool jsonDeserialize(MinimalString json);
MinimalString getErrorType() const;
MinimalString getErrorMessage() const;
void setAttributes(MinimalMap<AttributeValue > attributes);
void setItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics);
void setConsumedCapacity(ConsumedCapacity consumedCapacity);
MinimalMap<AttributeValue > getAttributes() const;
ItemCollectionMetrics getItemCollectionMetrics() const;
ConsumedCapacity getConsumedCapacity() const;
};
/* <p>Represents the input of a <i>DeleteItem</i> operation.</p> */
class DeleteItemInput{
ReturnItemCollectionMetrics returnItemCollectionMetrics;
ReturnValue returnValues;
MinimalMap<AttributeValue > key;
ConditionalOperator conditionalOperator;
MinimalMap<ExpectedAttributeValue > expected;
MinimalString tableName;
ReturnConsumedCapacity returnConsumedCapacity;
bool returnItemCollectionMetricsBeenSet;
bool returnValuesBeenSet;
bool keyBeenSet;
bool conditionalOperatorBeenSet;
bool expectedBeenSet;
bool tableNameBeenSet;
bool returnConsumedCapacityBeenSet;
void reset();
public:
DeleteItemInput();
bool requiredAreSet() const;
MinimalString jsonSerialize() const;
void setReturnItemCollectionMetrics(ReturnItemCollectionMetrics returnItemCollectionMetrics);
void setReturnValues(ReturnValue returnValues);
void setKey(MinimalMap<AttributeValue > key);
void setConditionalOperator(ConditionalOperator conditionalOperator);
void setExpected(MinimalMap<ExpectedAttributeValue > expected);
void setTableName(MinimalString tableName);
void setReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity);
ReturnItemCollectionMetrics getReturnItemCollectionMetrics() const;
ReturnValue getReturnValues() const;
MinimalMap<AttributeValue > getKey() const;
ConditionalOperator getConditionalOperator() const;
MinimalMap<ExpectedAttributeValue > getExpected() const;
MinimalString getTableName() const;
ReturnConsumedCapacity getReturnConsumedCapacity() const;
};
/* <p>Represents the input of a <i>Scan</i> operation.</p> */
class ScanInput{
MinimalMap<Condition > scanFilter;
Select select;
int totalSegments;
ConditionalOperator conditionalOperator;
int segment;
MinimalList<MinimalString > attributesToGet;
MinimalString tableName;
ReturnConsumedCapacity returnConsumedCapacity;
int limit;
MinimalMap<AttributeValue > exclusiveStartKey;
bool scanFilterBeenSet;
bool selectBeenSet;
bool totalSegmentsBeenSet;
bool conditionalOperatorBeenSet;
bool segmentBeenSet;
bool attributesToGetBeenSet;
bool tableNameBeenSet;
bool returnConsumedCapacityBeenSet;
bool limitBeenSet;
bool exclusiveStartKeyBeenSet;
void reset();
public:
ScanInput();
bool requiredAreSet() const;
MinimalString jsonSerialize() const;
void setScanFilter(MinimalMap<Condition > scanFilter);
void setSelect(Select select);
void setTotalSegments(int totalSegments);
void setConditionalOperator(ConditionalOperator conditionalOperator);
void setSegment(int segment);
void setAttributesToGet(MinimalList<MinimalString > attributesToGet);
void setTableName(MinimalString tableName);
void setReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity);
void setLimit(int limit);
void setExclusiveStartKey(MinimalMap<AttributeValue > exclusiveStartKey);
MinimalMap<Condition > getScanFilter() const;
Select getSelect() const;
int getTotalSegments() const;
ConditionalOperator getConditionalOperator() const;
int getSegment() const;
MinimalList<MinimalString > getAttributesToGet() const;
MinimalString getTableName() const;
ReturnConsumedCapacity getReturnConsumedCapacity() const;
int getLimit() const;
MinimalMap<AttributeValue > getExclusiveStartKey() const;
};
/* <p>Represents the input of a <i>ListTables</i> operation.</p> */
class ListTablesInput{
MinimalString exclusiveStartTableName;
int limit;
bool exclusiveStartTableNameBeenSet;
bool limitBeenSet;
void reset();
public:
ListTablesInput();
bool requiredAreSet() const;
MinimalString jsonSerialize() const;
void setExclusiveStartTableName(MinimalString exclusiveStartTableName);
void setLimit(int limit);
MinimalString getExclusiveStartTableName() const;
int getLimit() const;
};
/* <p>Represents the output of a <i>BatchWriteItem</i> operation.</p> */
class BatchWriteItemOutput{
MinimalMap<MinimalList<WriteRequest > > unprocessedItems;
MinimalMap<MinimalList<ItemCollectionMetrics > > itemCollectionMetrics;
MinimalList<ConsumedCapacity > consumedCapacity;
bool unprocessedItemsBeenSet;
bool itemCollectionMetricsBeenSet;
bool consumedCapacityBeenSet;
MinimalString errorType;
MinimalString errorMessage;
void reset();
public:
BatchWriteItemOutput();
bool jsonDeserialize(MinimalString json);
MinimalString getErrorType() const;
MinimalString getErrorMessage() const;
void setUnprocessedItems(MinimalMap<MinimalList<WriteRequest > > unprocessedItems);
void setItemCollectionMetrics(MinimalMap<MinimalList<ItemCollectionMetrics > > itemCollectionMetrics);
void setConsumedCapacity(MinimalList<ConsumedCapacity > consumedCapacity);
MinimalMap<MinimalList<WriteRequest > > getUnprocessedItems() const;
MinimalMap<MinimalList<ItemCollectionMetrics > > getItemCollectionMetrics() const;
MinimalList<ConsumedCapacity > getConsumedCapacity() const;
};
/* <p>Represents the input of a <i>Query</i> operation.</p> */
class QueryInput{
bool scanIndexForward;
Select select;
bool consistentRead;
ConditionalOperator conditionalOperator;
MinimalMap<Condition > queryFilter;
MinimalList<MinimalString > attributesToGet;
MinimalMap<Condition > keyConditions;
MinimalString tableName;
MinimalString indexName;
ReturnConsumedCapacity returnConsumedCapacity;
int limit;
MinimalMap<AttributeValue > exclusiveStartKey;
bool scanIndexForwardBeenSet;
bool selectBeenSet;
bool consistentReadBeenSet;
bool conditionalOperatorBeenSet;
bool queryFilterBeenSet;
bool attributesToGetBeenSet;
bool keyConditionsBeenSet;
bool tableNameBeenSet;
bool indexNameBeenSet;
bool returnConsumedCapacityBeenSet;
bool limitBeenSet;
bool exclusiveStartKeyBeenSet;
void reset();
public:
QueryInput();
bool requiredAreSet() const;
MinimalString jsonSerialize() const;
void setScanIndexForward(bool scanIndexForward);
void setSelect(Select select);
void setConsistentRead(bool consistentRead);
void setConditionalOperator(ConditionalOperator conditionalOperator);
void setQueryFilter(MinimalMap<Condition > queryFilter);
void setAttributesToGet(MinimalList<MinimalString > attributesToGet);
void setKeyConditions(MinimalMap<Condition > keyConditions);
void setTableName(MinimalString tableName);
void setIndexName(MinimalString indexName);
void setReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity);
void setLimit(int limit);
void setExclusiveStartKey(MinimalMap<AttributeValue > exclusiveStartKey);
bool getScanIndexForward() const;
Select getSelect() const;
bool getConsistentRead() const;
ConditionalOperator getConditionalOperator() const;
MinimalMap<Condition > getQueryFilter() const;
MinimalList<MinimalString > getAttributesToGet() const;
MinimalMap<Condition > getKeyConditions() const;
MinimalString getTableName() const;
MinimalString getIndexName() const;
ReturnConsumedCapacity getReturnConsumedCapacity() const;
int getLimit() const;
MinimalMap<AttributeValue > getExclusiveStartKey() const;
};
/* <p>Represents the input of a <i>BatchWriteItem</i> operation.</p> */
class BatchWriteItemInput{
ReturnItemCollectionMetrics returnItemCollectionMetrics;
MinimalMap<MinimalList<WriteRequest > > requestItems;
ReturnConsumedCapacity returnConsumedCapacity;
bool returnItemCollectionMetricsBeenSet;
bool requestItemsBeenSet;
bool returnConsumedCapacityBeenSet;
void reset();
public:
BatchWriteItemInput();
bool requiredAreSet() const;
MinimalString jsonSerialize() const;
void setReturnItemCollectionMetrics(ReturnItemCollectionMetrics returnItemCollectionMetrics);
void setRequestItems(MinimalMap<MinimalList<WriteRequest > > requestItems);
void setReturnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity);
ReturnItemCollectionMetrics getReturnItemCollectionMetrics() const;
MinimalMap<MinimalList<WriteRequest > > getRequestItems() const;
ReturnConsumedCapacity getReturnConsumedCapacity() const;
};
/* <p>Represents the output of a <i>Query</i> operation.</p> */
class QueryOutput{
MinimalMap<AttributeValue > lastEvaluatedKey;
MinimalList<MinimalMap<AttributeValue > > items;
int count;
int scannedCount;
ConsumedCapacity consumedCapacity;
bool lastEvaluatedKeyBeenSet;
bool itemsBeenSet;
bool countBeenSet;
bool scannedCountBeenSet;
bool consumedCapacityBeenSet;
MinimalString errorType;
MinimalString errorMessage;
void reset();
public:
QueryOutput();
bool jsonDeserialize(MinimalString json);
MinimalString getErrorType() const;
MinimalString getErrorMessage() const;
void setLastEvaluatedKey(MinimalMap<AttributeValue > lastEvaluatedKey);
void setItems(MinimalList<MinimalMap<AttributeValue > > items);
void setCount(int count);
void setScannedCount(int scannedCount);
void setConsumedCapacity(ConsumedCapacity consumedCapacity);
MinimalMap<AttributeValue > getLastEvaluatedKey() const;
MinimalList<MinimalMap<AttributeValue > > getItems() const;
int getCount() const;
int getScannedCount() const;
ConsumedCapacity getConsumedCapacity() const;
};
/* <p>Represents the output of a <i>DeleteItem</i> operation.</p> */
class DeleteItemOutput{
MinimalMap<AttributeValue > attributes;
ItemCollectionMetrics itemCollectionMetrics;
ConsumedCapacity consumedCapacity;
bool attributesBeenSet;
bool itemCollectionMetricsBeenSet;
bool consumedCapacityBeenSet;
MinimalString errorType;
MinimalString errorMessage;
void reset();
public:
DeleteItemOutput();
bool jsonDeserialize(MinimalString json);
MinimalString getErrorType() const;
MinimalString getErrorMessage() const;
void setAttributes(MinimalMap<AttributeValue > attributes);
void setItemCollectionMetrics(ItemCollectionMetrics itemCollectionMetrics);
void setConsumedCapacity(ConsumedCapacity consumedCapacity);
MinimalMap<AttributeValue > getAttributes() const;
ItemCollectionMetrics getItemCollectionMetrics() const;
ConsumedCapacity getConsumedCapacity() const;
};
/* <p>Represents the output of a <i>BatchGetItem</i> operation.</p> */
class BatchGetItemOutput{
MinimalMap<MinimalList<MinimalMap<AttributeValue > > > responses;
MinimalMap<KeysAndAttributes > unprocessedKeys;
MinimalList<ConsumedCapacity > consumedCapacity;
bool responsesBeenSet;
bool unprocessedKeysBeenSet;
bool consumedCapacityBeenSet;
MinimalString errorType;
MinimalString errorMessage;
void reset();
public:
BatchGetItemOutput();
bool jsonDeserialize(MinimalString json);
MinimalString getErrorType() const;
MinimalString getErrorMessage() const;
void setResponses(MinimalMap<MinimalList<MinimalMap<AttributeValue > > > responses);
void setUnprocessedKeys(MinimalMap<KeysAndAttributes > unprocessedKeys);
void setConsumedCapacity(MinimalList<ConsumedCapacity > consumedCapacity);
MinimalMap<MinimalList<MinimalMap<AttributeValue > > > getResponses() const;
MinimalMap<KeysAndAttributes > getUnprocessedKeys() const;
MinimalList<ConsumedCapacity > getConsumedCapacity() const;
};
/* <p>Represents the input of a <i>CreateTable</i> operation.</p> */
class CreateTableInput{
ProvisionedThroughput provisionedThroughput;
MinimalList<GlobalSecondaryIndex > globalSecondaryIndexes;
MinimalString tableName;
MinimalList<LocalSecondaryIndex > localSecondaryIndexes;
MinimalList<KeySchemaElement > keySchema;
MinimalList<AttributeDefinition > attributeDefinitions;
bool provisionedThroughputBeenSet;
bool globalSecondaryIndexesBeenSet;
bool tableNameBeenSet;
bool localSecondaryIndexesBeenSet;
bool keySchemaBeenSet;
bool attributeDefinitionsBeenSet;
void reset();
public:
CreateTableInput();
bool requiredAreSet() const;
MinimalString jsonSerialize() const;
void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput);
void setGlobalSecondaryIndexes(MinimalList<GlobalSecondaryIndex > globalSecondaryIndexes);
void setTableName(MinimalString tableName);
void setLocalSecondaryIndexes(MinimalList<LocalSecondaryIndex > localSecondaryIndexes);
void setKeySchema(MinimalList<KeySchemaElement > keySchema);
void setAttributeDefinitions(MinimalList<AttributeDefinition > attributeDefinitions);
ProvisionedThroughput getProvisionedThroughput() const;
MinimalList<GlobalSecondaryIndex > getGlobalSecondaryIndexes() const;
MinimalString getTableName() const;
MinimalList<LocalSecondaryIndex > getLocalSecondaryIndexes() const;
MinimalList<KeySchemaElement > getKeySchema() const;
MinimalList<AttributeDefinition > getAttributeDefinitions() const;
};
/* <p>Represents the input of a <i>DescribeTable</i> operation.</p> */
class DescribeTableInput{
MinimalString tableName;
bool tableNameBeenSet;
void reset();
public:
DescribeTableInput();
bool requiredAreSet() const;
MinimalString jsonSerialize() const;
void setTableName(MinimalString tableName);
MinimalString getTableName() const;
};
/* <p>Represents the input of a <i>PutItem</i> operation.</p> */
class PutItemInput{
ReturnItemCollectionMetrics returnItemCollectionMetrics;
ReturnValue returnValues;
MinimalMap<AttributeValue > item;
ConditionalOperator conditionalOperator;
MinimalMap<ExpectedAttributeValue > expected;
MinimalString tableName;
ReturnConsumedCapacity returnConsumedCapacity;
bool returnItemCollectionMetricsBeenSet;
bool returnValuesBeenSet;
bool itemBeenSet;
bool conditionalOperatorBeenSet;
bool expectedBeenSet;
bool tableNameBeenSet;
bool returnConsumedCapacityBeenSet;