AWS SDK for C++  1.9.132
AWS SDK for C++
CancelJobExecutionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CancelJobExecution"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::String& GetJobId() const{ return m_jobId; }
46 
50  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
51 
55  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
56 
60  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
61 
65  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
66 
70  inline CancelJobExecutionRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
71 
75  inline CancelJobExecutionRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
76 
80  inline CancelJobExecutionRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
81 
82 
86  inline const Aws::String& GetThingName() const{ return m_thingName; }
87 
91  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
92 
96  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
97 
101  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
102 
106  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
107 
111  inline CancelJobExecutionRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
112 
116  inline CancelJobExecutionRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
117 
121  inline CancelJobExecutionRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
122 
123 
134  inline bool GetForce() const{ return m_force; }
135 
146  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
147 
158  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
159 
170  inline CancelJobExecutionRequest& WithForce(bool value) { SetForce(value); return *this;}
171 
172 
182  inline long long GetExpectedVersion() const{ return m_expectedVersion; }
183 
193  inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
194 
204  inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
205 
215  inline CancelJobExecutionRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
216 
217 
223  inline const Aws::Map<Aws::String, Aws::String>& GetStatusDetails() const{ return m_statusDetails; }
224 
230  inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
231 
237  inline void SetStatusDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; }
238 
244  inline void SetStatusDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); }
245 
251  inline CancelJobExecutionRequest& WithStatusDetails(const Aws::Map<Aws::String, Aws::String>& value) { SetStatusDetails(value); return *this;}
252 
258  inline CancelJobExecutionRequest& WithStatusDetails(Aws::Map<Aws::String, Aws::String>&& value) { SetStatusDetails(std::move(value)); return *this;}
259 
265  inline CancelJobExecutionRequest& AddStatusDetails(const Aws::String& key, const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, value); return *this; }
266 
272  inline CancelJobExecutionRequest& AddStatusDetails(Aws::String&& key, const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), value); return *this; }
273 
279  inline CancelJobExecutionRequest& AddStatusDetails(const Aws::String& key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, std::move(value)); return *this; }
280 
286  inline CancelJobExecutionRequest& AddStatusDetails(Aws::String&& key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), std::move(value)); return *this; }
287 
293  inline CancelJobExecutionRequest& AddStatusDetails(const char* key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, std::move(value)); return *this; }
294 
300  inline CancelJobExecutionRequest& AddStatusDetails(Aws::String&& key, const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), value); return *this; }
301 
307  inline CancelJobExecutionRequest& AddStatusDetails(const char* key, const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, value); return *this; }
308 
309  private:
310 
311  Aws::String m_jobId;
312  bool m_jobIdHasBeenSet;
313 
314  Aws::String m_thingName;
315  bool m_thingNameHasBeenSet;
316 
317  bool m_force;
318  bool m_forceHasBeenSet;
319 
320  long long m_expectedVersion;
321  bool m_expectedVersionHasBeenSet;
322 
323  Aws::Map<Aws::String, Aws::String> m_statusDetails;
324  bool m_statusDetailsHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace IoT
329 } // namespace Aws
Aws::IoT::Model::CancelJobExecutionRequest::GetExpectedVersion
long long GetExpectedVersion() const
Definition: CancelJobExecutionRequest.h:182
Aws::IoT::Model::CancelJobExecutionRequest::AddStatusDetails
CancelJobExecutionRequest & AddStatusDetails(Aws::String &&key, const Aws::String &value)
Definition: CancelJobExecutionRequest.h:272
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::CancelJobExecutionRequest::ExpectedVersionHasBeenSet
bool ExpectedVersionHasBeenSet() const
Definition: CancelJobExecutionRequest.h:193
Aws::IoT::Model::CancelJobExecutionRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::CancelJobExecutionRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: CancelJobExecutionRequest.h:60
Aws::IoT::Model::CancelJobExecutionRequest::WithStatusDetails
CancelJobExecutionRequest & WithStatusDetails(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CancelJobExecutionRequest.h:251
Aws::IoT::Model::CancelJobExecutionRequest::GetThingName
const Aws::String & GetThingName() const
Definition: CancelJobExecutionRequest.h:86
Aws::IoT::Model::CancelJobExecutionRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: CancelJobExecutionRequest.h:96
Aws::IoT::Model::CancelJobExecutionRequest::GetJobId
const Aws::String & GetJobId() const
Definition: CancelJobExecutionRequest.h:45
Aws::IoT::Model::CancelJobExecutionRequest::WithStatusDetails
CancelJobExecutionRequest & WithStatusDetails(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CancelJobExecutionRequest.h:258
Aws::IoT::Model::CancelJobExecutionRequest::AddStatusDetails
CancelJobExecutionRequest & AddStatusDetails(Aws::String &&key, Aws::String &&value)
Definition: CancelJobExecutionRequest.h:286
Aws::IoT::Model::CancelJobExecutionRequest::SetExpectedVersion
void SetExpectedVersion(long long value)
Definition: CancelJobExecutionRequest.h:204
Aws::IoT::Model::CancelJobExecutionRequest::WithJobId
CancelJobExecutionRequest & WithJobId(const char *value)
Definition: CancelJobExecutionRequest.h:80
Aws::IoT::Model::CancelJobExecutionRequest::SetForce
void SetForce(bool value)
Definition: CancelJobExecutionRequest.h:158
Aws::IoT::Model::CancelJobExecutionRequest::GetForce
bool GetForce() const
Definition: CancelJobExecutionRequest.h:134
Aws::IoT::Model::CancelJobExecutionRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: CancelJobExecutionRequest.h:91
Aws::IoT::Model::CancelJobExecutionRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: CancelJobExecutionRequest.h:55
Aws::IoT::Model::CancelJobExecutionRequest::SetThingName
void SetThingName(const char *value)
Definition: CancelJobExecutionRequest.h:106
Aws::IoT::Model::CancelJobExecutionRequest::SetStatusDetails
void SetStatusDetails(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CancelJobExecutionRequest.h:237
Aws::IoT::Model::CancelJobExecutionRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: CancelJobExecutionRequest.h:146
Aws::IoT::Model::CancelJobExecutionRequest::AddStatusDetails
CancelJobExecutionRequest & AddStatusDetails(const char *key, Aws::String &&value)
Definition: CancelJobExecutionRequest.h:293
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CancelJobExecutionRequest::SetJobId
void SetJobId(const char *value)
Definition: CancelJobExecutionRequest.h:65
Aws::IoT::Model::CancelJobExecutionRequest::WithJobId
CancelJobExecutionRequest & WithJobId(Aws::String &&value)
Definition: CancelJobExecutionRequest.h:75
Aws::IoT::Model::CancelJobExecutionRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: CancelJobExecutionRequest.h:50
Aws::IoT::Model::CancelJobExecutionRequest::AddStatusDetails
CancelJobExecutionRequest & AddStatusDetails(const char *key, const char *value)
Definition: CancelJobExecutionRequest.h:307
Aws::IoT::Model::CancelJobExecutionRequest::SetStatusDetails
void SetStatusDetails(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CancelJobExecutionRequest.h:244
Aws::IoT::Model::CancelJobExecutionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelJobExecutionRequest.h:35
Aws::IoT::Model::CancelJobExecutionRequest::CancelJobExecutionRequest
CancelJobExecutionRequest()
Aws::IoT::Model::CancelJobExecutionRequest::WithJobId
CancelJobExecutionRequest & WithJobId(const Aws::String &value)
Definition: CancelJobExecutionRequest.h:70
Aws::IoT::Model::CancelJobExecutionRequest::WithThingName
CancelJobExecutionRequest & WithThingName(const char *value)
Definition: CancelJobExecutionRequest.h:121
Aws::IoT::Model::CancelJobExecutionRequest::StatusDetailsHasBeenSet
bool StatusDetailsHasBeenSet() const
Definition: CancelJobExecutionRequest.h:230
Aws::IoT::Model::CancelJobExecutionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CancelJobExecutionRequest::WithThingName
CancelJobExecutionRequest & WithThingName(Aws::String &&value)
Definition: CancelJobExecutionRequest.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::CancelJobExecutionRequest::WithThingName
CancelJobExecutionRequest & WithThingName(const Aws::String &value)
Definition: CancelJobExecutionRequest.h:111
Aws::IoT::Model::CancelJobExecutionRequest::GetStatusDetails
const Aws::Map< Aws::String, Aws::String > & GetStatusDetails() const
Definition: CancelJobExecutionRequest.h:223
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::CancelJobExecutionRequest::WithForce
CancelJobExecutionRequest & WithForce(bool value)
Definition: CancelJobExecutionRequest.h:170
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CancelJobExecutionRequest::AddStatusDetails
CancelJobExecutionRequest & AddStatusDetails(const Aws::String &key, const Aws::String &value)
Definition: CancelJobExecutionRequest.h:265
IoTRequest.h
Aws::IoT::Model::CancelJobExecutionRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: CancelJobExecutionRequest.h:101
AWSMap.h
Aws::IoT::Model::CancelJobExecutionRequest::AddStatusDetails
CancelJobExecutionRequest & AddStatusDetails(const Aws::String &key, Aws::String &&value)
Definition: CancelJobExecutionRequest.h:279
Aws::IoT::Model::CancelJobExecutionRequest
Definition: CancelJobExecutionRequest.h:27
Aws::IoT::Model::CancelJobExecutionRequest::AddStatusDetails
CancelJobExecutionRequest & AddStatusDetails(Aws::String &&key, const char *value)
Definition: CancelJobExecutionRequest.h:300
Aws::IoT::Model::CancelJobExecutionRequest::WithExpectedVersion
CancelJobExecutionRequest & WithExpectedVersion(long long value)
Definition: CancelJobExecutionRequest.h:215
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
IoT_EXPORTS.h