AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GlobalSecondaryIndexUpdate.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/UpdateGlobalSecondaryIndexAction.h>
9#include <aws/dynamodb/model/CreateGlobalSecondaryIndexAction.h>
10#include <aws/dynamodb/model/DeleteGlobalSecondaryIndexAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_DYNAMODB_API GlobalSecondaryIndexUpdate() = default;
43 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const UpdateGlobalSecondaryIndexAction& GetUpdate() const { return m_update; }
52 inline bool UpdateHasBeenSet() const { return m_updateHasBeenSet; }
53 template<typename UpdateT = UpdateGlobalSecondaryIndexAction>
54 void SetUpdate(UpdateT&& value) { m_updateHasBeenSet = true; m_update = std::forward<UpdateT>(value); }
55 template<typename UpdateT = UpdateGlobalSecondaryIndexAction>
56 GlobalSecondaryIndexUpdate& WithUpdate(UpdateT&& value) { SetUpdate(std::forward<UpdateT>(value)); return *this;}
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) { m_createHasBeenSet = true; m_create = std::forward<CreateT>(value); }
71 template<typename CreateT = CreateGlobalSecondaryIndexAction>
72 GlobalSecondaryIndexUpdate& WithCreate(CreateT&& value) { SetCreate(std::forward<CreateT>(value)); return *this;}
74
76
79 inline const DeleteGlobalSecondaryIndexAction& GetDelete() const { return m_delete; }
80 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
81 template<typename DeleteT = DeleteGlobalSecondaryIndexAction>
82 void SetDelete(DeleteT&& value) { m_deleteHasBeenSet = true; m_delete = std::forward<DeleteT>(value); }
83 template<typename DeleteT = DeleteGlobalSecondaryIndexAction>
84 GlobalSecondaryIndexUpdate& WithDelete(DeleteT&& value) { SetDelete(std::forward<DeleteT>(value)); return *this;}
86 private:
87
89 bool m_updateHasBeenSet = false;
90
92 bool m_createHasBeenSet = false;
93
95 bool m_deleteHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace DynamoDB
100} // 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