AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
LocalSecondaryIndexInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/KeySchemaElement.h>
11#include <aws/dynamodb/model/Projection.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB {
23namespace Model {
24
32 public:
33 AWS_DYNAMODB_API LocalSecondaryIndexInfo() = default;
36 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetIndexName() const { return m_indexName; }
43 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
44 template <typename IndexNameT = Aws::String>
45 void SetIndexName(IndexNameT&& value) {
46 m_indexNameHasBeenSet = true;
47 m_indexName = std::forward<IndexNameT>(value);
48 }
49 template <typename IndexNameT = Aws::String>
51 SetIndexName(std::forward<IndexNameT>(value));
52 return *this;
53 }
55
57
69 inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const { return m_keySchema; }
70 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
71 template <typename KeySchemaT = Aws::Vector<KeySchemaElement>>
72 void SetKeySchema(KeySchemaT&& value) {
73 m_keySchemaHasBeenSet = true;
74 m_keySchema = std::forward<KeySchemaT>(value);
75 }
76 template <typename KeySchemaT = Aws::Vector<KeySchemaElement>>
78 SetKeySchema(std::forward<KeySchemaT>(value));
79 return *this;
80 }
81 template <typename KeySchemaT = KeySchemaElement>
83 m_keySchemaHasBeenSet = true;
84 m_keySchema.emplace_back(std::forward<KeySchemaT>(value));
85 return *this;
86 }
88
90
95 inline const Projection& GetProjection() const { return m_projection; }
96 inline bool ProjectionHasBeenSet() const { return m_projectionHasBeenSet; }
97 template <typename ProjectionT = Projection>
98 void SetProjection(ProjectionT&& value) {
99 m_projectionHasBeenSet = true;
100 m_projection = std::forward<ProjectionT>(value);
101 }
102 template <typename ProjectionT = Projection>
104 SetProjection(std::forward<ProjectionT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_indexName;
110
112
113 Projection m_projection;
114 bool m_indexNameHasBeenSet = false;
115 bool m_keySchemaHasBeenSet = false;
116 bool m_projectionHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace DynamoDB
121} // namespace Aws
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
AWS_DYNAMODB_API LocalSecondaryIndexInfo()=default
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
LocalSecondaryIndexInfo & WithIndexName(IndexNameT &&value)
LocalSecondaryIndexInfo & AddKeySchema(KeySchemaT &&value)
LocalSecondaryIndexInfo & WithProjection(ProjectionT &&value)
LocalSecondaryIndexInfo & WithKeySchema(KeySchemaT &&value)
AWS_DYNAMODB_API LocalSecondaryIndexInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API LocalSecondaryIndexInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue