AWS SDK for C++  1.8.76
AWS SDK for C++
CancelDataRepositoryTaskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/fsx/FSx_EXPORTS.h>
8 #include <aws/fsx/FSxRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace FSx
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CancelDataRepositoryTask"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
43  inline const Aws::String& GetTaskId() const{ return m_taskId; }
44 
48  inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
49 
53  inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
54 
58  inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
59 
63  inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
64 
68  inline CancelDataRepositoryTaskRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
69 
73  inline CancelDataRepositoryTaskRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
74 
78  inline CancelDataRepositoryTaskRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
79 
80  private:
81 
82  Aws::String m_taskId;
83  bool m_taskIdHasBeenSet;
84  };
85 
86 } // namespace Model
87 } // namespace FSx
88 } // namespace Aws
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CancelDataRepositoryTaskRequest & WithTaskId(Aws::String &&value)
CancelDataRepositoryTaskRequest & WithTaskId(const char *value)
#define AWS_FSX_API
Definition: FSx_EXPORTS.h:28
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CancelDataRepositoryTaskRequest & WithTaskId(const Aws::String &value)