AWS SDK for C++  1.9.156
AWS SDK for C++
UpdateTaskExecutionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace DataSync
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateTaskExecution"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetTaskExecutionArn() const{ return m_taskExecutionArn; }
43 
48  inline bool TaskExecutionArnHasBeenSet() const { return m_taskExecutionArnHasBeenSet; }
49 
54  inline void SetTaskExecutionArn(const Aws::String& value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn = value; }
55 
60  inline void SetTaskExecutionArn(Aws::String&& value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn = std::move(value); }
61 
66  inline void SetTaskExecutionArn(const char* value) { m_taskExecutionArnHasBeenSet = true; m_taskExecutionArn.assign(value); }
67 
72  inline UpdateTaskExecutionRequest& WithTaskExecutionArn(const Aws::String& value) { SetTaskExecutionArn(value); return *this;}
73 
78  inline UpdateTaskExecutionRequest& WithTaskExecutionArn(Aws::String&& value) { SetTaskExecutionArn(std::move(value)); return *this;}
79 
84  inline UpdateTaskExecutionRequest& WithTaskExecutionArn(const char* value) { SetTaskExecutionArn(value); return *this;}
85 
86 
87 
88  inline const Options& GetOptions() const{ return m_options; }
89 
90 
91  inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
92 
93 
94  inline void SetOptions(const Options& value) { m_optionsHasBeenSet = true; m_options = value; }
95 
96 
97  inline void SetOptions(Options&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); }
98 
99 
100  inline UpdateTaskExecutionRequest& WithOptions(const Options& value) { SetOptions(value); return *this;}
101 
102 
103  inline UpdateTaskExecutionRequest& WithOptions(Options&& value) { SetOptions(std::move(value)); return *this;}
104 
105  private:
106 
107  Aws::String m_taskExecutionArn;
108  bool m_taskExecutionArnHasBeenSet;
109 
110  Options m_options;
111  bool m_optionsHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace DataSync
116 } // namespace Aws
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::UpdateTaskExecutionRequest::WithTaskExecutionArn
UpdateTaskExecutionRequest & WithTaskExecutionArn(const Aws::String &value)
Definition: UpdateTaskExecutionRequest.h:72
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::UpdateTaskExecutionRequest::GetTaskExecutionArn
const Aws::String & GetTaskExecutionArn() const
Definition: UpdateTaskExecutionRequest.h:42
Aws::DataSync::Model::UpdateTaskExecutionRequest::WithOptions
UpdateTaskExecutionRequest & WithOptions(const Options &value)
Definition: UpdateTaskExecutionRequest.h:100
DataSyncRequest.h
Aws::DataSync::Model::Options
Definition: Options.h:54
Aws::DataSync::Model::UpdateTaskExecutionRequest
Definition: UpdateTaskExecutionRequest.h:23
Aws::DataSync::Model::UpdateTaskExecutionRequest::SetTaskExecutionArn
void SetTaskExecutionArn(const Aws::String &value)
Definition: UpdateTaskExecutionRequest.h:54
Aws::DataSync::Model::UpdateTaskExecutionRequest::SetOptions
void SetOptions(const Options &value)
Definition: UpdateTaskExecutionRequest.h:94
Aws::DataSync::Model::UpdateTaskExecutionRequest::WithTaskExecutionArn
UpdateTaskExecutionRequest & WithTaskExecutionArn(const char *value)
Definition: UpdateTaskExecutionRequest.h:84
AWSString.h
Aws::DataSync::Model::UpdateTaskExecutionRequest::SetTaskExecutionArn
void SetTaskExecutionArn(Aws::String &&value)
Definition: UpdateTaskExecutionRequest.h:60
DataSync_EXPORTS.h
Aws::DataSync::Model::UpdateTaskExecutionRequest::WithOptions
UpdateTaskExecutionRequest & WithOptions(Options &&value)
Definition: UpdateTaskExecutionRequest.h:103
Aws::DataSync::Model::UpdateTaskExecutionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::UpdateTaskExecutionRequest::TaskExecutionArnHasBeenSet
bool TaskExecutionArnHasBeenSet() const
Definition: UpdateTaskExecutionRequest.h:48
Aws::DataSync::Model::UpdateTaskExecutionRequest::GetOptions
const Options & GetOptions() const
Definition: UpdateTaskExecutionRequest.h:88
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::UpdateTaskExecutionRequest::UpdateTaskExecutionRequest
UpdateTaskExecutionRequest()
Aws::DataSync::Model::UpdateTaskExecutionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::UpdateTaskExecutionRequest::WithTaskExecutionArn
UpdateTaskExecutionRequest & WithTaskExecutionArn(Aws::String &&value)
Definition: UpdateTaskExecutionRequest.h:78
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Options.h
Aws::DataSync::Model::UpdateTaskExecutionRequest::SetOptions
void SetOptions(Options &&value)
Definition: UpdateTaskExecutionRequest.h:97
Aws::DataSync::Model::UpdateTaskExecutionRequest::OptionsHasBeenSet
bool OptionsHasBeenSet() const
Definition: UpdateTaskExecutionRequest.h:91
Aws::DataSync::Model::UpdateTaskExecutionRequest::SetTaskExecutionArn
void SetTaskExecutionArn(const char *value)
Definition: UpdateTaskExecutionRequest.h:66
Aws::DataSync::Model::UpdateTaskExecutionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateTaskExecutionRequest.h:31