AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DescribeServicesResult.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/pricing/Pricing_EXPORTS.h>
10#include <aws/pricing/model/Service.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Pricing {
24namespace Model {
26 public:
27 AWS_PRICING_API DescribeServicesResult() = default;
30
32
35 inline const Aws::Vector<Service>& GetServices() const { return m_services; }
36 template <typename ServicesT = Aws::Vector<Service>>
37 void SetServices(ServicesT&& value) {
38 m_servicesHasBeenSet = true;
39 m_services = std::forward<ServicesT>(value);
40 }
41 template <typename ServicesT = Aws::Vector<Service>>
43 SetServices(std::forward<ServicesT>(value));
44 return *this;
45 }
46 template <typename ServicesT = Service>
47 DescribeServicesResult& AddServices(ServicesT&& value) {
48 m_servicesHasBeenSet = true;
49 m_services.emplace_back(std::forward<ServicesT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetFormatVersion() const { return m_formatVersion; }
59 template <typename FormatVersionT = Aws::String>
60 void SetFormatVersion(FormatVersionT&& value) {
61 m_formatVersionHasBeenSet = true;
62 m_formatVersion = std::forward<FormatVersionT>(value);
63 }
64 template <typename FormatVersionT = Aws::String>
65 DescribeServicesResult& WithFormatVersion(FormatVersionT&& value) {
66 SetFormatVersion(std::forward<FormatVersionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 template <typename NextTokenT = Aws::String>
77 void SetNextToken(NextTokenT&& value) {
78 m_nextTokenHasBeenSet = true;
79 m_nextToken = std::forward<NextTokenT>(value);
80 }
81 template <typename NextTokenT = Aws::String>
83 SetNextToken(std::forward<NextTokenT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 private:
103 Aws::Vector<Service> m_services;
104
105 Aws::String m_formatVersion;
106
107 Aws::String m_nextToken;
108
109 Aws::String m_requestId;
110 bool m_servicesHasBeenSet = false;
111 bool m_formatVersionHasBeenSet = false;
112 bool m_nextTokenHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace Pricing
118} // namespace Aws
DescribeServicesResult & WithNextToken(NextTokenT &&value)
AWS_PRICING_API DescribeServicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeServicesResult & WithFormatVersion(FormatVersionT &&value)
DescribeServicesResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Service > & GetServices() const
AWS_PRICING_API DescribeServicesResult()=default
DescribeServicesResult & AddServices(ServicesT &&value)
AWS_PRICING_API DescribeServicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeServicesResult & WithServices(ServicesT &&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