AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListContainerInstancesRequest.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/ecs/model/ContainerInstanceStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECS
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListContainerInstances"; }
32
33 AWS_ECS_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetCluster() const{ return m_cluster; }
45 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
46 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
47 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
48 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
49 inline ListContainerInstancesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
50 inline ListContainerInstancesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
51 inline ListContainerInstancesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
53
55
62 inline const Aws::String& GetFilter() const{ return m_filter; }
63 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
64 inline void SetFilter(const Aws::String& value) { m_filterHasBeenSet = true; m_filter = value; }
65 inline void SetFilter(Aws::String&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
66 inline void SetFilter(const char* value) { m_filterHasBeenSet = true; m_filter.assign(value); }
67 inline ListContainerInstancesRequest& WithFilter(const Aws::String& value) { SetFilter(value); return *this;}
68 inline ListContainerInstancesRequest& WithFilter(Aws::String&& value) { SetFilter(std::move(value)); return *this;}
69 inline ListContainerInstancesRequest& WithFilter(const char* value) { SetFilter(value); return *this;}
71
73
82 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
85 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
86 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
87 inline ListContainerInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
88 inline ListContainerInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
89 inline ListContainerInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
91
93
105 inline int GetMaxResults() const{ return m_maxResults; }
106 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
108 inline ListContainerInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
110
112
120 inline const ContainerInstanceStatus& GetStatus() const{ return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(const ContainerInstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
123 inline void SetStatus(ContainerInstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
124 inline ListContainerInstancesRequest& WithStatus(const ContainerInstanceStatus& value) { SetStatus(value); return *this;}
125 inline ListContainerInstancesRequest& WithStatus(ContainerInstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
127 private:
128
129 Aws::String m_cluster;
130 bool m_clusterHasBeenSet = false;
131
132 Aws::String m_filter;
133 bool m_filterHasBeenSet = false;
134
135 Aws::String m_nextToken;
136 bool m_nextTokenHasBeenSet = false;
137
138 int m_maxResults;
139 bool m_maxResultsHasBeenSet = false;
140
142 bool m_statusHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace ECS
147} // namespace Aws
ListContainerInstancesRequest & WithNextToken(Aws::String &&value)
ListContainerInstancesRequest & WithFilter(Aws::String &&value)
ListContainerInstancesRequest & WithMaxResults(int value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListContainerInstancesRequest & WithCluster(const char *value)
ListContainerInstancesRequest & WithNextToken(const char *value)
ListContainerInstancesRequest & WithCluster(const Aws::String &value)
ListContainerInstancesRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListContainerInstancesRequest & WithFilter(const char *value)
ListContainerInstancesRequest & WithStatus(const ContainerInstanceStatus &value)
ListContainerInstancesRequest & WithCluster(Aws::String &&value)
ListContainerInstancesRequest & WithStatus(ContainerInstanceStatus &&value)
ListContainerInstancesRequest & WithFilter(const Aws::String &value)
AWS_ECS_API Aws::String SerializePayload() const override
void SetStatus(const ContainerInstanceStatus &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String