AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CancelJobExecutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace IoT {
19namespace Model {
20
24 public:
25 AWS_IOT_API CancelJobExecutionRequest() = 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 "CancelJobExecution"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
35 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetJobId() const { return m_jobId; }
42 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
43 template <typename JobIdT = Aws::String>
44 void SetJobId(JobIdT&& value) {
45 m_jobIdHasBeenSet = true;
46 m_jobId = std::forward<JobIdT>(value);
47 }
48 template <typename JobIdT = Aws::String>
50 SetJobId(std::forward<JobIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetThingName() const { return m_thingName; }
60 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
61 template <typename ThingNameT = Aws::String>
62 void SetThingName(ThingNameT&& value) {
63 m_thingNameHasBeenSet = true;
64 m_thingName = std::forward<ThingNameT>(value);
65 }
66 template <typename ThingNameT = Aws::String>
68 SetThingName(std::forward<ThingNameT>(value));
69 return *this;
70 }
72
74
84 inline bool GetForce() const { return m_force; }
85 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
86 inline void SetForce(bool value) {
87 m_forceHasBeenSet = true;
88 m_force = value;
89 }
91 SetForce(value);
92 return *this;
93 }
95
97
106 inline long long GetExpectedVersion() const { return m_expectedVersion; }
107 inline bool ExpectedVersionHasBeenSet() const { return m_expectedVersionHasBeenSet; }
108 inline void SetExpectedVersion(long long value) {
109 m_expectedVersionHasBeenSet = true;
110 m_expectedVersion = value;
111 }
113 SetExpectedVersion(value);
114 return *this;
115 }
117
119
124 inline const Aws::Map<Aws::String, Aws::String>& GetStatusDetails() const { return m_statusDetails; }
125 inline bool StatusDetailsHasBeenSet() const { return m_statusDetailsHasBeenSet; }
126 template <typename StatusDetailsT = Aws::Map<Aws::String, Aws::String>>
127 void SetStatusDetails(StatusDetailsT&& value) {
128 m_statusDetailsHasBeenSet = true;
129 m_statusDetails = std::forward<StatusDetailsT>(value);
130 }
131 template <typename StatusDetailsT = Aws::Map<Aws::String, Aws::String>>
133 SetStatusDetails(std::forward<StatusDetailsT>(value));
134 return *this;
135 }
136 template <typename StatusDetailsKeyT = Aws::String, typename StatusDetailsValueT = Aws::String>
137 CancelJobExecutionRequest& AddStatusDetails(StatusDetailsKeyT&& key, StatusDetailsValueT&& value) {
138 m_statusDetailsHasBeenSet = true;
139 m_statusDetails.emplace(std::forward<StatusDetailsKeyT>(key), std::forward<StatusDetailsValueT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_jobId;
145 bool m_jobIdHasBeenSet = false;
146
147 Aws::String m_thingName;
148 bool m_thingNameHasBeenSet = false;
149
150 bool m_force{false};
151 bool m_forceHasBeenSet = false;
152
153 long long m_expectedVersion{0};
154 bool m_expectedVersionHasBeenSet = false;
155
157 bool m_statusDetailsHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace IoT
162} // namespace Aws
CancelJobExecutionRequest & WithExpectedVersion(long long value)
CancelJobExecutionRequest & WithStatusDetails(StatusDetailsT &&value)
CancelJobExecutionRequest & AddStatusDetails(StatusDetailsKeyT &&key, StatusDetailsValueT &&value)
CancelJobExecutionRequest & WithJobId(JobIdT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_IOT_API CancelJobExecutionRequest()=default
virtual const char * GetServiceRequestName() const override
CancelJobExecutionRequest & WithThingName(ThingNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetStatusDetails() const
AWS_IOT_API Aws::String SerializePayload() const override
CancelJobExecutionRequest & WithForce(bool 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