AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
22 public:
23 AWS_ECS_API DescribeClustersRequest() = 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 "DescribeClusters"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::Vector<Aws::String>& GetClusters() const { return m_clusters; }
41 inline bool ClustersHasBeenSet() const { return m_clustersHasBeenSet; }
42 template <typename ClustersT = Aws::Vector<Aws::String>>
43 void SetClusters(ClustersT&& value) {
44 m_clustersHasBeenSet = true;
45 m_clusters = std::forward<ClustersT>(value);
46 }
47 template <typename ClustersT = Aws::Vector<Aws::String>>
49 SetClusters(std::forward<ClustersT>(value));
50 return *this;
51 }
52 template <typename ClustersT = Aws::String>
54 m_clustersHasBeenSet = true;
55 m_clusters.emplace_back(std::forward<ClustersT>(value));
56 return *this;
57 }
59
61
73 inline const Aws::Vector<ClusterField>& GetInclude() const { return m_include; }
74 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
75 template <typename IncludeT = Aws::Vector<ClusterField>>
76 void SetInclude(IncludeT&& value) {
77 m_includeHasBeenSet = true;
78 m_include = std::forward<IncludeT>(value);
79 }
80 template <typename IncludeT = Aws::Vector<ClusterField>>
82 SetInclude(std::forward<IncludeT>(value));
83 return *this;
84 }
86 m_includeHasBeenSet = true;
87 m_include.push_back(value);
88 return *this;
89 }
91 private:
92 Aws::Vector<Aws::String> m_clusters;
93
95 bool m_clustersHasBeenSet = false;
96 bool m_includeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ECS
101} // 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