AWS SDK for C++  1.8.71
AWS SDK for C++
CancelJobRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CancelJob"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetJobId() const{ return m_jobId; }
45 
49  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
50 
54  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
55 
59  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
60 
64  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
65 
69  inline CancelJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
70 
74  inline CancelJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
75 
79  inline CancelJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
80 
81 
85  inline const Aws::String& GetReasonCode() const{ return m_reasonCode; }
86 
90  inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
91 
95  inline void SetReasonCode(const Aws::String& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; }
96 
100  inline void SetReasonCode(Aws::String&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = std::move(value); }
101 
105  inline void SetReasonCode(const char* value) { m_reasonCodeHasBeenSet = true; m_reasonCode.assign(value); }
106 
110  inline CancelJobRequest& WithReasonCode(const Aws::String& value) { SetReasonCode(value); return *this;}
111 
115  inline CancelJobRequest& WithReasonCode(Aws::String&& value) { SetReasonCode(std::move(value)); return *this;}
116 
120  inline CancelJobRequest& WithReasonCode(const char* value) { SetReasonCode(value); return *this;}
121 
122 
126  inline const Aws::String& GetComment() const{ return m_comment; }
127 
131  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
132 
136  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
137 
141  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
142 
146  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
147 
151  inline CancelJobRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
152 
156  inline CancelJobRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
157 
161  inline CancelJobRequest& WithComment(const char* value) { SetComment(value); return *this;}
162 
163 
172  inline bool GetForce() const{ return m_force; }
173 
182  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
183 
192  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
193 
202  inline CancelJobRequest& WithForce(bool value) { SetForce(value); return *this;}
203 
204  private:
205 
206  Aws::String m_jobId;
207  bool m_jobIdHasBeenSet;
208 
209  Aws::String m_reasonCode;
210  bool m_reasonCodeHasBeenSet;
211 
212  Aws::String m_comment;
213  bool m_commentHasBeenSet;
214 
215  bool m_force;
216  bool m_forceHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace IoT
221 } // namespace Aws
void SetComment(const Aws::String &value)
void SetJobId(const char *value)
CancelJobRequest & WithReasonCode(const char *value)
void SetReasonCode(const char *value)
void SetComment(const char *value)
void SetJobId(const Aws::String &value)
CancelJobRequest & WithForce(bool value)
CancelJobRequest & WithComment(Aws::String &&value)
CancelJobRequest & WithJobId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetComment(Aws::String &&value)
CancelJobRequest & WithReasonCode(Aws::String &&value)
CancelJobRequest & WithComment(const Aws::String &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
void SetJobId(Aws::String &&value)
CancelJobRequest & WithJobId(const char *value)
const Aws::String & GetReasonCode() const
CancelJobRequest & WithJobId(Aws::String &&value)
CancelJobRequest & WithComment(const char *value)
const Aws::String & GetComment() const
void SetReasonCode(Aws::String &&value)
const Aws::String & GetJobId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetReasonCode(const Aws::String &value)
CancelJobRequest & WithReasonCode(const Aws::String &value)