AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LocalSecondaryIndexInfo.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 LocalSecondaryIndexInfo() = default;
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 template<typename IndexNameT = Aws::String>
51 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
52 template<typename IndexNameT = Aws::String>
53 LocalSecondaryIndexInfo& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
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) { m_keySchemaHasBeenSet = true; m_keySchema = std::forward<KeySchemaT>(value); }
73 template<typename KeySchemaT = Aws::Vector<KeySchemaElement>>
74 LocalSecondaryIndexInfo& WithKeySchema(KeySchemaT&& value) { SetKeySchema(std::forward<KeySchemaT>(value)); return *this;}
75 template<typename KeySchemaT = KeySchemaElement>
76 LocalSecondaryIndexInfo& AddKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema.emplace_back(std::forward<KeySchemaT>(value)); return *this; }
78
80
85 inline const Projection& GetProjection() const { return m_projection; }
86 inline bool ProjectionHasBeenSet() const { return m_projectionHasBeenSet; }
87 template<typename ProjectionT = Projection>
88 void SetProjection(ProjectionT&& value) { m_projectionHasBeenSet = true; m_projection = std::forward<ProjectionT>(value); }
89 template<typename ProjectionT = Projection>
90 LocalSecondaryIndexInfo& WithProjection(ProjectionT&& value) { SetProjection(std::forward<ProjectionT>(value)); return *this;}
92 private:
93
94 Aws::String m_indexName;
95 bool m_indexNameHasBeenSet = false;
96
98 bool m_keySchemaHasBeenSet = false;
99
100 Projection m_projection;
101 bool m_projectionHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace DynamoDB
106} // 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