AWS SDK for C++  1.8.71
AWS SDK for C++
DeleteJobRequest.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 "DeleteJob"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
47  inline const Aws::String& GetJobId() const{ return m_jobId; }
48 
55  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
56 
63  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
64 
71  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
72 
79  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
80 
87  inline DeleteJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
88 
95  inline DeleteJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
96 
103  inline DeleteJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
104 
105 
115  inline bool GetForce() const{ return m_force; }
116 
126  inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
127 
137  inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
138 
148  inline DeleteJobRequest& WithForce(bool value) { SetForce(value); return *this;}
149 
150  private:
151 
152  Aws::String m_jobId;
153  bool m_jobIdHasBeenSet;
154 
155  bool m_force;
156  bool m_forceHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace IoT
161 } // namespace Aws
void SetJobId(const char *value)
DeleteJobRequest & WithJobId(const char *value)
DeleteJobRequest & WithJobId(Aws::String &&value)
const Aws::String & GetJobId() const
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
void SetJobId(Aws::String &&value)
DeleteJobRequest & WithJobId(const Aws::String &value)
void SetJobId(const Aws::String &value)
DeleteJobRequest & WithForce(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override