AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListExecutionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/snow-device-management/SnowDeviceManagementRequest.h>
9#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
10#include <aws/snow-device-management/model/ExecutionState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace SnowDeviceManagement {
19namespace Model {
20
24 public:
25 AWS_SNOWDEVICEMANAGEMENT_API ListExecutionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListExecutions"; }
32
33 AWS_SNOWDEVICEMANAGEMENT_API Aws::String SerializePayload() const override;
34
35 AWS_SNOWDEVICEMANAGEMENT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline int GetMaxResults() const { return m_maxResults; }
42 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
43 inline void SetMaxResults(int value) {
44 m_maxResultsHasBeenSet = true;
45 m_maxResults = value;
46 }
48 SetMaxResults(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
65 ListExecutionsRequest& WithNextToken(NextTokenT&& value) {
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
75 inline ExecutionState GetState() const { return m_state; }
76 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
77 inline void SetState(ExecutionState value) {
78 m_stateHasBeenSet = true;
79 m_state = value;
80 }
82 SetState(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetTaskId() const { return m_taskId; }
92 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
93 template <typename TaskIdT = Aws::String>
94 void SetTaskId(TaskIdT&& value) {
95 m_taskIdHasBeenSet = true;
96 m_taskId = std::forward<TaskIdT>(value);
97 }
98 template <typename TaskIdT = Aws::String>
100 SetTaskId(std::forward<TaskIdT>(value));
101 return *this;
102 }
104 private:
105 int m_maxResults{0};
106
107 Aws::String m_nextToken;
108
110
111 Aws::String m_taskId;
112 bool m_maxResultsHasBeenSet = false;
113 bool m_nextTokenHasBeenSet = false;
114 bool m_stateHasBeenSet = false;
115 bool m_taskIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace SnowDeviceManagement
120} // namespace Aws
ListExecutionsRequest & WithNextToken(NextTokenT &&value)
ListExecutionsRequest & WithTaskId(TaskIdT &&value)
AWS_SNOWDEVICEMANAGEMENT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListExecutionsRequest & WithState(ExecutionState value)
AWS_SNOWDEVICEMANAGEMENT_API ListExecutionsRequest()=default
AWS_SNOWDEVICEMANAGEMENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String