AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeTaskSetsRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/TaskSetField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ECS_API DescribeTaskSetsRequest() = default;
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_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetCluster() const { return m_cluster; }
45 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
46 template<typename ClusterT = Aws::String>
47 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
48 template<typename ClusterT = Aws::String>
49 DescribeTaskSetsRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
51
53
57 inline const Aws::String& GetService() const { return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 template<typename ServiceT = Aws::String>
60 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
61 template<typename ServiceT = Aws::String>
62 DescribeTaskSetsRequest& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetTaskSets() const { return m_taskSets; }
70 inline bool TaskSetsHasBeenSet() const { return m_taskSetsHasBeenSet; }
71 template<typename TaskSetsT = Aws::Vector<Aws::String>>
72 void SetTaskSets(TaskSetsT&& value) { m_taskSetsHasBeenSet = true; m_taskSets = std::forward<TaskSetsT>(value); }
73 template<typename TaskSetsT = Aws::Vector<Aws::String>>
74 DescribeTaskSetsRequest& WithTaskSets(TaskSetsT&& value) { SetTaskSets(std::forward<TaskSetsT>(value)); return *this;}
75 template<typename TaskSetsT = Aws::String>
76 DescribeTaskSetsRequest& AddTaskSets(TaskSetsT&& value) { m_taskSetsHasBeenSet = true; m_taskSets.emplace_back(std::forward<TaskSetsT>(value)); return *this; }
78
80
85 inline const Aws::Vector<TaskSetField>& GetInclude() const { return m_include; }
86 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
87 template<typename IncludeT = Aws::Vector<TaskSetField>>
88 void SetInclude(IncludeT&& value) { m_includeHasBeenSet = true; m_include = std::forward<IncludeT>(value); }
89 template<typename IncludeT = Aws::Vector<TaskSetField>>
90 DescribeTaskSetsRequest& WithInclude(IncludeT&& value) { SetInclude(std::forward<IncludeT>(value)); return *this;}
91 inline DescribeTaskSetsRequest& AddInclude(TaskSetField value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
93 private:
94
95 Aws::String m_cluster;
96 bool m_clusterHasBeenSet = false;
97
98 Aws::String m_service;
99 bool m_serviceHasBeenSet = false;
100
101 Aws::Vector<Aws::String> m_taskSets;
102 bool m_taskSetsHasBeenSet = false;
103
105 bool m_includeHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace ECS
110} // namespace Aws
const Aws::Vector< TaskSetField > & GetInclude() const
DescribeTaskSetsRequest & AddTaskSets(TaskSetsT &&value)
DescribeTaskSetsRequest & WithInclude(IncludeT &&value)
AWS_ECS_API DescribeTaskSetsRequest()=default
AWS_ECS_API Aws::String SerializePayload() const override
DescribeTaskSetsRequest & AddInclude(TaskSetField value)
const Aws::Vector< Aws::String > & GetTaskSets() const
DescribeTaskSetsRequest & WithCluster(ClusterT &&value)
DescribeTaskSetsRequest & WithService(ServiceT &&value)
DescribeTaskSetsRequest & WithTaskSets(TaskSetsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector