AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
DescribeServicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/ServiceField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API DescribeServicesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeServices"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::String& GetCluster() const { return m_cluster; }
43 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
44 template <typename ClusterT = Aws::String>
45 void SetCluster(ClusterT&& value) {
46 m_clusterHasBeenSet = true;
47 m_cluster = std::forward<ClusterT>(value);
48 }
49 template <typename ClusterT = Aws::String>
51 SetCluster(std::forward<ClusterT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<Aws::String>& GetServices() const { return m_services; }
62 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
63 template <typename ServicesT = Aws::Vector<Aws::String>>
64 void SetServices(ServicesT&& value) {
65 m_servicesHasBeenSet = true;
66 m_services = std::forward<ServicesT>(value);
67 }
68 template <typename ServicesT = Aws::Vector<Aws::String>>
70 SetServices(std::forward<ServicesT>(value));
71 return *this;
72 }
73 template <typename ServicesT = Aws::String>
75 m_servicesHasBeenSet = true;
76 m_services.emplace_back(std::forward<ServicesT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::Vector<ServiceField>& GetInclude() const { return m_include; }
88 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
89 template <typename IncludeT = Aws::Vector<ServiceField>>
90 void SetInclude(IncludeT&& value) {
91 m_includeHasBeenSet = true;
92 m_include = std::forward<IncludeT>(value);
93 }
94 template <typename IncludeT = Aws::Vector<ServiceField>>
96 SetInclude(std::forward<IncludeT>(value));
97 return *this;
98 }
100 m_includeHasBeenSet = true;
101 m_include.push_back(value);
102 return *this;
103 }
105 private:
106 Aws::String m_cluster;
107
108 Aws::Vector<Aws::String> m_services;
109
111 bool m_clusterHasBeenSet = false;
112 bool m_servicesHasBeenSet = false;
113 bool m_includeHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace ECS
118} // namespace Aws
DescribeServicesRequest & WithInclude(IncludeT &&value)
DescribeServicesRequest & WithCluster(ClusterT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< ServiceField > & GetInclude() const
DescribeServicesRequest & WithServices(ServicesT &&value)
DescribeServicesRequest & AddInclude(ServiceField value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECS_API DescribeServicesRequest()=default
const Aws::Vector< Aws::String > & GetServices() const
DescribeServicesRequest & AddServices(ServicesT &&value)
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