AWS SDK for C++  1.9.108
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 
160  inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
161 
171  inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
172 
182  inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
183 
193  inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
194 
204  inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
205 
215  inline DeleteJobRequest& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
216 
226  inline DeleteJobRequest& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
227 
237  inline DeleteJobRequest& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
238 
239  private:
240 
241  Aws::String m_jobId;
242  bool m_jobIdHasBeenSet;
243 
244  bool m_force;
245  bool m_forceHasBeenSet;
246 
247  Aws::String m_namespaceId;
248  bool m_namespaceIdHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace IoT
253 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::DeleteJobRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: DeleteJobRequest.h:71
Aws::IoT::Model::DeleteJobRequest::ForceHasBeenSet
bool ForceHasBeenSet() const
Definition: DeleteJobRequest.h:126
Aws::IoT::Model::DeleteJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DeleteJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteJobRequest.h:34
Aws::IoT::Model::DeleteJobRequest::SetJobId
void SetJobId(const char *value)
Definition: DeleteJobRequest.h:79
Aws::IoT::Model::DeleteJobRequest
Definition: DeleteJobRequest.h:26
Aws::IoT::Model::DeleteJobRequest::WithNamespaceId
DeleteJobRequest & WithNamespaceId(const char *value)
Definition: DeleteJobRequest.h:237
Aws::IoT::Model::DeleteJobRequest::SetNamespaceId
void SetNamespaceId(const Aws::String &value)
Definition: DeleteJobRequest.h:182
Aws::IoT::Model::DeleteJobRequest::WithNamespaceId
DeleteJobRequest & WithNamespaceId(Aws::String &&value)
Definition: DeleteJobRequest.h:226
Aws::IoT::Model::DeleteJobRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: DeleteJobRequest.h:55
Aws::IoT::Model::DeleteJobRequest::WithJobId
DeleteJobRequest & WithJobId(const char *value)
Definition: DeleteJobRequest.h:103
Aws::IoT::Model::DeleteJobRequest::WithJobId
DeleteJobRequest & WithJobId(Aws::String &&value)
Definition: DeleteJobRequest.h:95
Aws::IoT::Model::DeleteJobRequest::WithForce
DeleteJobRequest & WithForce(bool value)
Definition: DeleteJobRequest.h:148
Aws::IoT::Model::DeleteJobRequest::DeleteJobRequest
DeleteJobRequest()
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DeleteJobRequest::SetNamespaceId
void SetNamespaceId(Aws::String &&value)
Definition: DeleteJobRequest.h:193
Aws::IoT::Model::DeleteJobRequest::WithJobId
DeleteJobRequest & WithJobId(const Aws::String &value)
Definition: DeleteJobRequest.h:87
Aws::IoT::Model::DeleteJobRequest::GetNamespaceId
const Aws::String & GetNamespaceId() const
Definition: DeleteJobRequest.h:160
Aws::IoT::Model::DeleteJobRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: DeleteJobRequest.h:63
Aws::IoT::Model::DeleteJobRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::DeleteJobRequest::NamespaceIdHasBeenSet
bool NamespaceIdHasBeenSet() const
Definition: DeleteJobRequest.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::DeleteJobRequest::WithNamespaceId
DeleteJobRequest & WithNamespaceId(const Aws::String &value)
Definition: DeleteJobRequest.h:215
Aws::IoT::Model::DeleteJobRequest::SetNamespaceId
void SetNamespaceId(const char *value)
Definition: DeleteJobRequest.h:204
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::DeleteJobRequest::SetForce
void SetForce(bool value)
Definition: DeleteJobRequest.h:137
Aws::IoT::Model::DeleteJobRequest::GetJobId
const Aws::String & GetJobId() const
Definition: DeleteJobRequest.h:47
IoTRequest.h
Aws::IoT::Model::DeleteJobRequest::GetForce
bool GetForce() const
Definition: DeleteJobRequest.h:115
IoT_EXPORTS.h