AWS SDK for C++  1.9.157
AWS SDK for C++
DescribeContainerInstancesRequest.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 "DescribeContainerInstances"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
46  inline const Aws::String& GetCluster() const{ return m_cluster; }
47 
55  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
56 
64  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
65 
73  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
74 
82  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
83 
91  inline DescribeContainerInstancesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
92 
100  inline DescribeContainerInstancesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
101 
109  inline DescribeContainerInstancesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
110 
111 
116  inline const Aws::Vector<Aws::String>& GetContainerInstances() const{ return m_containerInstances; }
117 
122  inline bool ContainerInstancesHasBeenSet() const { return m_containerInstancesHasBeenSet; }
123 
128  inline void SetContainerInstances(const Aws::Vector<Aws::String>& value) { m_containerInstancesHasBeenSet = true; m_containerInstances = value; }
129 
134  inline void SetContainerInstances(Aws::Vector<Aws::String>&& value) { m_containerInstancesHasBeenSet = true; m_containerInstances = std::move(value); }
135 
140  inline DescribeContainerInstancesRequest& WithContainerInstances(const Aws::Vector<Aws::String>& value) { SetContainerInstances(value); return *this;}
141 
146  inline DescribeContainerInstancesRequest& WithContainerInstances(Aws::Vector<Aws::String>&& value) { SetContainerInstances(std::move(value)); return *this;}
147 
152  inline DescribeContainerInstancesRequest& AddContainerInstances(const Aws::String& value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(value); return *this; }
153 
158  inline DescribeContainerInstancesRequest& AddContainerInstances(Aws::String&& value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(std::move(value)); return *this; }
159 
164  inline DescribeContainerInstancesRequest& AddContainerInstances(const char* value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(value); return *this; }
165 
166 
174  inline const Aws::Vector<ContainerInstanceField>& GetInclude() const{ return m_include; }
175 
183  inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
184 
192  inline void SetInclude(const Aws::Vector<ContainerInstanceField>& value) { m_includeHasBeenSet = true; m_include = value; }
193 
201  inline void SetInclude(Aws::Vector<ContainerInstanceField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
202 
210  inline DescribeContainerInstancesRequest& WithInclude(const Aws::Vector<ContainerInstanceField>& value) { SetInclude(value); return *this;}
211 
219  inline DescribeContainerInstancesRequest& WithInclude(Aws::Vector<ContainerInstanceField>&& value) { SetInclude(std::move(value)); return *this;}
220 
228  inline DescribeContainerInstancesRequest& AddInclude(const ContainerInstanceField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
229 
237  inline DescribeContainerInstancesRequest& AddInclude(ContainerInstanceField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
238 
239  private:
240 
241  Aws::String m_cluster;
242  bool m_clusterHasBeenSet;
243 
244  Aws::Vector<Aws::String> m_containerInstances;
245  bool m_containerInstancesHasBeenSet;
246 
248  bool m_includeHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace ECS
253 } // namespace Aws
Aws::ECS::Model::DescribeContainerInstancesRequest::AddInclude
DescribeContainerInstancesRequest & AddInclude(const ContainerInstanceField &value)
Definition: DescribeContainerInstancesRequest.h:228
Aws::ECS::Model::DescribeContainerInstancesRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: DescribeContainerInstancesRequest.h:64
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::DescribeContainerInstancesRequest
Definition: DescribeContainerInstancesRequest.h:24
Aws::ECS::Model::DescribeContainerInstancesRequest::WithCluster
DescribeContainerInstancesRequest & WithCluster(Aws::String &&value)
Definition: DescribeContainerInstancesRequest.h:100
Aws::ECS::Model::DescribeContainerInstancesRequest::WithCluster
DescribeContainerInstancesRequest & WithCluster(const char *value)
Definition: DescribeContainerInstancesRequest.h:109
Aws::ECS::Model::DescribeContainerInstancesRequest::DescribeContainerInstancesRequest
DescribeContainerInstancesRequest()
Aws::ECS::Model::DescribeContainerInstancesRequest::GetContainerInstances
const Aws::Vector< Aws::String > & GetContainerInstances() const
Definition: DescribeContainerInstancesRequest.h:116
Aws::ECS::Model::DescribeContainerInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeContainerInstancesRequest.h:32
Aws::ECS::Model::DescribeContainerInstancesRequest::ContainerInstancesHasBeenSet
bool ContainerInstancesHasBeenSet() const
Definition: DescribeContainerInstancesRequest.h:122
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::DescribeContainerInstancesRequest::SetInclude
void SetInclude(Aws::Vector< ContainerInstanceField > &&value)
Definition: DescribeContainerInstancesRequest.h:201
Aws::ECS::Model::DescribeContainerInstancesRequest::SetInclude
void SetInclude(const Aws::Vector< ContainerInstanceField > &value)
Definition: DescribeContainerInstancesRequest.h:192
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeContainerInstancesRequest::AddContainerInstances
DescribeContainerInstancesRequest & AddContainerInstances(const Aws::String &value)
Definition: DescribeContainerInstancesRequest.h:152
Aws::ECS::Model::DescribeContainerInstancesRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: DescribeContainerInstancesRequest.h:73
Aws::ECS::Model::DescribeContainerInstancesRequest::WithCluster
DescribeContainerInstancesRequest & WithCluster(const Aws::String &value)
Definition: DescribeContainerInstancesRequest.h:91
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DescribeContainerInstancesRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: DescribeContainerInstancesRequest.h:55
Aws::ECS::Model::DescribeContainerInstancesRequest::SetContainerInstances
void SetContainerInstances(const Aws::Vector< Aws::String > &value)
Definition: DescribeContainerInstancesRequest.h:128
Aws::ECS::Model::DescribeContainerInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DescribeContainerInstancesRequest::SetCluster
void SetCluster(const char *value)
Definition: DescribeContainerInstancesRequest.h:82
AWSString.h
Aws::ECS::Model::ContainerInstanceField
ContainerInstanceField
Definition: ContainerInstanceField.h:17
Aws::ECS::Model::DescribeContainerInstancesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DescribeContainerInstancesRequest::IncludeHasBeenSet
bool IncludeHasBeenSet() const
Definition: DescribeContainerInstancesRequest.h:183
Aws::ECS::Model::DescribeContainerInstancesRequest::GetInclude
const Aws::Vector< ContainerInstanceField > & GetInclude() const
Definition: DescribeContainerInstancesRequest.h:174
Aws::ECS::Model::DescribeContainerInstancesRequest::AddContainerInstances
DescribeContainerInstancesRequest & AddContainerInstances(const char *value)
Definition: DescribeContainerInstancesRequest.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DescribeContainerInstancesRequest::AddContainerInstances
DescribeContainerInstancesRequest & AddContainerInstances(Aws::String &&value)
Definition: DescribeContainerInstancesRequest.h:158
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DescribeContainerInstancesRequest::WithInclude
DescribeContainerInstancesRequest & WithInclude(const Aws::Vector< ContainerInstanceField > &value)
Definition: DescribeContainerInstancesRequest.h:210
ContainerInstanceField.h
Aws::ECS::Model::DescribeContainerInstancesRequest::WithContainerInstances
DescribeContainerInstancesRequest & WithContainerInstances(Aws::Vector< Aws::String > &&value)
Definition: DescribeContainerInstancesRequest.h:146
Aws::ECS::Model::DescribeContainerInstancesRequest::AddInclude
DescribeContainerInstancesRequest & AddInclude(ContainerInstanceField &&value)
Definition: DescribeContainerInstancesRequest.h:237
Aws::ECS::Model::DescribeContainerInstancesRequest::SetContainerInstances
void SetContainerInstances(Aws::Vector< Aws::String > &&value)
Definition: DescribeContainerInstancesRequest.h:134
Aws::ECS::Model::DescribeContainerInstancesRequest::GetCluster
const Aws::String & GetCluster() const
Definition: DescribeContainerInstancesRequest.h:46
ECS_EXPORTS.h
Aws::ECS::Model::DescribeContainerInstancesRequest::WithContainerInstances
DescribeContainerInstancesRequest & WithContainerInstances(const Aws::Vector< Aws::String > &value)
Definition: DescribeContainerInstancesRequest.h:140
ECSRequest.h
Aws::ECS::Model::DescribeContainerInstancesRequest::WithInclude
DescribeContainerInstancesRequest & WithInclude(Aws::Vector< ContainerInstanceField > &&value)
Definition: DescribeContainerInstancesRequest.h:219