AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ClusterPendingUpdates.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/memorydb/MemoryDB_EXPORTS.h>
10#include <aws/memorydb/model/ACLsUpdateStatus.h>
11#include <aws/memorydb/model/PendingModifiedServiceUpdate.h>
12#include <aws/memorydb/model/ReshardingStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace MemoryDB {
23namespace Model {
24
31 public:
32 AWS_MEMORYDB_API ClusterPendingUpdates() = default;
33 AWS_MEMORYDB_API ClusterPendingUpdates(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_MEMORYDB_API ClusterPendingUpdates& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const ReshardingStatus& GetResharding() const { return m_resharding; }
42 inline bool ReshardingHasBeenSet() const { return m_reshardingHasBeenSet; }
43 template <typename ReshardingT = ReshardingStatus>
44 void SetResharding(ReshardingT&& value) {
45 m_reshardingHasBeenSet = true;
46 m_resharding = std::forward<ReshardingT>(value);
47 }
48 template <typename ReshardingT = ReshardingStatus>
49 ClusterPendingUpdates& WithResharding(ReshardingT&& value) {
50 SetResharding(std::forward<ReshardingT>(value));
51 return *this;
52 }
54
56
59 inline const ACLsUpdateStatus& GetACLs() const { return m_aCLs; }
60 inline bool ACLsHasBeenSet() const { return m_aCLsHasBeenSet; }
61 template <typename ACLsT = ACLsUpdateStatus>
62 void SetACLs(ACLsT&& value) {
63 m_aCLsHasBeenSet = true;
64 m_aCLs = std::forward<ACLsT>(value);
65 }
66 template <typename ACLsT = ACLsUpdateStatus>
68 SetACLs(std::forward<ACLsT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<PendingModifiedServiceUpdate>& GetServiceUpdates() const { return m_serviceUpdates; }
78 inline bool ServiceUpdatesHasBeenSet() const { return m_serviceUpdatesHasBeenSet; }
79 template <typename ServiceUpdatesT = Aws::Vector<PendingModifiedServiceUpdate>>
80 void SetServiceUpdates(ServiceUpdatesT&& value) {
81 m_serviceUpdatesHasBeenSet = true;
82 m_serviceUpdates = std::forward<ServiceUpdatesT>(value);
83 }
84 template <typename ServiceUpdatesT = Aws::Vector<PendingModifiedServiceUpdate>>
85 ClusterPendingUpdates& WithServiceUpdates(ServiceUpdatesT&& value) {
86 SetServiceUpdates(std::forward<ServiceUpdatesT>(value));
87 return *this;
88 }
89 template <typename ServiceUpdatesT = PendingModifiedServiceUpdate>
90 ClusterPendingUpdates& AddServiceUpdates(ServiceUpdatesT&& value) {
91 m_serviceUpdatesHasBeenSet = true;
92 m_serviceUpdates.emplace_back(std::forward<ServiceUpdatesT>(value));
93 return *this;
94 }
96 private:
97 ReshardingStatus m_resharding;
98
99 ACLsUpdateStatus m_aCLs;
100
102 bool m_reshardingHasBeenSet = false;
103 bool m_aCLsHasBeenSet = false;
104 bool m_serviceUpdatesHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace MemoryDB
109} // namespace Aws
const Aws::Vector< PendingModifiedServiceUpdate > & GetServiceUpdates() const
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ClusterPendingUpdates & AddServiceUpdates(ServiceUpdatesT &&value)
ClusterPendingUpdates & WithServiceUpdates(ServiceUpdatesT &&value)
AWS_MEMORYDB_API ClusterPendingUpdates()=default
ClusterPendingUpdates & WithResharding(ReshardingT &&value)
AWS_MEMORYDB_API ClusterPendingUpdates(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MEMORYDB_API ClusterPendingUpdates & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ClusterPendingUpdates & WithACLs(ACLsT &&value)
const ReshardingStatus & GetResharding() const
std::vector< T, Aws::Allocator< T > > Vector