AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/model/JobStatus.h>
10#include <aws/iot/model/TargetSelection.h>
11#include <aws/core/utils/memory/stl/AWSString.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 ListJobsRequest() = 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 "ListJobs"; }
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
48 inline JobStatus GetStatus() const { return m_status; }
49 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
51 inline ListJobsRequest& WithStatus(JobStatus value) { SetStatus(value); return *this;}
53
55
66 inline TargetSelection GetTargetSelection() const { return m_targetSelection; }
67 inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
68 inline void SetTargetSelection(TargetSelection value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; }
71
73
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
79 inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
81
83
86 inline const Aws::String& GetNextToken() const { return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 template<typename NextTokenT = Aws::String>
89 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
90 template<typename NextTokenT = Aws::String>
91 ListJobsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
93
95
98 inline const Aws::String& GetThingGroupName() const { return m_thingGroupName; }
99 inline bool ThingGroupNameHasBeenSet() const { return m_thingGroupNameHasBeenSet; }
100 template<typename ThingGroupNameT = Aws::String>
101 void SetThingGroupName(ThingGroupNameT&& value) { m_thingGroupNameHasBeenSet = true; m_thingGroupName = std::forward<ThingGroupNameT>(value); }
102 template<typename ThingGroupNameT = Aws::String>
103 ListJobsRequest& WithThingGroupName(ThingGroupNameT&& value) { SetThingGroupName(std::forward<ThingGroupNameT>(value)); return *this;}
105
107
110 inline const Aws::String& GetThingGroupId() const { return m_thingGroupId; }
111 inline bool ThingGroupIdHasBeenSet() const { return m_thingGroupIdHasBeenSet; }
112 template<typename ThingGroupIdT = Aws::String>
113 void SetThingGroupId(ThingGroupIdT&& value) { m_thingGroupIdHasBeenSet = true; m_thingGroupId = std::forward<ThingGroupIdT>(value); }
114 template<typename ThingGroupIdT = Aws::String>
115 ListJobsRequest& WithThingGroupId(ThingGroupIdT&& value) { SetThingGroupId(std::forward<ThingGroupIdT>(value)); return *this;}
117
119
130 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
131 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
132 template<typename NamespaceIdT = Aws::String>
133 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::forward<NamespaceIdT>(value); }
134 template<typename NamespaceIdT = Aws::String>
135 ListJobsRequest& WithNamespaceId(NamespaceIdT&& value) { SetNamespaceId(std::forward<NamespaceIdT>(value)); return *this;}
137 private:
138
140 bool m_statusHasBeenSet = false;
141
142 TargetSelection m_targetSelection{TargetSelection::NOT_SET};
143 bool m_targetSelectionHasBeenSet = false;
144
145 int m_maxResults{0};
146 bool m_maxResultsHasBeenSet = false;
147
148 Aws::String m_nextToken;
149 bool m_nextTokenHasBeenSet = false;
150
151 Aws::String m_thingGroupName;
152 bool m_thingGroupNameHasBeenSet = false;
153
154 Aws::String m_thingGroupId;
155 bool m_thingGroupIdHasBeenSet = false;
156
157 Aws::String m_namespaceId;
158 bool m_namespaceIdHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace IoT
163} // namespace Aws
void SetNamespaceId(NamespaceIdT &&value)
AWS_IOT_API ListJobsRequest()=default
void SetNextToken(NextTokenT &&value)
void SetThingGroupName(ThingGroupNameT &&value)
ListJobsRequest & WithNamespaceId(NamespaceIdT &&value)
const Aws::String & GetThingGroupId() const
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetTargetSelection(TargetSelection value)
ListJobsRequest & WithTargetSelection(TargetSelection value)
ListJobsRequest & WithStatus(JobStatus value)
ListJobsRequest & WithThingGroupId(ThingGroupIdT &&value)
const Aws::String & GetNextToken() const
AWS_IOT_API Aws::String SerializePayload() const override
ListJobsRequest & WithMaxResults(int value)
const Aws::String & GetThingGroupName() const
ListJobsRequest & WithThingGroupName(ThingGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNamespaceId() const
void SetThingGroupId(ThingGroupIdT &&value)
TargetSelection GetTargetSelection() const
ListJobsRequest & WithNextToken(NextTokenT &&value)
void SetStatus(JobStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String