AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeServicesRequest.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 "DescribeServices"; }
33 
34  Aws::String SerializePayload() const override;
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;
219 
220  Aws::Vector<Aws::String> m_services;
221  bool m_servicesHasBeenSet;
222 
223  Aws::Vector<ServiceField> m_include;
224  bool m_includeHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace ECS
229 } // namespace Aws
Aws::ECS::Model::DescribeServicesRequest::ServicesHasBeenSet
bool ServicesHasBeenSet() const
Definition: DescribeServicesRequest.h:114
Aws::ECS::Model::DescribeServicesRequest::WithServices
DescribeServicesRequest & WithServices(const Aws::Vector< Aws::String > &value)
Definition: DescribeServicesRequest.h:132
Aws::ECS::Model::DescribeServicesRequest::WithInclude
DescribeServicesRequest & WithInclude(Aws::Vector< ServiceField > &&value)
Definition: DescribeServicesRequest.h:199
Aws::ECS::Model::DescribeServicesRequest::WithCluster
DescribeServicesRequest & WithCluster(const char *value)
Definition: DescribeServicesRequest.h:101
Aws::ECS::Model::DescribeServicesRequest::GetInclude
const Aws::Vector< ServiceField > & GetInclude() const
Definition: DescribeServicesRequest.h:164
Aws::ECS::Model::DescribeServicesRequest::SetCluster
void SetCluster(const char *value)
Definition: DescribeServicesRequest.h:77
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::ServiceField
ServiceField
Definition: ServiceField.h:17
Aws::ECS::Model::DescribeServicesRequest::AddServices
DescribeServicesRequest & AddServices(const char *value)
Definition: DescribeServicesRequest.h:156
Aws::ECS::Model::DescribeServicesRequest::SetInclude
void SetInclude(Aws::Vector< ServiceField > &&value)
Definition: DescribeServicesRequest.h:185
Aws::ECS::Model::DescribeServicesRequest::GetServices
const Aws::Vector< Aws::String > & GetServices() const
Definition: DescribeServicesRequest.h:108
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::DescribeServicesRequest::AddServices
DescribeServicesRequest & AddServices(const Aws::String &value)
Definition: DescribeServicesRequest.h:144
Aws::ECS::Model::DescribeServicesRequest::SetInclude
void SetInclude(const Aws::Vector< ServiceField > &value)
Definition: DescribeServicesRequest.h:178
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeServicesRequest::AddInclude
DescribeServicesRequest & AddInclude(ServiceField &&value)
Definition: DescribeServicesRequest.h:213
Aws::ECS::Model::DescribeServicesRequest::GetCluster
const Aws::String & GetCluster() const
Definition: DescribeServicesRequest.h:45
Aws::ECS::Model::DescribeServicesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DescribeServicesRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: DescribeServicesRequest.h:61
Aws::ECS::Model::DescribeServicesRequest::WithInclude
DescribeServicesRequest & WithInclude(const Aws::Vector< ServiceField > &value)
Definition: DescribeServicesRequest.h:192
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DescribeServicesRequest::IncludeHasBeenSet
bool IncludeHasBeenSet() const
Definition: DescribeServicesRequest.h:171
AWSString.h
ServiceField.h
Aws::ECS::Model::DescribeServicesRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: DescribeServicesRequest.h:69
Aws::ECS::Model::DescribeServicesRequest::SetServices
void SetServices(Aws::Vector< Aws::String > &&value)
Definition: DescribeServicesRequest.h:126
Aws::ECS::Model::DescribeServicesRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: DescribeServicesRequest.h:53
Aws::ECS::Model::DescribeServicesRequest::AddServices
DescribeServicesRequest & AddServices(Aws::String &&value)
Definition: DescribeServicesRequest.h:150
Aws::ECS::Model::DescribeServicesRequest::DescribeServicesRequest
DescribeServicesRequest()
Aws::ECS::Model::DescribeServicesRequest::SetServices
void SetServices(const Aws::Vector< Aws::String > &value)
Definition: DescribeServicesRequest.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DescribeServicesRequest::WithCluster
DescribeServicesRequest & WithCluster(const Aws::String &value)
Definition: DescribeServicesRequest.h:85
Aws::ECS::Model::DescribeServicesRequest::AddInclude
DescribeServicesRequest & AddInclude(const ServiceField &value)
Definition: DescribeServicesRequest.h:206
Aws::ECS::Model::DescribeServicesRequest::WithServices
DescribeServicesRequest & WithServices(Aws::Vector< Aws::String > &&value)
Definition: DescribeServicesRequest.h:138
Aws::ECS::Model::DescribeServicesRequest::WithCluster
DescribeServicesRequest & WithCluster(Aws::String &&value)
Definition: DescribeServicesRequest.h:93
Aws::ECS::Model::DescribeServicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeServicesRequest.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DescribeServicesRequest
Definition: DescribeServicesRequest.h:24
Aws::ECS::Model::DescribeServicesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override