AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CancelJobRequest.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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace IoT
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOT_API CancelJobRequest();
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_IOT_API Aws::String SerializePayload() const override;
37
38 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
45 inline const Aws::String& GetJobId() const{ return m_jobId; }
46 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
47 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
48 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
49 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
50 inline CancelJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
51 inline CancelJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
52 inline CancelJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
54
56
59 inline const Aws::String& GetReasonCode() const{ return m_reasonCode; }
60 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
61 inline void SetReasonCode(const Aws::String& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; }
62 inline void SetReasonCode(Aws::String&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = std::move(value); }
63 inline void SetReasonCode(const char* value) { m_reasonCodeHasBeenSet = true; m_reasonCode.assign(value); }
64 inline CancelJobRequest& WithReasonCode(const Aws::String& value) { SetReasonCode(value); return *this;}
65 inline CancelJobRequest& WithReasonCode(Aws::String&& value) { SetReasonCode(std::move(value)); return *this;}
66 inline CancelJobRequest& WithReasonCode(const char* value) { SetReasonCode(value); return *this;}
68
70
73 inline const Aws::String& GetComment() const{ return m_comment; }
74 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
75 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
76 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
77 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
78 inline CancelJobRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
79 inline CancelJobRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
80 inline CancelJobRequest& WithComment(const char* value) { SetComment(value); return *this;}
82
84
92 inline bool GetForce() const{ return m_force; }
93 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
94 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
95 inline CancelJobRequest& WithForce(bool value) { SetForce(value); return *this;}
97 private:
98
99 Aws::String m_jobId;
100 bool m_jobIdHasBeenSet = false;
101
102 Aws::String m_reasonCode;
103 bool m_reasonCodeHasBeenSet = false;
104
105 Aws::String m_comment;
106 bool m_commentHasBeenSet = false;
107
108 bool m_force;
109 bool m_forceHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace IoT
114} // namespace Aws
CancelJobRequest & WithForce(bool value)
CancelJobRequest & WithJobId(const Aws::String &value)
void SetReasonCode(const Aws::String &value)
void SetReasonCode(Aws::String &&value)
CancelJobRequest & WithJobId(Aws::String &&value)
void SetJobId(const Aws::String &value)
CancelJobRequest & WithComment(const Aws::String &value)
CancelJobRequest & WithJobId(const char *value)
void SetJobId(Aws::String &&value)
AWS_IOT_API Aws::String SerializePayload() const override
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CancelJobRequest & WithReasonCode(const Aws::String &value)
CancelJobRequest & WithReasonCode(const char *value)
const Aws::String & GetComment() const
void SetComment(const char *value)
void SetJobId(const char *value)
CancelJobRequest & WithReasonCode(Aws::String &&value)
const Aws::String & GetJobId() const
void SetComment(Aws::String &&value)
void SetReasonCode(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetReasonCode() const
void SetComment(const Aws::String &value)
CancelJobRequest & WithComment(Aws::String &&value)
CancelJobRequest & WithComment(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String