AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CancelJobExecutionRequest.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/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoT
20{
21namespace 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_IOT_API Aws::String SerializePayload() const override;
38
39 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::String& GetJobId() const{ return m_jobId; }
47 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
48 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
49 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
50 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
51 inline CancelJobExecutionRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
52 inline CancelJobExecutionRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
53 inline CancelJobExecutionRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
55
57
60 inline const Aws::String& GetThingName() const{ return m_thingName; }
61 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
62 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
63 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
64 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
65 inline CancelJobExecutionRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
66 inline CancelJobExecutionRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
67 inline CancelJobExecutionRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
69
71
81 inline bool GetForce() const{ return m_force; }
82 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
83 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
84 inline CancelJobExecutionRequest& WithForce(bool value) { SetForce(value); return *this;}
86
88
97 inline long long GetExpectedVersion() const{ return m_expectedVersion; }
98 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
99 inline void SetExpectedVersion(long long value) { m_expectedVersionHasBeenSet = true; m_expectedVersion = value; }
100 inline CancelJobExecutionRequest& WithExpectedVersion(long long value) { SetExpectedVersion(value); return *this;}
102
104
109 inline const Aws::Map<Aws::String, Aws::String>& GetStatusDetails() const{ return m_statusDetails; }
110 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
111 inline void SetStatusDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = value; }
112 inline void SetStatusDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails = std::move(value); }
115 inline CancelJobExecutionRequest& AddStatusDetails(const Aws::String& key, const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, value); return *this; }
116 inline CancelJobExecutionRequest& AddStatusDetails(Aws::String&& key, const Aws::String& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), value); return *this; }
117 inline CancelJobExecutionRequest& AddStatusDetails(const Aws::String& key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, std::move(value)); return *this; }
118 inline CancelJobExecutionRequest& AddStatusDetails(Aws::String&& key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), std::move(value)); return *this; }
119 inline CancelJobExecutionRequest& AddStatusDetails(const char* key, Aws::String&& value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, std::move(value)); return *this; }
120 inline CancelJobExecutionRequest& AddStatusDetails(Aws::String&& key, const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(std::move(key), value); return *this; }
121 inline CancelJobExecutionRequest& AddStatusDetails(const char* key, const char* value) { m_statusDetailsHasBeenSet = true; m_statusDetails.emplace(key, value); return *this; }
123 private:
124
125 Aws::String m_jobId;
126 bool m_jobIdHasBeenSet = false;
127
128 Aws::String m_thingName;
129 bool m_thingNameHasBeenSet = false;
130
131 bool m_force;
132 bool m_forceHasBeenSet = false;
133
134 long long m_expectedVersion;
135 bool m_expectedVersionHasBeenSet = false;
136
138 bool m_statusDetailsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace IoT
143} // namespace Aws
CancelJobExecutionRequest & WithJobId(const Aws::String &value)
CancelJobExecutionRequest & WithExpectedVersion(long long value)
CancelJobExecutionRequest & AddStatusDetails(const Aws::String &key, const Aws::String &value)
CancelJobExecutionRequest & WithThingName(const Aws::String &value)
CancelJobExecutionRequest & AddStatusDetails(const Aws::String &key, Aws::String &&value)
CancelJobExecutionRequest & WithStatusDetails(Aws::Map< Aws::String, Aws::String > &&value)
CancelJobExecutionRequest & WithStatusDetails(const Aws::Map< Aws::String, Aws::String > &value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CancelJobExecutionRequest & AddStatusDetails(Aws::String &&key, const Aws::String &value)
CancelJobExecutionRequest & AddStatusDetails(Aws::String &&key, const char *value)
CancelJobExecutionRequest & WithJobId(const char *value)
void SetStatusDetails(const Aws::Map< Aws::String, Aws::String > &value)
void SetStatusDetails(Aws::Map< Aws::String, Aws::String > &&value)
CancelJobExecutionRequest & AddStatusDetails(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CancelJobExecutionRequest & WithJobId(Aws::String &&value)
CancelJobExecutionRequest & WithThingName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetStatusDetails() const
AWS_IOT_API Aws::String SerializePayload() const override
CancelJobExecutionRequest & WithForce(bool value)
CancelJobExecutionRequest & AddStatusDetails(const char *key, const char *value)
CancelJobExecutionRequest & WithThingName(const char *value)
CancelJobExecutionRequest & AddStatusDetails(Aws::String &&key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String