AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescribeServiceUpdatesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/memorydb/MemoryDBRequest.h>
10#include <aws/memorydb/MemoryDB_EXPORTS.h>
11#include <aws/memorydb/model/ServiceUpdateStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MemoryDB {
17namespace Model {
18
22 public:
23 AWS_MEMORYDB_API DescribeServiceUpdatesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeServiceUpdates"; }
30
31 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetServiceUpdateName() const { return m_serviceUpdateName; }
40 inline bool ServiceUpdateNameHasBeenSet() const { return m_serviceUpdateNameHasBeenSet; }
41 template <typename ServiceUpdateNameT = Aws::String>
42 void SetServiceUpdateName(ServiceUpdateNameT&& value) {
43 m_serviceUpdateNameHasBeenSet = true;
44 m_serviceUpdateName = std::forward<ServiceUpdateNameT>(value);
45 }
46 template <typename ServiceUpdateNameT = Aws::String>
48 SetServiceUpdateName(std::forward<ServiceUpdateNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetClusterNames() const { return m_clusterNames; }
58 inline bool ClusterNamesHasBeenSet() const { return m_clusterNamesHasBeenSet; }
59 template <typename ClusterNamesT = Aws::Vector<Aws::String>>
60 void SetClusterNames(ClusterNamesT&& value) {
61 m_clusterNamesHasBeenSet = true;
62 m_clusterNames = std::forward<ClusterNamesT>(value);
63 }
64 template <typename ClusterNamesT = Aws::Vector<Aws::String>>
66 SetClusterNames(std::forward<ClusterNamesT>(value));
67 return *this;
68 }
69 template <typename ClusterNamesT = Aws::String>
71 m_clusterNamesHasBeenSet = true;
72 m_clusterNames.emplace_back(std::forward<ClusterNamesT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<ServiceUpdateStatus>& GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 template <typename StatusT = Aws::Vector<ServiceUpdateStatus>>
84 void SetStatus(StatusT&& value) {
85 m_statusHasBeenSet = true;
86 m_status = std::forward<StatusT>(value);
87 }
88 template <typename StatusT = Aws::Vector<ServiceUpdateStatus>>
90 SetStatus(std::forward<StatusT>(value));
91 return *this;
92 }
94 m_statusHasBeenSet = true;
95 m_status.push_back(value);
96 return *this;
97 }
99
101
106 inline int GetMaxResults() const { return m_maxResults; }
107 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
108 inline void SetMaxResults(int value) {
109 m_maxResultsHasBeenSet = true;
110 m_maxResults = value;
111 }
113 SetMaxResults(value);
114 return *this;
115 }
117
119
126 inline const Aws::String& GetNextToken() const { return m_nextToken; }
127 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
128 template <typename NextTokenT = Aws::String>
129 void SetNextToken(NextTokenT&& value) {
130 m_nextTokenHasBeenSet = true;
131 m_nextToken = std::forward<NextTokenT>(value);
132 }
133 template <typename NextTokenT = Aws::String>
135 SetNextToken(std::forward<NextTokenT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_serviceUpdateName;
141
142 Aws::Vector<Aws::String> m_clusterNames;
143
145
146 int m_maxResults{0};
147
148 Aws::String m_nextToken;
149 bool m_serviceUpdateNameHasBeenSet = false;
150 bool m_clusterNamesHasBeenSet = false;
151 bool m_statusHasBeenSet = false;
152 bool m_maxResultsHasBeenSet = false;
153 bool m_nextTokenHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace MemoryDB
158} // namespace Aws
DescribeServiceUpdatesRequest & WithNextToken(NextTokenT &&value)
AWS_MEMORYDB_API Aws::String SerializePayload() const override
AWS_MEMORYDB_API DescribeServiceUpdatesRequest()=default
DescribeServiceUpdatesRequest & WithServiceUpdateName(ServiceUpdateNameT &&value)
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ServiceUpdateStatus > & GetStatus() const
DescribeServiceUpdatesRequest & WithStatus(StatusT &&value)
DescribeServiceUpdatesRequest & WithMaxResults(int value)
const Aws::Vector< Aws::String > & GetClusterNames() const
DescribeServiceUpdatesRequest & AddStatus(ServiceUpdateStatus value)
DescribeServiceUpdatesRequest & WithClusterNames(ClusterNamesT &&value)
DescribeServiceUpdatesRequest & AddClusterNames(ClusterNamesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector