AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ReplicaUpdate.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/model/CreateReplicaAction.h>
9#include <aws/dynamodb/model/DeleteReplicaAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDB
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_DYNAMODB_API ReplicaUpdate() = default;
39 AWS_DYNAMODB_API ReplicaUpdate(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const CreateReplicaAction& GetCreate() const { return m_create; }
50 inline bool CreateHasBeenSet() const { return m_createHasBeenSet; }
51 template<typename CreateT = CreateReplicaAction>
52 void SetCreate(CreateT&& value) { m_createHasBeenSet = true; m_create = std::forward<CreateT>(value); }
53 template<typename CreateT = CreateReplicaAction>
54 ReplicaUpdate& WithCreate(CreateT&& value) { SetCreate(std::forward<CreateT>(value)); return *this;}
56
58
61 inline const DeleteReplicaAction& GetDelete() const { return m_delete; }
62 inline bool DeleteHasBeenSet() const { return m_deleteHasBeenSet; }
63 template<typename DeleteT = DeleteReplicaAction>
64 void SetDelete(DeleteT&& value) { m_deleteHasBeenSet = true; m_delete = std::forward<DeleteT>(value); }
65 template<typename DeleteT = DeleteReplicaAction>
66 ReplicaUpdate& WithDelete(DeleteT&& value) { SetDelete(std::forward<DeleteT>(value)); return *this;}
68 private:
69
70 CreateReplicaAction m_create;
71 bool m_createHasBeenSet = false;
72
73 DeleteReplicaAction m_delete;
74 bool m_deleteHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace DynamoDB
79} // namespace Aws
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API ReplicaUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
const CreateReplicaAction & GetCreate() const
ReplicaUpdate & WithCreate(CreateT &&value)
AWS_DYNAMODB_API ReplicaUpdate()=default
ReplicaUpdate & WithDelete(DeleteT &&value)
AWS_DYNAMODB_API ReplicaUpdate(Aws::Utils::Json::JsonView jsonValue)
const DeleteReplicaAction & GetDelete() const
Aws::Utils::Json::JsonValue JsonValue