AWS SDK for C++  1.9.14
AWS SDK for C++
DescribeTaskSetsRequest.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 "DescribeTaskSets"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetCluster() const{ return m_cluster; }
44 
49  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
50 
55  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
56 
61  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
62 
67  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
68 
73  inline DescribeTaskSetsRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
74 
79  inline DescribeTaskSetsRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
80 
85  inline DescribeTaskSetsRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
86 
87 
92  inline const Aws::String& GetService() const{ return m_service; }
93 
98  inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
99 
104  inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
105 
110  inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
111 
116  inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
117 
122  inline DescribeTaskSetsRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
123 
128  inline DescribeTaskSetsRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
129 
134  inline DescribeTaskSetsRequest& WithService(const char* value) { SetService(value); return *this;}
135 
136 
140  inline const Aws::Vector<Aws::String>& GetTaskSets() const{ return m_taskSets; }
141 
145  inline bool TaskSetsHasBeenSet() const { return m_taskSetsHasBeenSet; }
146 
150  inline void SetTaskSets(const Aws::Vector<Aws::String>& value) { m_taskSetsHasBeenSet = true; m_taskSets = value; }
151 
155  inline void SetTaskSets(Aws::Vector<Aws::String>&& value) { m_taskSetsHasBeenSet = true; m_taskSets = std::move(value); }
156 
160  inline DescribeTaskSetsRequest& WithTaskSets(const Aws::Vector<Aws::String>& value) { SetTaskSets(value); return *this;}
161 
165  inline DescribeTaskSetsRequest& WithTaskSets(Aws::Vector<Aws::String>&& value) { SetTaskSets(std::move(value)); return *this;}
166 
170  inline DescribeTaskSetsRequest& AddTaskSets(const Aws::String& value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(value); return *this; }
171 
175  inline DescribeTaskSetsRequest& AddTaskSets(Aws::String&& value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(std::move(value)); return *this; }
176 
180  inline DescribeTaskSetsRequest& AddTaskSets(const char* value) { m_taskSetsHasBeenSet = true; m_taskSets.push_back(value); return *this; }
181 
182 
188  inline const Aws::Vector<TaskSetField>& GetInclude() const{ return m_include; }
189 
195  inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
196 
202  inline void SetInclude(const Aws::Vector<TaskSetField>& value) { m_includeHasBeenSet = true; m_include = value; }
203 
209  inline void SetInclude(Aws::Vector<TaskSetField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
210 
216  inline DescribeTaskSetsRequest& WithInclude(const Aws::Vector<TaskSetField>& value) { SetInclude(value); return *this;}
217 
223  inline DescribeTaskSetsRequest& WithInclude(Aws::Vector<TaskSetField>&& value) { SetInclude(std::move(value)); return *this;}
224 
230  inline DescribeTaskSetsRequest& AddInclude(const TaskSetField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
231 
237  inline DescribeTaskSetsRequest& AddInclude(TaskSetField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
238 
239  private:
240 
241  Aws::String m_cluster;
242  bool m_clusterHasBeenSet;
243 
244  Aws::String m_service;
245  bool m_serviceHasBeenSet;
246 
247  Aws::Vector<Aws::String> m_taskSets;
248  bool m_taskSetsHasBeenSet;
249 
250  Aws::Vector<TaskSetField> m_include;
251  bool m_includeHasBeenSet;
252  };
253 
254 } // namespace Model
255 } // namespace ECS
256 } // namespace Aws
Aws::ECS::Model::DescribeTaskSetsRequest::WithInclude
DescribeTaskSetsRequest & WithInclude(Aws::Vector< TaskSetField > &&value)
Definition: DescribeTaskSetsRequest.h:223
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::DescribeTaskSetsRequest::ServiceHasBeenSet
bool ServiceHasBeenSet() const
Definition: DescribeTaskSetsRequest.h:98
Aws::ECS::Model::DescribeTaskSetsRequest::GetInclude
const Aws::Vector< TaskSetField > & GetInclude() const
Definition: DescribeTaskSetsRequest.h:188
Aws::ECS::Model::DescribeTaskSetsRequest::DescribeTaskSetsRequest
DescribeTaskSetsRequest()
Aws::ECS::Model::DescribeTaskSetsRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: DescribeTaskSetsRequest.h:55
Aws::ECS::Model::DescribeTaskSetsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DescribeTaskSetsRequest::WithService
DescribeTaskSetsRequest & WithService(Aws::String &&value)
Definition: DescribeTaskSetsRequest.h:128
Aws::ECS::Model::DescribeTaskSetsRequest::WithCluster
DescribeTaskSetsRequest & WithCluster(Aws::String &&value)
Definition: DescribeTaskSetsRequest.h:79
Aws::ECS::Model::DescribeTaskSetsRequest::WithTaskSets
DescribeTaskSetsRequest & WithTaskSets(Aws::Vector< Aws::String > &&value)
Definition: DescribeTaskSetsRequest.h:165
Aws::ECS::Model::DescribeTaskSetsRequest::SetService
void SetService(Aws::String &&value)
Definition: DescribeTaskSetsRequest.h:110
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::DescribeTaskSetsRequest::WithTaskSets
DescribeTaskSetsRequest & WithTaskSets(const Aws::Vector< Aws::String > &value)
Definition: DescribeTaskSetsRequest.h:160
Aws::ECS::Model::DescribeTaskSetsRequest::AddTaskSets
DescribeTaskSetsRequest & AddTaskSets(Aws::String &&value)
Definition: DescribeTaskSetsRequest.h:175
Aws::ECS::Model::DescribeTaskSetsRequest::AddInclude
DescribeTaskSetsRequest & AddInclude(TaskSetField &&value)
Definition: DescribeTaskSetsRequest.h:237
AWSVector.h
Aws::ECS::Model::DescribeTaskSetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeTaskSetsRequest.h:32
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeTaskSetsRequest::IncludeHasBeenSet
bool IncludeHasBeenSet() const
Definition: DescribeTaskSetsRequest.h:195
Aws::ECS::Model::DescribeTaskSetsRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: DescribeTaskSetsRequest.h:49
Aws::ECS::Model::DescribeTaskSetsRequest::AddTaskSets
DescribeTaskSetsRequest & AddTaskSets(const char *value)
Definition: DescribeTaskSetsRequest.h:180
Aws::ECS::Model::DescribeTaskSetsRequest::SetInclude
void SetInclude(Aws::Vector< TaskSetField > &&value)
Definition: DescribeTaskSetsRequest.h:209
Aws::ECS::Model::DescribeTaskSetsRequest::WithService
DescribeTaskSetsRequest & WithService(const char *value)
Definition: DescribeTaskSetsRequest.h:134
Aws::ECS::Model::DescribeTaskSetsRequest::WithService
DescribeTaskSetsRequest & WithService(const Aws::String &value)
Definition: DescribeTaskSetsRequest.h:122
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DescribeTaskSetsRequest::WithCluster
DescribeTaskSetsRequest & WithCluster(const Aws::String &value)
Definition: DescribeTaskSetsRequest.h:73
Aws::ECS::Model::DescribeTaskSetsRequest::AddInclude
DescribeTaskSetsRequest & AddInclude(const TaskSetField &value)
Definition: DescribeTaskSetsRequest.h:230
Aws::ECS::Model::DescribeTaskSetsRequest::SetTaskSets
void SetTaskSets(const Aws::Vector< Aws::String > &value)
Definition: DescribeTaskSetsRequest.h:150
TaskSetField.h
AWSString.h
Aws::ECS::Model::DescribeTaskSetsRequest::WithCluster
DescribeTaskSetsRequest & WithCluster(const char *value)
Definition: DescribeTaskSetsRequest.h:85
Aws::ECS::Model::DescribeTaskSetsRequest::GetService
const Aws::String & GetService() const
Definition: DescribeTaskSetsRequest.h:92
Aws::ECS::Model::DescribeTaskSetsRequest
Definition: DescribeTaskSetsRequest.h:24
Aws::ECS::Model::DescribeTaskSetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DescribeTaskSetsRequest::SetCluster
void SetCluster(const char *value)
Definition: DescribeTaskSetsRequest.h:67
Aws::ECS::Model::DescribeTaskSetsRequest::SetService
void SetService(const char *value)
Definition: DescribeTaskSetsRequest.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DescribeTaskSetsRequest::SetService
void SetService(const Aws::String &value)
Definition: DescribeTaskSetsRequest.h:104
Aws::ECS::Model::DescribeTaskSetsRequest::GetTaskSets
const Aws::Vector< Aws::String > & GetTaskSets() const
Definition: DescribeTaskSetsRequest.h:140
Aws::ECS::Model::DescribeTaskSetsRequest::TaskSetsHasBeenSet
bool TaskSetsHasBeenSet() const
Definition: DescribeTaskSetsRequest.h:145
Aws::ECS::Model::DescribeTaskSetsRequest::AddTaskSets
DescribeTaskSetsRequest & AddTaskSets(const Aws::String &value)
Definition: DescribeTaskSetsRequest.h:170
Aws::ECS::Model::DescribeTaskSetsRequest::SetTaskSets
void SetTaskSets(Aws::Vector< Aws::String > &&value)
Definition: DescribeTaskSetsRequest.h:155
Aws::ECS::Model::DescribeTaskSetsRequest::SetInclude
void SetInclude(const Aws::Vector< TaskSetField > &value)
Definition: DescribeTaskSetsRequest.h:202
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::TaskSetField
TaskSetField
Definition: TaskSetField.h:17
Aws::ECS::Model::DescribeTaskSetsRequest::GetCluster
const Aws::String & GetCluster() const
Definition: DescribeTaskSetsRequest.h:43
Aws::ECS::Model::DescribeTaskSetsRequest::WithInclude
DescribeTaskSetsRequest & WithInclude(const Aws::Vector< TaskSetField > &value)
Definition: DescribeTaskSetsRequest.h:216
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DescribeTaskSetsRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: DescribeTaskSetsRequest.h:61