AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ListConfigurationsResult.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/mq/MQ_EXPORTS.h>
10#include <aws/mq/model/Configuration.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace MQ {
24namespace Model {
26 public:
27 AWS_MQ_API ListConfigurationsResult() = default;
30
32
35 inline const Aws::Vector<Configuration>& GetConfigurations() const { return m_configurations; }
36 template <typename ConfigurationsT = Aws::Vector<Configuration>>
37 void SetConfigurations(ConfigurationsT&& value) {
38 m_configurationsHasBeenSet = true;
39 m_configurations = std::forward<ConfigurationsT>(value);
40 }
41 template <typename ConfigurationsT = Aws::Vector<Configuration>>
42 ListConfigurationsResult& WithConfigurations(ConfigurationsT&& value) {
43 SetConfigurations(std::forward<ConfigurationsT>(value));
44 return *this;
45 }
46 template <typename ConfigurationsT = Configuration>
47 ListConfigurationsResult& AddConfigurations(ConfigurationsT&& value) {
48 m_configurationsHasBeenSet = true;
49 m_configurations.emplace_back(std::forward<ConfigurationsT>(value));
50 return *this;
51 }
53
55
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline void SetMaxResults(int value) {
61 m_maxResultsHasBeenSet = true;
62 m_maxResults = value;
63 }
65 SetMaxResults(value);
66 return *this;
67 }
69
71
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 private:
103 Aws::Vector<Configuration> m_configurations;
104
105 int m_maxResults{0};
106
107 Aws::String m_nextToken;
108
109 Aws::String m_requestId;
110 bool m_configurationsHasBeenSet = false;
111 bool m_maxResultsHasBeenSet = false;
112 bool m_nextTokenHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace MQ
118} // namespace Aws
ListConfigurationsResult & WithRequestId(RequestIdT &&value)
ListConfigurationsResult & WithConfigurations(ConfigurationsT &&value)
ListConfigurationsResult & AddConfigurations(ConfigurationsT &&value)
AWS_MQ_API ListConfigurationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MQ_API ListConfigurationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MQ_API ListConfigurationsResult()=default
ListConfigurationsResult & WithMaxResults(int value)
ListConfigurationsResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< Configuration > & GetConfigurations() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue