AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeServicesRequest.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/ServiceField.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 "DescribeServices"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Aws::String& GetCluster() const{ return m_cluster; }
47 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
49 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
50 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
51 inline DescribeServicesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
52 inline DescribeServicesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
53 inline DescribeServicesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetServices() const{ return m_services; }
62 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
63 inline void SetServices(const Aws::Vector<Aws::String>& value) { m_servicesHasBeenSet = true; m_services = value; }
64 inline void SetServices(Aws::Vector<Aws::String>&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); }
65 inline DescribeServicesRequest& WithServices(const Aws::Vector<Aws::String>& value) { SetServices(value); return *this;}
66 inline DescribeServicesRequest& WithServices(Aws::Vector<Aws::String>&& value) { SetServices(std::move(value)); return *this;}
67 inline DescribeServicesRequest& AddServices(const Aws::String& value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
68 inline DescribeServicesRequest& AddServices(Aws::String&& value) { m_servicesHasBeenSet = true; m_services.push_back(std::move(value)); return *this; }
69 inline DescribeServicesRequest& AddServices(const char* value) { m_servicesHasBeenSet = true; m_services.push_back(value); return *this; }
71
73
78 inline const Aws::Vector<ServiceField>& GetInclude() const{ return m_include; }
79 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
80 inline void SetInclude(const Aws::Vector<ServiceField>& value) { m_includeHasBeenSet = true; m_include = value; }
81 inline void SetInclude(Aws::Vector<ServiceField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
82 inline DescribeServicesRequest& WithInclude(const Aws::Vector<ServiceField>& value) { SetInclude(value); return *this;}
83 inline DescribeServicesRequest& WithInclude(Aws::Vector<ServiceField>&& value) { SetInclude(std::move(value)); return *this;}
84 inline DescribeServicesRequest& AddInclude(const ServiceField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
85 inline DescribeServicesRequest& AddInclude(ServiceField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::String m_cluster;
90 bool m_clusterHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_services;
93 bool m_servicesHasBeenSet = false;
94
96 bool m_includeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ECS
101} // namespace Aws
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