AWS SDK for C++  1.9.1
AWS SDK for C++
DescribeClustersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::Vector<Aws::String>& GetClusters() const{ return m_clusters; }
44 
49  inline bool ClustersHasBeenSet() const { return m_clustersHasBeenSet; }
50 
55  inline void SetClusters(const Aws::Vector<Aws::String>& value) { m_clustersHasBeenSet = true; m_clusters = value; }
56 
61  inline void SetClusters(Aws::Vector<Aws::String>&& value) { m_clustersHasBeenSet = true; m_clusters = std::move(value); }
62 
67  inline DescribeClustersRequest& WithClusters(const Aws::Vector<Aws::String>& value) { SetClusters(value); return *this;}
68 
73  inline DescribeClustersRequest& WithClusters(Aws::Vector<Aws::String>&& value) { SetClusters(std::move(value)); return *this;}
74 
79  inline DescribeClustersRequest& AddClusters(const Aws::String& value) { m_clustersHasBeenSet = true; m_clusters.push_back(value); return *this; }
80 
85  inline DescribeClustersRequest& AddClusters(Aws::String&& value) { m_clustersHasBeenSet = true; m_clusters.push_back(std::move(value)); return *this; }
86 
91  inline DescribeClustersRequest& AddClusters(const char* value) { m_clustersHasBeenSet = true; m_clusters.push_back(value); return *this; }
92 
93 
109  inline const Aws::Vector<ClusterField>& GetInclude() const{ return m_include; }
110 
126  inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
127 
143  inline void SetInclude(const Aws::Vector<ClusterField>& value) { m_includeHasBeenSet = true; m_include = value; }
144 
160  inline void SetInclude(Aws::Vector<ClusterField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
161 
177  inline DescribeClustersRequest& WithInclude(const Aws::Vector<ClusterField>& value) { SetInclude(value); return *this;}
178 
194  inline DescribeClustersRequest& WithInclude(Aws::Vector<ClusterField>&& value) { SetInclude(std::move(value)); return *this;}
195 
211  inline DescribeClustersRequest& AddInclude(const ClusterField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
212 
228  inline DescribeClustersRequest& AddInclude(ClusterField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
229 
230  private:
231 
232  Aws::Vector<Aws::String> m_clusters;
233  bool m_clustersHasBeenSet;
234 
235  Aws::Vector<ClusterField> m_include;
236  bool m_includeHasBeenSet;
237  };
238 
239 } // namespace Model
240 } // namespace ECS
241 } // namespace Aws
Aws::ECS::Model::DescribeClustersRequest::WithClusters
DescribeClustersRequest & WithClusters(const Aws::Vector< Aws::String > &value)
Definition: DescribeClustersRequest.h:67
Aws::ECS::Model::DescribeClustersRequest::WithClusters
DescribeClustersRequest & WithClusters(Aws::Vector< Aws::String > &&value)
Definition: DescribeClustersRequest.h:73
Aws::ECS::Model::DescribeClustersRequest::SetClusters
void SetClusters(Aws::Vector< Aws::String > &&value)
Definition: DescribeClustersRequest.h:61
Aws::ECS::Model::DescribeClustersRequest::WithInclude
DescribeClustersRequest & WithInclude(Aws::Vector< ClusterField > &&value)
Definition: DescribeClustersRequest.h:194
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::DescribeClustersRequest::AddClusters
DescribeClustersRequest & AddClusters(const char *value)
Definition: DescribeClustersRequest.h:91
Aws::ECS::Model::DescribeClustersRequest::SetInclude
void SetInclude(Aws::Vector< ClusterField > &&value)
Definition: DescribeClustersRequest.h:160
Aws::ECS::Model::DescribeClustersRequest::ClustersHasBeenSet
bool ClustersHasBeenSet() const
Definition: DescribeClustersRequest.h:49
Aws::ECS::Model::DescribeClustersRequest::SetInclude
void SetInclude(const Aws::Vector< ClusterField > &value)
Definition: DescribeClustersRequest.h:143
Aws::ECS::Model::DescribeClustersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DescribeClustersRequest::SerializePayload
Aws::String SerializePayload() const override
ClusterField.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::DescribeClustersRequest::AddInclude
DescribeClustersRequest & AddInclude(const ClusterField &value)
Definition: DescribeClustersRequest.h:211
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeClustersRequest::WithInclude
DescribeClustersRequest & WithInclude(const Aws::Vector< ClusterField > &value)
Definition: DescribeClustersRequest.h:177
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DescribeClustersRequest
Definition: DescribeClustersRequest.h:24
Aws::ECS::Model::DescribeClustersRequest::GetClusters
const Aws::Vector< Aws::String > & GetClusters() const
Definition: DescribeClustersRequest.h:43
Aws::ECS::Model::DescribeClustersRequest::SetClusters
void SetClusters(const Aws::Vector< Aws::String > &value)
Definition: DescribeClustersRequest.h:55
Aws::ECS::Model::DescribeClustersRequest::AddClusters
DescribeClustersRequest & AddClusters(Aws::String &&value)
Definition: DescribeClustersRequest.h:85
AWSString.h
Aws::ECS::Model::DescribeClustersRequest::GetInclude
const Aws::Vector< ClusterField > & GetInclude() const
Definition: DescribeClustersRequest.h:109
Aws::ECS::Model::DescribeClustersRequest::AddInclude
DescribeClustersRequest & AddInclude(ClusterField &&value)
Definition: DescribeClustersRequest.h:228
Aws::ECS::Model::DescribeClustersRequest::AddClusters
DescribeClustersRequest & AddClusters(const Aws::String &value)
Definition: DescribeClustersRequest.h:79
Aws::ECS::Model::DescribeClustersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeClustersRequest.h:32
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::ClusterField
ClusterField
Definition: ClusterField.h:17
Aws::ECS::Model::DescribeClustersRequest::DescribeClustersRequest
DescribeClustersRequest()
Aws::ECS::Model::DescribeClustersRequest::IncludeHasBeenSet
bool IncludeHasBeenSet() const
Definition: DescribeClustersRequest.h:126
ECS_EXPORTS.h
ECSRequest.h