AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ListCommandsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/CommandNamespace.h>
11#include <aws/iot/model/SortOrder.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace IoT {
20namespace Model {
21
25 public:
26 AWS_IOT_API ListCommandsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListCommands"; }
33
34 AWS_IOT_API Aws::String SerializePayload() const override;
35
36 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
44 inline int GetMaxResults() const { return m_maxResults; }
45 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
46 inline void SetMaxResults(int value) {
47 m_maxResultsHasBeenSet = true;
48 m_maxResults = value;
49 }
51 SetMaxResults(value);
52 return *this;
53 }
55
57
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListCommandsRequest& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
84 inline CommandNamespace GetNamespace() const { return m_namespace; }
85 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
86 inline void SetNamespace(CommandNamespace value) {
87 m_namespaceHasBeenSet = true;
88 m_namespace = value;
89 }
91 SetNamespace(value);
92 return *this;
93 }
95
97
101 inline const Aws::String& GetCommandParameterName() const { return m_commandParameterName; }
102 inline bool CommandParameterNameHasBeenSet() const { return m_commandParameterNameHasBeenSet; }
103 template <typename CommandParameterNameT = Aws::String>
104 void SetCommandParameterName(CommandParameterNameT&& value) {
105 m_commandParameterNameHasBeenSet = true;
106 m_commandParameterName = std::forward<CommandParameterNameT>(value);
107 }
108 template <typename CommandParameterNameT = Aws::String>
109 ListCommandsRequest& WithCommandParameterName(CommandParameterNameT&& value) {
110 SetCommandParameterName(std::forward<CommandParameterNameT>(value));
111 return *this;
112 }
114
116
121 inline SortOrder GetSortOrder() const { return m_sortOrder; }
122 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
123 inline void SetSortOrder(SortOrder value) {
124 m_sortOrderHasBeenSet = true;
125 m_sortOrder = value;
126 }
128 SetSortOrder(value);
129 return *this;
130 }
132 private:
133 int m_maxResults{0};
134
135 Aws::String m_nextToken;
136
138
139 Aws::String m_commandParameterName;
140
141 SortOrder m_sortOrder{SortOrder::NOT_SET};
142 bool m_maxResultsHasBeenSet = false;
143 bool m_nextTokenHasBeenSet = false;
144 bool m_namespaceHasBeenSet = false;
145 bool m_commandParameterNameHasBeenSet = false;
146 bool m_sortOrderHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace IoT
151} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
const Aws::String & GetNextToken() const
ListCommandsRequest & WithCommandParameterName(CommandParameterNameT &&value)
void SetNamespace(CommandNamespace value)
const Aws::String & GetCommandParameterName() const
ListCommandsRequest & WithSortOrder(SortOrder value)
virtual const char * GetServiceRequestName() const override
ListCommandsRequest & WithNamespace(CommandNamespace value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListCommandsRequest & WithNextToken(NextTokenT &&value)
ListCommandsRequest & WithMaxResults(int value)
AWS_IOT_API ListCommandsRequest()=default
void SetCommandParameterName(CommandParameterNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String