AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LocalSecondaryIndexDescription.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/model/Projection.h>
11#include <aws/dynamodb/model/KeySchemaElement.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDB
25{
26namespace Model
27{
28
36 {
37 public:
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetIndexName() const{ return m_indexName; }
49 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
50 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
51 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
52 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
53 inline LocalSecondaryIndexDescription& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
54 inline LocalSecondaryIndexDescription& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
55 inline LocalSecondaryIndexDescription& WithIndexName(const char* value) { SetIndexName(value); return *this;}
57
59
71 inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const{ return m_keySchema; }
72 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
73 inline void SetKeySchema(const Aws::Vector<KeySchemaElement>& value) { m_keySchemaHasBeenSet = true; m_keySchema = value; }
74 inline void SetKeySchema(Aws::Vector<KeySchemaElement>&& value) { m_keySchemaHasBeenSet = true; m_keySchema = std::move(value); }
77 inline LocalSecondaryIndexDescription& AddKeySchema(const KeySchemaElement& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(value); return *this; }
78 inline LocalSecondaryIndexDescription& AddKeySchema(KeySchemaElement&& value) { m_keySchemaHasBeenSet = true; m_keySchema.push_back(std::move(value)); return *this; }
80
82
87 inline const Projection& GetProjection() const{ return m_projection; }
88 inline bool ProjectionHasBeenSet() const { return m_projectionHasBeenSet; }
89 inline void SetProjection(const Projection& value) { m_projectionHasBeenSet = true; m_projection = value; }
90 inline void SetProjection(Projection&& value) { m_projectionHasBeenSet = true; m_projection = std::move(value); }
91 inline LocalSecondaryIndexDescription& WithProjection(const Projection& value) { SetProjection(value); return *this;}
92 inline LocalSecondaryIndexDescription& WithProjection(Projection&& value) { SetProjection(std::move(value)); return *this;}
94
96
101 inline long long GetIndexSizeBytes() const{ return m_indexSizeBytes; }
102 inline bool IndexSizeBytesHasBeenSet() const { return m_indexSizeBytesHasBeenSet; }
103 inline void SetIndexSizeBytes(long long value) { m_indexSizeBytesHasBeenSet = true; m_indexSizeBytes = value; }
104 inline LocalSecondaryIndexDescription& WithIndexSizeBytes(long long value) { SetIndexSizeBytes(value); return *this;}
106
108
113 inline long long GetItemCount() const{ return m_itemCount; }
114 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
115 inline void SetItemCount(long long value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
116 inline LocalSecondaryIndexDescription& WithItemCount(long long value) { SetItemCount(value); return *this;}
118
120
123 inline const Aws::String& GetIndexArn() const{ return m_indexArn; }
124 inline bool IndexArnHasBeenSet() const { return m_indexArnHasBeenSet; }
125 inline void SetIndexArn(const Aws::String& value) { m_indexArnHasBeenSet = true; m_indexArn = value; }
126 inline void SetIndexArn(Aws::String&& value) { m_indexArnHasBeenSet = true; m_indexArn = std::move(value); }
127 inline void SetIndexArn(const char* value) { m_indexArnHasBeenSet = true; m_indexArn.assign(value); }
128 inline LocalSecondaryIndexDescription& WithIndexArn(const Aws::String& value) { SetIndexArn(value); return *this;}
129 inline LocalSecondaryIndexDescription& WithIndexArn(Aws::String&& value) { SetIndexArn(std::move(value)); return *this;}
130 inline LocalSecondaryIndexDescription& WithIndexArn(const char* value) { SetIndexArn(value); return *this;}
132 private:
133
134 Aws::String m_indexName;
135 bool m_indexNameHasBeenSet = false;
136
138 bool m_keySchemaHasBeenSet = false;
139
140 Projection m_projection;
141 bool m_projectionHasBeenSet = false;
142
143 long long m_indexSizeBytes;
144 bool m_indexSizeBytesHasBeenSet = false;
145
146 long long m_itemCount;
147 bool m_itemCountHasBeenSet = false;
148
149 Aws::String m_indexArn;
150 bool m_indexArnHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace DynamoDB
155} // namespace Aws
LocalSecondaryIndexDescription & WithProjection(Projection &&value)
AWS_DYNAMODB_API LocalSecondaryIndexDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
LocalSecondaryIndexDescription & WithIndexName(const char *value)
LocalSecondaryIndexDescription & WithKeySchema(const Aws::Vector< KeySchemaElement > &value)
LocalSecondaryIndexDescription & WithIndexArn(const Aws::String &value)
LocalSecondaryIndexDescription & AddKeySchema(KeySchemaElement &&value)
LocalSecondaryIndexDescription & AddKeySchema(const KeySchemaElement &value)
AWS_DYNAMODB_API LocalSecondaryIndexDescription(Aws::Utils::Json::JsonView jsonValue)
LocalSecondaryIndexDescription & WithIndexName(Aws::String &&value)
void SetKeySchema(const Aws::Vector< KeySchemaElement > &value)
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
LocalSecondaryIndexDescription & WithIndexSizeBytes(long long value)
LocalSecondaryIndexDescription & WithIndexArn(Aws::String &&value)
LocalSecondaryIndexDescription & WithKeySchema(Aws::Vector< KeySchemaElement > &&value)
LocalSecondaryIndexDescription & WithIndexName(const Aws::String &value)
LocalSecondaryIndexDescription & WithProjection(const Projection &value)
LocalSecondaryIndexDescription & WithItemCount(long long value)
LocalSecondaryIndexDescription & WithIndexArn(const char *value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeySchema(Aws::Vector< KeySchemaElement > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue