AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DescribeTaskSetsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/TaskSetField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API DescribeTaskSetsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeTaskSets"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetCluster() const { return m_cluster; }
41 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
42 template <typename ClusterT = Aws::String>
43 void SetCluster(ClusterT&& value) {
44 m_clusterHasBeenSet = true;
45 m_cluster = std::forward<ClusterT>(value);
46 }
47 template <typename ClusterT = Aws::String>
49 SetCluster(std::forward<ClusterT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetService() const { return m_service; }
60 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
61 template <typename ServiceT = Aws::String>
62 void SetService(ServiceT&& value) {
63 m_serviceHasBeenSet = true;
64 m_service = std::forward<ServiceT>(value);
65 }
66 template <typename ServiceT = Aws::String>
68 SetService(std::forward<ServiceT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetTaskSets() const { return m_taskSets; }
78 inline bool TaskSetsHasBeenSet() const { return m_taskSetsHasBeenSet; }
79 template <typename TaskSetsT = Aws::Vector<Aws::String>>
80 void SetTaskSets(TaskSetsT&& value) {
81 m_taskSetsHasBeenSet = true;
82 m_taskSets = std::forward<TaskSetsT>(value);
83 }
84 template <typename TaskSetsT = Aws::Vector<Aws::String>>
86 SetTaskSets(std::forward<TaskSetsT>(value));
87 return *this;
88 }
89 template <typename TaskSetsT = Aws::String>
91 m_taskSetsHasBeenSet = true;
92 m_taskSets.emplace_back(std::forward<TaskSetsT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::Vector<TaskSetField>& GetInclude() const { return m_include; }
104 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
105 template <typename IncludeT = Aws::Vector<TaskSetField>>
106 void SetInclude(IncludeT&& value) {
107 m_includeHasBeenSet = true;
108 m_include = std::forward<IncludeT>(value);
109 }
110 template <typename IncludeT = Aws::Vector<TaskSetField>>
112 SetInclude(std::forward<IncludeT>(value));
113 return *this;
114 }
116 m_includeHasBeenSet = true;
117 m_include.push_back(value);
118 return *this;
119 }
121 private:
122 Aws::String m_cluster;
123
124 Aws::String m_service;
125
126 Aws::Vector<Aws::String> m_taskSets;
127
129 bool m_clusterHasBeenSet = false;
130 bool m_serviceHasBeenSet = false;
131 bool m_taskSetsHasBeenSet = false;
132 bool m_includeHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace ECS
137} // 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