AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ListServicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/LaunchType.h>
11#include <aws/ecs/model/ResourceManagementType.h>
12#include <aws/ecs/model/SchedulingStrategy.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ECS {
18namespace Model {
19
26 public:
27 AWS_ECS_API ListServicesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListServices"; }
34
35 AWS_ECS_API Aws::String SerializePayload() const override;
36
38
40
45 inline const Aws::String& GetCluster() const { return m_cluster; }
46 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
47 template <typename ClusterT = Aws::String>
48 void SetCluster(ClusterT&& value) {
49 m_clusterHasBeenSet = true;
50 m_cluster = std::forward<ClusterT>(value);
51 }
52 template <typename ClusterT = Aws::String>
53 ListServicesRequest& WithCluster(ClusterT&& value) {
54 SetCluster(std::forward<ClusterT>(value));
55 return *this;
56 }
58
60
69 inline const Aws::String& GetNextToken() const { return m_nextToken; }
70 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 template <typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) {
73 m_nextTokenHasBeenSet = true;
74 m_nextToken = std::forward<NextTokenT>(value);
75 }
76 template <typename NextTokenT = Aws::String>
77 ListServicesRequest& WithNextToken(NextTokenT&& value) {
78 SetNextToken(std::forward<NextTokenT>(value));
79 return *this;
80 }
82
84
94 inline int GetMaxResults() const { return m_maxResults; }
95 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
96 inline void SetMaxResults(int value) {
97 m_maxResultsHasBeenSet = true;
98 m_maxResults = value;
99 }
101 SetMaxResults(value);
102 return *this;
103 }
105
107
111 inline LaunchType GetLaunchType() const { return m_launchType; }
112 inline bool LaunchTypeHasBeenSet() const { return m_launchTypeHasBeenSet; }
113 inline void SetLaunchType(LaunchType value) {
114 m_launchTypeHasBeenSet = true;
115 m_launchType = value;
116 }
118 SetLaunchType(value);
119 return *this;
120 }
122
124
128 inline SchedulingStrategy GetSchedulingStrategy() const { return m_schedulingStrategy; }
129 inline bool SchedulingStrategyHasBeenSet() const { return m_schedulingStrategyHasBeenSet; }
131 m_schedulingStrategyHasBeenSet = true;
132 m_schedulingStrategy = value;
133 }
136 return *this;
137 }
139
141
145 inline ResourceManagementType GetResourceManagementType() const { return m_resourceManagementType; }
146 inline bool ResourceManagementTypeHasBeenSet() const { return m_resourceManagementTypeHasBeenSet; }
148 m_resourceManagementTypeHasBeenSet = true;
149 m_resourceManagementType = value;
150 }
153 return *this;
154 }
156 private:
157 Aws::String m_cluster;
158
159 Aws::String m_nextToken;
160
161 int m_maxResults{0};
162
163 LaunchType m_launchType{LaunchType::NOT_SET};
164
166
168 bool m_clusterHasBeenSet = false;
169 bool m_nextTokenHasBeenSet = false;
170 bool m_maxResultsHasBeenSet = false;
171 bool m_launchTypeHasBeenSet = false;
172 bool m_schedulingStrategyHasBeenSet = false;
173 bool m_resourceManagementTypeHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace ECS
178} // namespace Aws
AWS_ECS_API Aws::String SerializePayload() const override
AWS_ECS_API ListServicesRequest()=default
void SetResourceManagementType(ResourceManagementType value)
ListServicesRequest & WithMaxResults(int value)
void SetSchedulingStrategy(SchedulingStrategy value)
ResourceManagementType GetResourceManagementType() const
ListServicesRequest & WithCluster(ClusterT &&value)
ListServicesRequest & WithSchedulingStrategy(SchedulingStrategy value)
ListServicesRequest & WithNextToken(NextTokenT &&value)
SchedulingStrategy GetSchedulingStrategy() const
const Aws::String & GetNextToken() const
const Aws::String & GetCluster() const
virtual const char * GetServiceRequestName() const override
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListServicesRequest & WithLaunchType(LaunchType value)
ListServicesRequest & WithResourceManagementType(ResourceManagementType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String