AWS SDK for C++  0.14.3
AWS SDK for C++
GlobalSecondaryIndexDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace DynamoDB
34 {
35 namespace Model
36 {
37 
42  {
43  public:
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
52  inline const Aws::String& GetIndexName() const{ return m_indexName; }
53 
57  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
58 
62  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
63 
67  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
68 
72  inline GlobalSecondaryIndexDescription& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
73 
77  inline GlobalSecondaryIndexDescription& WithIndexName(Aws::String&& value) { SetIndexName(value); return *this;}
78 
82  inline GlobalSecondaryIndexDescription& WithIndexName(const char* value) { SetIndexName(value); return *this;}
83 
96  inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const{ return m_keySchema; }
97 
110  inline void SetKeySchema(const Aws::Vector<KeySchemaElement>& value) { m_keySchemaHasBeenSet = true; m_keySchema = value; }
111 
124  inline void SetKeySchema(Aws::Vector<KeySchemaElement>&& value) { m_keySchemaHasBeenSet = true; m_keySchema = value; }
125 
138  inline GlobalSecondaryIndexDescription& WithKeySchema(const Aws::Vector<KeySchemaElement>& value) { SetKeySchema(value); return *this;}
139 
152  inline GlobalSecondaryIndexDescription& WithKeySchema(Aws::Vector<KeySchemaElement>&& value) { SetKeySchema(value); return *this;}
153 
166  inline GlobalSecondaryIndexDescription& AddKeySchema(const KeySchemaElement& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; }
167 
180  inline GlobalSecondaryIndexDescription& AddKeySchema(KeySchemaElement&& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; }
181 
182 
183  inline const Projection& GetProjection() const{ return m_projection; }
184 
185 
186  inline void SetProjection(const Projection& value) { m_projectionHasBeenSet = true; m_projection = value; }
187 
188 
189  inline void SetProjection(Projection&& value) { m_projectionHasBeenSet = true; m_projection = value; }
190 
191 
192  inline GlobalSecondaryIndexDescription& WithProjection(const Projection& value) { SetProjection(value); return *this;}
193 
194 
195  inline GlobalSecondaryIndexDescription& WithProjection(Projection&& value) { SetProjection(value); return *this;}
196 
204  inline const IndexStatus& GetIndexStatus() const{ return m_indexStatus; }
205 
213  inline void SetIndexStatus(const IndexStatus& value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
214 
222  inline void SetIndexStatus(IndexStatus&& value) { m_indexStatusHasBeenSet = true; m_indexStatus = value; }
223 
231  inline GlobalSecondaryIndexDescription& WithIndexStatus(const IndexStatus& value) { SetIndexStatus(value); return *this;}
232 
240  inline GlobalSecondaryIndexDescription& WithIndexStatus(IndexStatus&& value) { SetIndexStatus(value); return *this;}
241 
252  inline bool GetBackfilling() const{ return m_backfilling; }
253 
264  inline void SetBackfilling(bool value) { m_backfillingHasBeenSet = true; m_backfilling = value; }
265 
276  inline GlobalSecondaryIndexDescription& WithBackfilling(bool value) { SetBackfilling(value); return *this;}
277 
278 
279  inline const ProvisionedThroughputDescription& GetProvisionedThroughput() const{ return m_provisionedThroughput; }
280 
281 
282  inline void SetProvisionedThroughput(const ProvisionedThroughputDescription& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; }
283 
284 
285  inline void SetProvisionedThroughput(ProvisionedThroughputDescription&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; }
286 
287 
288  inline GlobalSecondaryIndexDescription& WithProvisionedThroughput(const ProvisionedThroughputDescription& value) { SetProvisionedThroughput(value); return *this;}
289 
290 
291  inline GlobalSecondaryIndexDescription& WithProvisionedThroughput(ProvisionedThroughputDescription&& value) { SetProvisionedThroughput(value); return *this;}
292 
298  inline long long GetIndexSizeBytes() const{ return m_indexSizeBytes; }
299 
305  inline void SetIndexSizeBytes(long long value) { m_indexSizeBytesHasBeenSet = true; m_indexSizeBytes = value; }
306 
312  inline GlobalSecondaryIndexDescription& WithIndexSizeBytes(long long value) { SetIndexSizeBytes(value); return *this;}
313 
319  inline long long GetItemCount() const{ return m_itemCount; }
320 
326  inline void SetItemCount(long long value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
327 
333  inline GlobalSecondaryIndexDescription& WithItemCount(long long value) { SetItemCount(value); return *this;}
334 
338  inline const Aws::String& GetIndexArn() const{ return m_indexArn; }
339 
343  inline void SetIndexArn(const Aws::String& value) { m_indexArnHasBeenSet = true; m_indexArn = value; }
344 
348  inline void SetIndexArn(Aws::String&& value) { m_indexArnHasBeenSet = true; m_indexArn = value; }
349 
353  inline void SetIndexArn(const char* value) { m_indexArnHasBeenSet = true; m_indexArn.assign(value); }
354 
358  inline GlobalSecondaryIndexDescription& WithIndexArn(const Aws::String& value) { SetIndexArn(value); return *this;}
359 
363  inline GlobalSecondaryIndexDescription& WithIndexArn(Aws::String&& value) { SetIndexArn(value); return *this;}
364 
368  inline GlobalSecondaryIndexDescription& WithIndexArn(const char* value) { SetIndexArn(value); return *this;}
369 
370  private:
371  Aws::String m_indexName;
372  bool m_indexNameHasBeenSet;
373  Aws::Vector<KeySchemaElement> m_keySchema;
374  bool m_keySchemaHasBeenSet;
375  Projection m_projection;
376  bool m_projectionHasBeenSet;
377  IndexStatus m_indexStatus;
378  bool m_indexStatusHasBeenSet;
379  bool m_backfilling;
380  bool m_backfillingHasBeenSet;
381  ProvisionedThroughputDescription m_provisionedThroughput;
382  bool m_provisionedThroughputHasBeenSet;
383  long long m_indexSizeBytes;
384  bool m_indexSizeBytesHasBeenSet;
385  long long m_itemCount;
386  bool m_itemCountHasBeenSet;
387  Aws::String m_indexArn;
388  bool m_indexArnHasBeenSet;
389  };
390 
391 } // namespace Model
392 } // namespace DynamoDB
393 } // namespace Aws
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
GlobalSecondaryIndexDescription & WithItemCount(long long value)
void SetProvisionedThroughput(ProvisionedThroughputDescription &&value)
GlobalSecondaryIndexDescription & WithIndexName(const Aws::String &value)
GlobalSecondaryIndexDescription & WithIndexName(const char *value)
const ProvisionedThroughputDescription & GetProvisionedThroughput() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetProvisionedThroughput(const ProvisionedThroughputDescription &value)
GlobalSecondaryIndexDescription & AddKeySchema(const KeySchemaElement &value)
GlobalSecondaryIndexDescription & WithProvisionedThroughput(ProvisionedThroughputDescription &&value)
void SetKeySchema(const Aws::Vector< KeySchemaElement > &value)
GlobalSecondaryIndexDescription & WithKeySchema(const Aws::Vector< KeySchemaElement > &value)
#define AWS_DYNAMODB_API
GlobalSecondaryIndexDescription & AddKeySchema(KeySchemaElement &&value)
GlobalSecondaryIndexDescription & WithIndexArn(const char *value)
GlobalSecondaryIndexDescription & WithIndexSizeBytes(long long value)
GlobalSecondaryIndexDescription & WithProjection(Projection &&value)
GlobalSecondaryIndexDescription & WithProvisionedThroughput(const ProvisionedThroughputDescription &value)
GlobalSecondaryIndexDescription & WithIndexArn(const Aws::String &value)
GlobalSecondaryIndexDescription & WithIndexStatus(const IndexStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GlobalSecondaryIndexDescription & WithProjection(const Projection &value)
GlobalSecondaryIndexDescription & WithKeySchema(Aws::Vector< KeySchemaElement > &&value)
GlobalSecondaryIndexDescription & WithBackfilling(bool value)
GlobalSecondaryIndexDescription & WithIndexStatus(IndexStatus &&value)
GlobalSecondaryIndexDescription & WithIndexArn(Aws::String &&value)
void SetKeySchema(Aws::Vector< KeySchemaElement > &&value)
GlobalSecondaryIndexDescription & WithIndexName(Aws::String &&value)
JSON (JavaScript Object Notation).