AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListCommandsRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/CommandNamespace.h>
11#include <aws/iot/model/SortOrder.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoT
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOT_API ListCommandsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListCommands"; }
37
38 AWS_IOT_API Aws::String SerializePayload() const override;
39
40 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
49 inline int GetMaxResults() const { return m_maxResults; }
50 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
51 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
52 inline ListCommandsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
54
56
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
63 template<typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
65 template<typename NextTokenT = Aws::String>
66 ListCommandsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
68
70
77 inline CommandNamespace GetNamespace() const { return m_namespace; }
78 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
79 inline void SetNamespace(CommandNamespace value) { m_namespaceHasBeenSet = true; m_namespace = value; }
80 inline ListCommandsRequest& WithNamespace(CommandNamespace value) { SetNamespace(value); return *this;}
82
84
88 inline const Aws::String& GetCommandParameterName() const { return m_commandParameterName; }
89 inline bool CommandParameterNameHasBeenSet() const { return m_commandParameterNameHasBeenSet; }
90 template<typename CommandParameterNameT = Aws::String>
91 void SetCommandParameterName(CommandParameterNameT&& value) { m_commandParameterNameHasBeenSet = true; m_commandParameterName = std::forward<CommandParameterNameT>(value); }
92 template<typename CommandParameterNameT = Aws::String>
93 ListCommandsRequest& WithCommandParameterName(CommandParameterNameT&& value) { SetCommandParameterName(std::forward<CommandParameterNameT>(value)); return *this;}
95
97
102 inline SortOrder GetSortOrder() const { return m_sortOrder; }
103 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
104 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
105 inline ListCommandsRequest& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
107 private:
108
109 int m_maxResults{0};
110 bool m_maxResultsHasBeenSet = false;
111
112 Aws::String m_nextToken;
113 bool m_nextTokenHasBeenSet = false;
114
116 bool m_namespaceHasBeenSet = false;
117
118 Aws::String m_commandParameterName;
119 bool m_commandParameterNameHasBeenSet = false;
120
121 SortOrder m_sortOrder{SortOrder::NOT_SET};
122 bool m_sortOrderHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace IoT
127} // 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