AWS SDK for C++

AWS SDK for C++ Version 1.11.745

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DynamoDB {
21namespace Model {
22
32 public:
33 AWS_DYNAMODB_API ReplicaUpdate() = default;
34 AWS_DYNAMODB_API ReplicaUpdate(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const CreateReplicaAction& GetCreate() const { return m_create; }
44 inline bool CreateHasBeenSet() const { return m_createHasBeenSet; }
45 template <typename CreateT = CreateReplicaAction>
46 void SetCreate(CreateT&& value) {
47 m_createHasBeenSet = true;
48 m_create = std::forward<CreateT>(value);
49 }
50 template <typename CreateT = CreateReplicaAction>
51 ReplicaUpdate& WithCreate(CreateT&& value) {
52 SetCreate(std::forward<CreateT>(value));
53 return *this;
54 }
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) {
65 m_deleteHasBeenSet = true;
66 m_delete = std::forward<DeleteT>(value);
67 }
68 template <typename DeleteT = DeleteReplicaAction>
69 ReplicaUpdate& WithDelete(DeleteT&& value) {
70 SetDelete(std::forward<DeleteT>(value));
71 return *this;
72 }
74 private:
75 CreateReplicaAction m_create;
76
77 DeleteReplicaAction m_delete;
78 bool m_createHasBeenSet = false;
79 bool m_deleteHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace DynamoDB
84} // 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