AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CancelJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API CancelJobRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CancelJob"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
34 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline const Aws::String& GetJobId() const { return m_jobId; }
41 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
42 template <typename JobIdT = Aws::String>
43 void SetJobId(JobIdT&& value) {
44 m_jobIdHasBeenSet = true;
45 m_jobId = std::forward<JobIdT>(value);
46 }
47 template <typename JobIdT = Aws::String>
48 CancelJobRequest& WithJobId(JobIdT&& value) {
49 SetJobId(std::forward<JobIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetReasonCode() const { return m_reasonCode; }
59 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
60 template <typename ReasonCodeT = Aws::String>
61 void SetReasonCode(ReasonCodeT&& value) {
62 m_reasonCodeHasBeenSet = true;
63 m_reasonCode = std::forward<ReasonCodeT>(value);
64 }
65 template <typename ReasonCodeT = Aws::String>
66 CancelJobRequest& WithReasonCode(ReasonCodeT&& value) {
67 SetReasonCode(std::forward<ReasonCodeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetComment() const { return m_comment; }
77 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
78 template <typename CommentT = Aws::String>
79 void SetComment(CommentT&& value) {
80 m_commentHasBeenSet = true;
81 m_comment = std::forward<CommentT>(value);
82 }
83 template <typename CommentT = Aws::String>
84 CancelJobRequest& WithComment(CommentT&& value) {
85 SetComment(std::forward<CommentT>(value));
86 return *this;
87 }
89
91
99 inline bool GetForce() const { return m_force; }
100 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
101 inline void SetForce(bool value) {
102 m_forceHasBeenSet = true;
103 m_force = value;
104 }
105 inline CancelJobRequest& WithForce(bool value) {
106 SetForce(value);
107 return *this;
108 }
110 private:
111 Aws::String m_jobId;
112
113 Aws::String m_reasonCode;
114
115 Aws::String m_comment;
116
117 bool m_force{false};
118 bool m_jobIdHasBeenSet = false;
119 bool m_reasonCodeHasBeenSet = false;
120 bool m_commentHasBeenSet = false;
121 bool m_forceHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace IoT
126} // namespace Aws
CancelJobRequest & WithForce(bool value)
CancelJobRequest & WithReasonCode(ReasonCodeT &&value)
void SetComment(CommentT &&value)
CancelJobRequest & WithJobId(JobIdT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetComment() const
AWS_IOT_API CancelJobRequest()=default
void SetReasonCode(ReasonCodeT &&value)
CancelJobRequest & WithComment(CommentT &&value)
const Aws::String & GetJobId() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetReasonCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String