AWS SDK for C++  1.9.129
AWS SDK for C++
CancelAuditTaskRequest.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 IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "CancelAuditTask"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetTaskId() const{ return m_taskId; }
40 
45  inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
46 
51  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
52 
57  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
58 
63  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
64 
69  inline CancelAuditTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
70 
75  inline CancelAuditTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
76 
81  inline CancelAuditTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
82 
83  private:
84 
85  Aws::String m_taskId;
86  bool m_taskIdHasBeenSet;
87  };
88 
89 } // namespace Model
90 } // namespace IoT
91 } // namespace Aws
Aws::IoT::Model::CancelAuditTaskRequest::WithTaskId
CancelAuditTaskRequest & WithTaskId(const Aws::String &value)
Definition: CancelAuditTaskRequest.h:69
Aws::IoT::Model::CancelAuditTaskRequest::TaskIdHasBeenSet
bool TaskIdHasBeenSet() const
Definition: CancelAuditTaskRequest.h:45
Aws::IoT::Model::CancelAuditTaskRequest
Definition: CancelAuditTaskRequest.h:22
Aws::IoT::Model::CancelAuditTaskRequest::CancelAuditTaskRequest
CancelAuditTaskRequest()
Aws::IoT::Model::CancelAuditTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelAuditTaskRequest.h:30
Aws::IoT::Model::CancelAuditTaskRequest::SetTaskId
void SetTaskId(const char *value)
Definition: CancelAuditTaskRequest.h:63
Aws::IoT::Model::CancelAuditTaskRequest::SetTaskId
void SetTaskId(const Aws::String &value)
Definition: CancelAuditTaskRequest.h:51
Aws::IoT::Model::CancelAuditTaskRequest::WithTaskId
CancelAuditTaskRequest & WithTaskId(Aws::String &&value)
Definition: CancelAuditTaskRequest.h:75
Aws::IoT::Model::CancelAuditTaskRequest::WithTaskId
CancelAuditTaskRequest & WithTaskId(const char *value)
Definition: CancelAuditTaskRequest.h:81
AWSString.h
Aws::IoT::Model::CancelAuditTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws
Definition: AccessManagementClient.h:15
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::CancelAuditTaskRequest::GetTaskId
const Aws::String & GetTaskId() const
Definition: CancelAuditTaskRequest.h:39
Aws::IoT::Model::CancelAuditTaskRequest::SetTaskId
void SetTaskId(Aws::String &&value)
Definition: CancelAuditTaskRequest.h:57
IoTRequest.h
IoT_EXPORTS.h