AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeServicesResult.h
1
6#pragma once
7#include <aws/pricing/Pricing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pricing/model/Service.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Pricing
26{
27namespace Model
28{
30 {
31 public:
32 AWS_PRICING_API DescribeServicesResult() = default;
35
36
38
41 inline const Aws::Vector<Service>& GetServices() const { return m_services; }
42 template<typename ServicesT = Aws::Vector<Service>>
43 void SetServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services = std::forward<ServicesT>(value); }
44 template<typename ServicesT = Aws::Vector<Service>>
45 DescribeServicesResult& WithServices(ServicesT&& value) { SetServices(std::forward<ServicesT>(value)); return *this;}
46 template<typename ServicesT = Service>
47 DescribeServicesResult& AddServices(ServicesT&& value) { m_servicesHasBeenSet = true; m_services.emplace_back(std::forward<ServicesT>(value)); return *this; }
49
51
54 inline const Aws::String& GetFormatVersion() const { return m_formatVersion; }
55 template<typename FormatVersionT = Aws::String>
56 void SetFormatVersion(FormatVersionT&& value) { m_formatVersionHasBeenSet = true; m_formatVersion = std::forward<FormatVersionT>(value); }
57 template<typename FormatVersionT = Aws::String>
58 DescribeServicesResult& WithFormatVersion(FormatVersionT&& value) { SetFormatVersion(std::forward<FormatVersionT>(value)); return *this;}
60
62
65 inline const Aws::String& GetNextToken() const { return m_nextToken; }
66 template<typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
68 template<typename NextTokenT = Aws::String>
69 DescribeServicesResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template<typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
77 template<typename RequestIdT = Aws::String>
78 DescribeServicesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
80 private:
81
82 Aws::Vector<Service> m_services;
83 bool m_servicesHasBeenSet = false;
84
85 Aws::String m_formatVersion;
86 bool m_formatVersionHasBeenSet = false;
87
88 Aws::String m_nextToken;
89 bool m_nextTokenHasBeenSet = false;
90
91 Aws::String m_requestId;
92 bool m_requestIdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Pricing
97} // 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