AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
GlobalSecondaryIndexUpdate.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/CreateGlobalSecondaryIndexAction.h>
9#include <aws/dynamodb/model/DeleteGlobalSecondaryIndexAction.h>
10#include <aws/dynamodb/model/UpdateGlobalSecondaryIndexAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB {
22namespace Model {
23
34 public:
35 AWS_DYNAMODB_API GlobalSecondaryIndexUpdate() = default;
38 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const UpdateGlobalSecondaryIndexAction& GetUpdate() const { return m_update; }
46 inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; }
47 template <typename UpdateT = UpdateGlobalSecondaryIndexAction>
48 void SetUpdate(UpdateT&& value) {
49 m_updateHasBeenSet = true;
50 m_update = std::forward<UpdateT>(value);
51 }
52 template <typename UpdateT = UpdateGlobalSecondaryIndexAction>
54 SetUpdate(std::forward<UpdateT>(value));
55 return *this;
56 }
58
60
67 inline const CreateGlobalSecondaryIndexAction& GetCreate() const { return m_create; }
68 inline bool CreateHasBeenSet() const { return m_createHasBeenSet; }
69 template <typename CreateT = CreateGlobalSecondaryIndexAction>
70 void SetCreate(CreateT&& value) {
71 m_createHasBeenSet = true;
72 m_create = std::forward<CreateT>(value);
73 }
74 template <typename CreateT = CreateGlobalSecondaryIndexAction>
76 SetCreate(std::forward<CreateT>(value));
77 return *this;
78 }
80
82
85 inline const DeleteGlobalSecondaryIndexAction& GetDelete() const { return m_delete; }
86 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
87 template <typename DeleteT = DeleteGlobalSecondaryIndexAction>
88 void SetDelete(DeleteT&& value) {
89 m_deleteHasBeenSet = true;
90 m_delete = std::forward<DeleteT>(value);
91 }
92 template <typename DeleteT = DeleteGlobalSecondaryIndexAction>
94 SetDelete(std::forward<DeleteT>(value));
95 return *this;
96 }
98 private:
100
102
104 bool m_updateHasBeenSet = false;
105 bool m_createHasBeenSet = false;
106 bool m_deleteHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace DynamoDB
111} // namespace Aws
const DeleteGlobalSecondaryIndexAction & GetDelete() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API GlobalSecondaryIndexUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
GlobalSecondaryIndexUpdate & WithCreate(CreateT &&value)
const CreateGlobalSecondaryIndexAction & GetCreate() const
GlobalSecondaryIndexUpdate & WithUpdate(UpdateT &&value)
const UpdateGlobalSecondaryIndexAction & GetUpdate() const
GlobalSecondaryIndexUpdate & WithDelete(DeleteT &&value)
AWS_DYNAMODB_API GlobalSecondaryIndexUpdate()=default
AWS_DYNAMODB_API GlobalSecondaryIndexUpdate(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue