AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeClustersRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ecs/model/ClusterField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
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
38
40
44 inline const Aws::Vector<Aws::String>& GetClusters() const { return m_clusters; }
45 inline bool ClustersHasBeenSet() const { return m_clustersHasBeenSet; }
46 template<typename ClustersT = Aws::Vector<Aws::String>>
47 void SetClusters(ClustersT&& value) { m_clustersHasBeenSet = true; m_clusters = std::forward<ClustersT>(value); }
48 template<typename ClustersT = Aws::Vector<Aws::String>>
49 DescribeClustersRequest& WithClusters(ClustersT&& value) { SetClusters(std::forward<ClustersT>(value)); return *this;}
50 template<typename ClustersT = Aws::String>
51 DescribeClustersRequest& AddClusters(ClustersT&& value) { m_clustersHasBeenSet = true; m_clusters.emplace_back(std::forward<ClustersT>(value)); return *this; }
53
55
67 inline const Aws::Vector<ClusterField>& GetInclude() const { return m_include; }
68 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
69 template<typename IncludeT = Aws::Vector<ClusterField>>
70 void SetInclude(IncludeT&& value) { m_includeHasBeenSet = true; m_include = std::forward<IncludeT>(value); }
71 template<typename IncludeT = Aws::Vector<ClusterField>>
72 DescribeClustersRequest& WithInclude(IncludeT&& value) { SetInclude(std::forward<IncludeT>(value)); return *this;}
73 inline DescribeClustersRequest& AddInclude(ClusterField value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
75 private:
76
77 Aws::Vector<Aws::String> m_clusters;
78 bool m_clustersHasBeenSet = false;
79
81 bool m_includeHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace ECS
86} // 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