AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeContainerInstancesRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/ContainerInstanceField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace 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_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
47 inline const Aws::String& GetCluster() const{ return m_cluster; }
48 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
49 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
50 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
51 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
52 inline DescribeContainerInstancesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
53 inline DescribeContainerInstancesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
54 inline DescribeContainerInstancesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
56
58
62 inline const Aws::Vector<Aws::String>& GetContainerInstances() const{ return m_containerInstances; }
63 inline bool ContainerInstancesHasBeenSet() const { return m_containerInstancesHasBeenSet; }
64 inline void SetContainerInstances(const Aws::Vector<Aws::String>& value) { m_containerInstancesHasBeenSet = true; m_containerInstances = value; }
65 inline void SetContainerInstances(Aws::Vector<Aws::String>&& value) { m_containerInstancesHasBeenSet = true; m_containerInstances = std::move(value); }
68 inline DescribeContainerInstancesRequest& AddContainerInstances(const Aws::String& value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(value); return *this; }
69 inline DescribeContainerInstancesRequest& AddContainerInstances(Aws::String&& value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(std::move(value)); return *this; }
70 inline DescribeContainerInstancesRequest& AddContainerInstances(const char* value) { m_containerInstancesHasBeenSet = true; m_containerInstances.push_back(value); return *this; }
72
74
81 inline const Aws::Vector<ContainerInstanceField>& GetInclude() const{ return m_include; }
82 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
83 inline void SetInclude(const Aws::Vector<ContainerInstanceField>& value) { m_includeHasBeenSet = true; m_include = value; }
84 inline void SetInclude(Aws::Vector<ContainerInstanceField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
87 inline DescribeContainerInstancesRequest& AddInclude(const ContainerInstanceField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
88 inline DescribeContainerInstancesRequest& AddInclude(ContainerInstanceField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
90 private:
91
92 Aws::String m_cluster;
93 bool m_clusterHasBeenSet = false;
94
95 Aws::Vector<Aws::String> m_containerInstances;
96 bool m_containerInstancesHasBeenSet = false;
97
99 bool m_includeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace ECS
104} // namespace Aws
void SetContainerInstances(const Aws::Vector< Aws::String > &value)
const Aws::Vector< ContainerInstanceField > & GetInclude() const
void SetInclude(const Aws::Vector< ContainerInstanceField > &value)
DescribeContainerInstancesRequest & WithContainerInstances(Aws::Vector< Aws::String > &&value)
DescribeContainerInstancesRequest & WithCluster(const char *value)
DescribeContainerInstancesRequest & WithContainerInstances(const Aws::Vector< Aws::String > &value)
AWS_ECS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetContainerInstances() const
DescribeContainerInstancesRequest & WithInclude(const Aws::Vector< ContainerInstanceField > &value)
DescribeContainerInstancesRequest & AddContainerInstances(const Aws::String &value)
void SetInclude(Aws::Vector< ContainerInstanceField > &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeContainerInstancesRequest & WithCluster(Aws::String &&value)
DescribeContainerInstancesRequest & WithCluster(const Aws::String &value)
DescribeContainerInstancesRequest & WithInclude(Aws::Vector< ContainerInstanceField > &&value)
DescribeContainerInstancesRequest & AddContainerInstances(const char *value)
DescribeContainerInstancesRequest & AddInclude(const ContainerInstanceField &value)
DescribeContainerInstancesRequest & AddInclude(ContainerInstanceField &&value)
DescribeContainerInstancesRequest & AddContainerInstances(Aws::String &&value)
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