AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LocalSecondaryIndex.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:
38 AWS_DYNAMODB_API LocalSecondaryIndex() = default;
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetIndexName() const { return m_indexName; }
50 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
51 template<typename IndexNameT = Aws::String>
52 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
53 template<typename IndexNameT = Aws::String>
54 LocalSecondaryIndex& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
56
58
70 inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const { return m_keySchema; }
71 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
72 template<typename KeySchemaT = Aws::Vector<KeySchemaElement>>
73 void SetKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema = std::forward<KeySchemaT>(value); }
74 template<typename KeySchemaT = Aws::Vector<KeySchemaElement>>
75 LocalSecondaryIndex& WithKeySchema(KeySchemaT&& value) { SetKeySchema(std::forward<KeySchemaT>(value)); return *this;}
76 template<typename KeySchemaT = KeySchemaElement>
77 LocalSecondaryIndex& AddKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema.emplace_back(std::forward<KeySchemaT>(value)); return *this; }
79
81
86 inline const Projection& GetProjection() const { return m_projection; }
87 inline bool ProjectionHasBeenSet() const { return m_projectionHasBeenSet; }
88 template<typename ProjectionT = Projection>
89 void SetProjection(ProjectionT&& value) { m_projectionHasBeenSet = true; m_projection = std::forward<ProjectionT>(value); }
90 template<typename ProjectionT = Projection>
91 LocalSecondaryIndex& WithProjection(ProjectionT&& value) { SetProjection(std::forward<ProjectionT>(value)); return *this;}
93 private:
94
95 Aws::String m_indexName;
96 bool m_indexNameHasBeenSet = false;
97
99 bool m_keySchemaHasBeenSet = false;
100
101 Projection m_projection;
102 bool m_projectionHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace DynamoDB
107} // namespace Aws
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
LocalSecondaryIndex & WithIndexName(IndexNameT &&value)
LocalSecondaryIndex & WithProjection(ProjectionT &&value)
AWS_DYNAMODB_API LocalSecondaryIndex(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API LocalSecondaryIndex()=default
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
LocalSecondaryIndex & AddKeySchema(KeySchemaT &&value)
LocalSecondaryIndex & WithKeySchema(KeySchemaT &&value)
AWS_DYNAMODB_API LocalSecondaryIndex & 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