AWS SDK for C++  1.9.128
AWS SDK for C++
DescribeTaskDefinitionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeTaskDefinition"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
45  inline const Aws::String& GetTaskDefinition() const{ return m_taskDefinition; }
46 
53  inline bool TaskDefinitionHasBeenSet() const { return m_taskDefinitionHasBeenSet; }
54 
61  inline void SetTaskDefinition(const Aws::String& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = value; }
62 
69  inline void SetTaskDefinition(Aws::String&& value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition = std::move(value); }
70 
77  inline void SetTaskDefinition(const char* value) { m_taskDefinitionHasBeenSet = true; m_taskDefinition.assign(value); }
78 
85  inline DescribeTaskDefinitionRequest& WithTaskDefinition(const Aws::String& value) { SetTaskDefinition(value); return *this;}
86 
93  inline DescribeTaskDefinitionRequest& WithTaskDefinition(Aws::String&& value) { SetTaskDefinition(std::move(value)); return *this;}
94 
101  inline DescribeTaskDefinitionRequest& WithTaskDefinition(const char* value) { SetTaskDefinition(value); return *this;}
102 
103 
109  inline const Aws::Vector<TaskDefinitionField>& GetInclude() const{ return m_include; }
110 
116  inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
117 
123  inline void SetInclude(const Aws::Vector<TaskDefinitionField>& value) { m_includeHasBeenSet = true; m_include = value; }
124 
130  inline void SetInclude(Aws::Vector<TaskDefinitionField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
131 
137  inline DescribeTaskDefinitionRequest& WithInclude(const Aws::Vector<TaskDefinitionField>& value) { SetInclude(value); return *this;}
138 
144  inline DescribeTaskDefinitionRequest& WithInclude(Aws::Vector<TaskDefinitionField>&& value) { SetInclude(std::move(value)); return *this;}
145 
151  inline DescribeTaskDefinitionRequest& AddInclude(const TaskDefinitionField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
152 
158  inline DescribeTaskDefinitionRequest& AddInclude(TaskDefinitionField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
159 
160  private:
161 
162  Aws::String m_taskDefinition;
163  bool m_taskDefinitionHasBeenSet;
164 
166  bool m_includeHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace ECS
171 } // namespace Aws
Aws::ECS::Model::DescribeTaskDefinitionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTaskDefinitionRequest.h:32
Aws::ECS::Model::DescribeTaskDefinitionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DescribeTaskDefinitionRequest::SetTaskDefinition
void SetTaskDefinition(const char *value)
Definition: DescribeTaskDefinitionRequest.h:77
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::DescribeTaskDefinitionRequest::AddInclude
DescribeTaskDefinitionRequest & AddInclude(const TaskDefinitionField &value)
Definition: DescribeTaskDefinitionRequest.h:151
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::DescribeTaskDefinitionRequest::WithInclude
DescribeTaskDefinitionRequest & WithInclude(const Aws::Vector< TaskDefinitionField > &value)
Definition: DescribeTaskDefinitionRequest.h:137
Aws::ECS::Model::DescribeTaskDefinitionRequest::SetTaskDefinition
void SetTaskDefinition(const Aws::String &value)
Definition: DescribeTaskDefinitionRequest.h:61
Aws::ECS::Model::DescribeTaskDefinitionRequest::AddInclude
DescribeTaskDefinitionRequest & AddInclude(TaskDefinitionField &&value)
Definition: DescribeTaskDefinitionRequest.h:158
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeTaskDefinitionRequest::DescribeTaskDefinitionRequest
DescribeTaskDefinitionRequest()
Aws::ECS::Model::DescribeTaskDefinitionRequest
Definition: DescribeTaskDefinitionRequest.h:24
Aws::ECS::Model::DescribeTaskDefinitionRequest::SetTaskDefinition
void SetTaskDefinition(Aws::String &&value)
Definition: DescribeTaskDefinitionRequest.h:69
Aws::ECS::Model::DescribeTaskDefinitionRequest::SetInclude
void SetInclude(const Aws::Vector< TaskDefinitionField > &value)
Definition: DescribeTaskDefinitionRequest.h:123
Aws::ECS::Model::DescribeTaskDefinitionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DescribeTaskDefinitionRequest::WithInclude
DescribeTaskDefinitionRequest & WithInclude(Aws::Vector< TaskDefinitionField > &&value)
Definition: DescribeTaskDefinitionRequest.h:144
Aws::ECS::Model::DescribeTaskDefinitionRequest::SetInclude
void SetInclude(Aws::Vector< TaskDefinitionField > &&value)
Definition: DescribeTaskDefinitionRequest.h:130
Aws::ECS::Model::DescribeTaskDefinitionRequest::GetTaskDefinition
const Aws::String & GetTaskDefinition() const
Definition: DescribeTaskDefinitionRequest.h:45
Aws::ECS::Model::TaskDefinitionField
TaskDefinitionField
Definition: TaskDefinitionField.h:17
AWSString.h
Aws::ECS::Model::DescribeTaskDefinitionRequest::WithTaskDefinition
DescribeTaskDefinitionRequest & WithTaskDefinition(const Aws::String &value)
Definition: DescribeTaskDefinitionRequest.h:85
Aws::ECS::Model::DescribeTaskDefinitionRequest::GetInclude
const Aws::Vector< TaskDefinitionField > & GetInclude() const
Definition: DescribeTaskDefinitionRequest.h:109
Aws::ECS::Model::DescribeTaskDefinitionRequest::WithTaskDefinition
DescribeTaskDefinitionRequest & WithTaskDefinition(const char *value)
Definition: DescribeTaskDefinitionRequest.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DescribeTaskDefinitionRequest::WithTaskDefinition
DescribeTaskDefinitionRequest & WithTaskDefinition(Aws::String &&value)
Definition: DescribeTaskDefinitionRequest.h:93
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DescribeTaskDefinitionRequest::TaskDefinitionHasBeenSet
bool TaskDefinitionHasBeenSet() const
Definition: DescribeTaskDefinitionRequest.h:53
Aws::ECS::Model::DescribeTaskDefinitionRequest::IncludeHasBeenSet
bool IncludeHasBeenSet() const
Definition: DescribeTaskDefinitionRequest.h:116
TaskDefinitionField.h
ECS_EXPORTS.h
ECSRequest.h