AWS SDK for C++  1.9.71
AWS SDK for C++
CancelExportTaskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
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 "CancelExportTask"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetExportTaskId() const{ return m_exportTaskId; }
44 
49  inline bool ExportTaskIdHasBeenSet() const { return m_exportTaskIdHasBeenSet; }
50 
55  inline void SetExportTaskId(const Aws::String& value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId = value; }
56 
61  inline void SetExportTaskId(Aws::String&& value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId = std::move(value); }
62 
67  inline void SetExportTaskId(const char* value) { m_exportTaskIdHasBeenSet = true; m_exportTaskId.assign(value); }
68 
73  inline CancelExportTaskRequest& WithExportTaskId(const Aws::String& value) { SetExportTaskId(value); return *this;}
74 
79  inline CancelExportTaskRequest& WithExportTaskId(Aws::String&& value) { SetExportTaskId(std::move(value)); return *this;}
80 
85  inline CancelExportTaskRequest& WithExportTaskId(const char* value) { SetExportTaskId(value); return *this;}
86 
87  private:
88 
89  Aws::String m_exportTaskId;
90  bool m_exportTaskIdHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace EC2
95 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CancelExportTaskRequest::WithExportTaskId
CancelExportTaskRequest & WithExportTaskId(const Aws::String &value)
Definition: CancelExportTaskRequest.h:73
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CancelExportTaskRequest::WithExportTaskId
CancelExportTaskRequest & WithExportTaskId(const char *value)
Definition: CancelExportTaskRequest.h:85
Aws::EC2::Model::CancelExportTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelExportTaskRequest.h:30
Aws::EC2::Model::CancelExportTaskRequest::SetExportTaskId
void SetExportTaskId(const char *value)
Definition: CancelExportTaskRequest.h:67
Aws::EC2::Model::CancelExportTaskRequest::GetExportTaskId
const Aws::String & GetExportTaskId() const
Definition: CancelExportTaskRequest.h:43
Aws::EC2::Model::CancelExportTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CancelExportTaskRequest::SetExportTaskId
void SetExportTaskId(const Aws::String &value)
Definition: CancelExportTaskRequest.h:55
EC2Request.h
AWSString.h
Aws::EC2::Model::CancelExportTaskRequest::SetExportTaskId
void SetExportTaskId(Aws::String &&value)
Definition: CancelExportTaskRequest.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CancelExportTaskRequest::ExportTaskIdHasBeenSet
bool ExportTaskIdHasBeenSet() const
Definition: CancelExportTaskRequest.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CancelExportTaskRequest::CancelExportTaskRequest
CancelExportTaskRequest()
Aws::EC2::Model::CancelExportTaskRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
EC2_EXPORTS.h
Aws::EC2::Model::CancelExportTaskRequest
Definition: CancelExportTaskRequest.h:22
Aws::EC2::Model::CancelExportTaskRequest::WithExportTaskId
CancelExportTaskRequest & WithExportTaskId(Aws::String &&value)
Definition: CancelExportTaskRequest.h:79