AWS SDK for C++  1.9.153
AWS SDK for C++
StopTaskResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/model/Task.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace ECS
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const Task& GetTask() const{ return m_task; }
39 
43  inline void SetTask(const Task& value) { m_task = value; }
44 
48  inline void SetTask(Task&& value) { m_task = std::move(value); }
49 
53  inline StopTaskResult& WithTask(const Task& value) { SetTask(value); return *this;}
54 
58  inline StopTaskResult& WithTask(Task&& value) { SetTask(std::move(value)); return *this;}
59 
60  private:
61 
62  Task m_task;
63  };
64 
65 } // namespace Model
66 } // namespace ECS
67 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::Task
Definition: Task.h:45
Aws::ECS::Model::StopTaskResult::SetTask
void SetTask(Task &&value)
Definition: StopTaskResult.h:48
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Task.h
Aws::ECS::Model::StopTaskResult::SetTask
void SetTask(const Task &value)
Definition: StopTaskResult.h:43
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::StopTaskResult::GetTask
const Task & GetTask() const
Definition: StopTaskResult.h:38
Aws::ECS::Model::StopTaskResult
Definition: StopTaskResult.h:28
Aws::ECS::Model::StopTaskResult::WithTask
StopTaskResult & WithTask(const Task &value)
Definition: StopTaskResult.h:53
Aws::ECS::Model::StopTaskResult::WithTask
StopTaskResult & WithTask(Task &&value)
Definition: StopTaskResult.h:58
Aws::ECS::Model::StopTaskResult::operator=
StopTaskResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::StopTaskResult::StopTaskResult
StopTaskResult()
Aws::ECS::Model::StopTaskResult::StopTaskResult
StopTaskResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ECS_EXPORTS.h