AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateGlobalSecondaryIndexAction.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/ProvisionedThroughput.h>
12#include <aws/dynamodb/model/OnDemandThroughput.h>
13#include <aws/dynamodb/model/WarmThroughput.h>
14#include <aws/dynamodb/model/KeySchemaElement.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DynamoDB
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_DYNAMODB_API CreateGlobalSecondaryIndexAction() = default;
44 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetIndexName() const { return m_indexName; }
52 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
53 template<typename IndexNameT = Aws::String>
54 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
55 template<typename IndexNameT = Aws::String>
56 CreateGlobalSecondaryIndexAction& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
58
60
63 inline const Aws::Vector<KeySchemaElement>& GetKeySchema() const { return m_keySchema; }
64 inline bool KeySchemaHasBeenSet() const { return m_keySchemaHasBeenSet; }
65 template<typename KeySchemaT = Aws::Vector<KeySchemaElement>>
66 void SetKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema = std::forward<KeySchemaT>(value); }
67 template<typename KeySchemaT = Aws::Vector<KeySchemaElement>>
68 CreateGlobalSecondaryIndexAction& WithKeySchema(KeySchemaT&& value) { SetKeySchema(std::forward<KeySchemaT>(value)); return *this;}
69 template<typename KeySchemaT = KeySchemaElement>
70 CreateGlobalSecondaryIndexAction& AddKeySchema(KeySchemaT&& value) { m_keySchemaHasBeenSet = true; m_keySchema.emplace_back(std::forward<KeySchemaT>(value)); return *this; }
72
74
79 inline const Projection& GetProjection() const { return m_projection; }
80 inline bool ProjectionHasBeenSet() const { return m_projectionHasBeenSet; }
81 template<typename ProjectionT = Projection>
82 void SetProjection(ProjectionT&& value) { m_projectionHasBeenSet = true; m_projection = std::forward<ProjectionT>(value); }
83 template<typename ProjectionT = Projection>
84 CreateGlobalSecondaryIndexAction& WithProjection(ProjectionT&& value) { SetProjection(std::forward<ProjectionT>(value)); return *this;}
86
88
95 inline const ProvisionedThroughput& GetProvisionedThroughput() const { return m_provisionedThroughput; }
96 inline bool ProvisionedThroughputHasBeenSet() const { return m_provisionedThroughputHasBeenSet; }
97 template<typename ProvisionedThroughputT = ProvisionedThroughput>
98 void SetProvisionedThroughput(ProvisionedThroughputT&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = std::forward<ProvisionedThroughputT>(value); }
99 template<typename ProvisionedThroughputT = ProvisionedThroughput>
100 CreateGlobalSecondaryIndexAction& WithProvisionedThroughput(ProvisionedThroughputT&& value) { SetProvisionedThroughput(std::forward<ProvisionedThroughputT>(value)); return *this;}
102
104
111 inline const OnDemandThroughput& GetOnDemandThroughput() const { return m_onDemandThroughput; }
112 inline bool OnDemandThroughputHasBeenSet() const { return m_onDemandThroughputHasBeenSet; }
113 template<typename OnDemandThroughputT = OnDemandThroughput>
114 void SetOnDemandThroughput(OnDemandThroughputT&& value) { m_onDemandThroughputHasBeenSet = true; m_onDemandThroughput = std::forward<OnDemandThroughputT>(value); }
115 template<typename OnDemandThroughputT = OnDemandThroughput>
116 CreateGlobalSecondaryIndexAction& WithOnDemandThroughput(OnDemandThroughputT&& value) { SetOnDemandThroughput(std::forward<OnDemandThroughputT>(value)); return *this;}
118
120
124 inline const WarmThroughput& GetWarmThroughput() const { return m_warmThroughput; }
125 inline bool WarmThroughputHasBeenSet() const { return m_warmThroughputHasBeenSet; }
126 template<typename WarmThroughputT = WarmThroughput>
127 void SetWarmThroughput(WarmThroughputT&& value) { m_warmThroughputHasBeenSet = true; m_warmThroughput = std::forward<WarmThroughputT>(value); }
128 template<typename WarmThroughputT = WarmThroughput>
129 CreateGlobalSecondaryIndexAction& WithWarmThroughput(WarmThroughputT&& value) { SetWarmThroughput(std::forward<WarmThroughputT>(value)); return *this;}
131 private:
132
133 Aws::String m_indexName;
134 bool m_indexNameHasBeenSet = false;
135
137 bool m_keySchemaHasBeenSet = false;
138
139 Projection m_projection;
140 bool m_projectionHasBeenSet = false;
141
142 ProvisionedThroughput m_provisionedThroughput;
143 bool m_provisionedThroughputHasBeenSet = false;
144
145 OnDemandThroughput m_onDemandThroughput;
146 bool m_onDemandThroughputHasBeenSet = false;
147
148 WarmThroughput m_warmThroughput;
149 bool m_warmThroughputHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace DynamoDB
154} // namespace Aws
AWS_DYNAMODB_API CreateGlobalSecondaryIndexAction & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateGlobalSecondaryIndexAction & WithIndexName(IndexNameT &&value)
const Aws::Vector< KeySchemaElement > & GetKeySchema() const
CreateGlobalSecondaryIndexAction & WithOnDemandThroughput(OnDemandThroughputT &&value)
CreateGlobalSecondaryIndexAction & AddKeySchema(KeySchemaT &&value)
CreateGlobalSecondaryIndexAction & WithProvisionedThroughput(ProvisionedThroughputT &&value)
AWS_DYNAMODB_API CreateGlobalSecondaryIndexAction()=default
AWS_DYNAMODB_API CreateGlobalSecondaryIndexAction(Aws::Utils::Json::JsonView jsonValue)
CreateGlobalSecondaryIndexAction & WithWarmThroughput(WarmThroughputT &&value)
CreateGlobalSecondaryIndexAction & WithKeySchema(KeySchemaT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
CreateGlobalSecondaryIndexAction & WithProjection(ProjectionT &&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