AWS SDK for C++

AWS SDK for C++ Version 1.11.778

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
25 public:
26 AWS_ECS_API DescribeServicesRequest() = default;
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
39
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>
54 SetCluster(std::forward<ClusterT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<Aws::String>& GetServices() const { return m_services; }
65 inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; }
66 template <typename ServicesT = Aws::Vector<Aws::String>>
67 void SetServices(ServicesT&& value) {
68 m_servicesHasBeenSet = true;
69 m_services = std::forward<ServicesT>(value);
70 }
71 template <typename ServicesT = Aws::Vector<Aws::String>>
73 SetServices(std::forward<ServicesT>(value));
74 return *this;
75 }
76 template <typename ServicesT = Aws::String>
78 m_servicesHasBeenSet = true;
79 m_services.emplace_back(std::forward<ServicesT>(value));
80 return *this;
81 }
83
85
90 inline const Aws::Vector<ServiceField>& GetInclude() const { return m_include; }
91 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
92 template <typename IncludeT = Aws::Vector<ServiceField>>
93 void SetInclude(IncludeT&& value) {
94 m_includeHasBeenSet = true;
95 m_include = std::forward<IncludeT>(value);
96 }
97 template <typename IncludeT = Aws::Vector<ServiceField>>
99 SetInclude(std::forward<IncludeT>(value));
100 return *this;
101 }
103 m_includeHasBeenSet = true;
104 m_include.push_back(value);
105 return *this;
106 }
108 private:
109 Aws::String m_cluster;
110
111 Aws::Vector<Aws::String> m_services;
112
114 bool m_clusterHasBeenSet = false;
115 bool m_servicesHasBeenSet = false;
116 bool m_includeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace ECS
121} // 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