AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DescribeServicesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/support/Support_EXPORTS.h>
11#include <aws/support/model/Service.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Support {
25namespace Model {
33 public:
34 AWS_SUPPORT_API DescribeServicesResult() = default;
37
39
42 inline const Aws::Vector<Service>& GetServices() const { return m_services; }
43 template <typename ServicesT = Aws::Vector<Service>>
44 void SetServices(ServicesT&& value) {
45 m_servicesHasBeenSet = true;
46 m_services = std::forward<ServicesT>(value);
47 }
48 template <typename ServicesT = Aws::Vector<Service>>
50 SetServices(std::forward<ServicesT>(value));
51 return *this;
52 }
53 template <typename ServicesT = Service>
54 DescribeServicesResult& AddServices(ServicesT&& value) {
55 m_servicesHasBeenSet = true;
56 m_services.emplace_back(std::forward<ServicesT>(value));
57 return *this;
58 }
60
62
63 inline const Aws::String& GetRequestId() const { return m_requestId; }
64 template <typename RequestIdT = Aws::String>
65 void SetRequestId(RequestIdT&& value) {
66 m_requestIdHasBeenSet = true;
67 m_requestId = std::forward<RequestIdT>(value);
68 }
69 template <typename RequestIdT = Aws::String>
71 SetRequestId(std::forward<RequestIdT>(value));
72 return *this;
73 }
75 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
76
77 private:
78 Aws::Vector<Service> m_services;
79
80 Aws::String m_requestId;
81 Aws::Http::HttpResponseCode m_HttpResponseCode;
82 bool m_servicesHasBeenSet = false;
83 bool m_requestIdHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Support
88} // namespace Aws
AWS_SUPPORT_API DescribeServicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeServicesResult & WithServices(ServicesT &&value)
AWS_SUPPORT_API DescribeServicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SUPPORT_API DescribeServicesResult()=default
const Aws::Vector< Service > & GetServices() const
DescribeServicesResult & AddServices(ServicesT &&value)
DescribeServicesResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue