AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DescribeServicesRequest.h
Go to the documentation of this file.
1
6#pragma once
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 "DescribeServices"; }
33
35
37
38
45 inline const Aws::String& GetCluster() const{ return m_cluster; }
46
53 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
54
61 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
62
69 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
70
77 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
78
85 inline DescribeServicesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
86
93 inline DescribeServicesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
94
101 inline DescribeServicesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
102
103
108 inline const Aws::Vector<Aws::String>& GetServices() const{ return m_services; }
109
114 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
115
120 inline void SetServices(const Aws::Vector<Aws::String>& value) { m_servicesHasBeenSet = true; m_services = value; }
121
126 inline void SetServices(Aws::Vector<Aws::String>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
127
132 inline DescribeServicesRequest& WithServices(const Aws::Vector<Aws::String>& value) { SetServices(value); return *this;}
133
138 inline DescribeServicesRequest& WithServices(Aws::Vector<Aws::String>&& value) { SetServices(std::move(value)); return *this;}
139
144 inline DescribeServicesRequest& AddServices(const Aws::String& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
145
150 inline DescribeServicesRequest& AddServices(Aws::String&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
151
156 inline DescribeServicesRequest& AddServices(const char* value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
157
158
164 inline const Aws::Vector<ServiceField>& GetInclude() const{ return m_include; }
165
171 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
172
178 inline void SetInclude(const Aws::Vector<ServiceField>& value) { m_includeHasBeenSet = true; m_include = value; }
179
185 inline void SetInclude(Aws::Vector<ServiceField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
186
192 inline DescribeServicesRequest& WithInclude(const Aws::Vector<ServiceField>& value) { SetInclude(value); return *this;}
193
199 inline DescribeServicesRequest& WithInclude(Aws::Vector<ServiceField>&& value) { SetInclude(std::move(value)); return *this;}
200
206 inline DescribeServicesRequest& AddInclude(const ServiceField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
207
213 inline DescribeServicesRequest& AddInclude(ServiceField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
214
215 private:
216
217 Aws::String m_cluster;
218 bool m_clusterHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_services;
221 bool m_servicesHasBeenSet = false;
222
224 bool m_includeHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace ECS
229} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
DescribeServicesRequest & AddServices(const char *value)
void SetInclude(const Aws::Vector< ServiceField > &value)
DescribeServicesRequest & WithInclude(Aws::Vector< ServiceField > &&value)
DescribeServicesRequest & AddInclude(ServiceField &&value)
DescribeServicesRequest & WithCluster(Aws::String &&value)
DescribeServicesRequest & AddServices(const Aws::String &value)
void SetServices(const Aws::Vector< Aws::String > &value)
AWS_ECS_API Aws::String SerializePayload() const override
DescribeServicesRequest & AddServices(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribeServicesRequest & WithCluster(const Aws::String &value)
const Aws::Vector< ServiceField > & GetInclude() const
DescribeServicesRequest & WithInclude(const Aws::Vector< ServiceField > &value)
void SetInclude(Aws::Vector< ServiceField > &&value)
void SetServices(Aws::Vector< Aws::String > &&value)
DescribeServicesRequest & WithCluster(const char *value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeServicesRequest & WithServices(const Aws::Vector< Aws::String > &value)
DescribeServicesRequest & WithServices(Aws::Vector< Aws::String > &&value)
DescribeServicesRequest & AddInclude(const ServiceField &value)
const Aws::Vector< Aws::String > & GetServices() const
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