AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DescribeClustersRequest.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/ClusterField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
25 public:
26 AWS_ECS_API DescribeClustersRequest() = 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 "DescribeClusters"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::Vector<Aws::String>& GetClusters() const { return m_clusters; }
44 inline bool ClustersHasBeenSet() const { return m_clustersHasBeenSet; }
45 template <typename ClustersT = Aws::Vector<Aws::String>>
46 void SetClusters(ClustersT&& value) {
47 m_clustersHasBeenSet = true;
48 m_clusters = std::forward<ClustersT>(value);
49 }
50 template <typename ClustersT = Aws::Vector<Aws::String>>
52 SetClusters(std::forward<ClustersT>(value));
53 return *this;
54 }
55 template <typename ClustersT = Aws::String>
57 m_clustersHasBeenSet = true;
58 m_clusters.emplace_back(std::forward<ClustersT>(value));
59 return *this;
60 }
62
64
76 inline const Aws::Vector<ClusterField>& GetInclude() const { return m_include; }
77 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
78 template <typename IncludeT = Aws::Vector<ClusterField>>
79 void SetInclude(IncludeT&& value) {
80 m_includeHasBeenSet = true;
81 m_include = std::forward<IncludeT>(value);
82 }
83 template <typename IncludeT = Aws::Vector<ClusterField>>
85 SetInclude(std::forward<IncludeT>(value));
86 return *this;
87 }
89 m_includeHasBeenSet = true;
90 m_include.push_back(value);
91 return *this;
92 }
94 private:
95 Aws::Vector<Aws::String> m_clusters;
96
98 bool m_clustersHasBeenSet = false;
99 bool m_includeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace ECS
104} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECS_API DescribeClustersRequest()=default
const Aws::Vector< Aws::String > & GetClusters() const
DescribeClustersRequest & WithInclude(IncludeT &&value)
const Aws::Vector< ClusterField > & GetInclude() const
DescribeClustersRequest & WithClusters(ClustersT &&value)
DescribeClustersRequest & AddClusters(ClustersT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
DescribeClustersRequest & AddInclude(ClusterField value)
virtual const char * GetServiceRequestName() 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