AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DescribeServicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pricing/PricingRequest.h>
9#include <aws/pricing/Pricing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Pricing {
15namespace Model {
16
20 public:
21 AWS_PRICING_API DescribeServicesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DescribeServices"; }
28
29 AWS_PRICING_API Aws::String SerializePayload() const override;
30
32
34
40 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
41 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
42 template <typename ServiceCodeT = Aws::String>
43 void SetServiceCode(ServiceCodeT&& value) {
44 m_serviceCodeHasBeenSet = true;
45 m_serviceCode = std::forward<ServiceCodeT>(value);
46 }
47 template <typename ServiceCodeT = Aws::String>
49 SetServiceCode(std::forward<ServiceCodeT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetFormatVersion() const { return m_formatVersion; }
60 inline bool FormatVersionHasBeenSet() const { return m_formatVersionHasBeenSet; }
61 template <typename FormatVersionT = Aws::String>
62 void SetFormatVersion(FormatVersionT&& value) {
63 m_formatVersionHasBeenSet = true;
64 m_formatVersion = std::forward<FormatVersionT>(value);
65 }
66 template <typename FormatVersionT = Aws::String>
67 DescribeServicesRequest& WithFormatVersion(FormatVersionT&& value) {
68 SetFormatVersion(std::forward<FormatVersionT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetNextToken() const { return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 template <typename NextTokenT = Aws::String>
81 void SetNextToken(NextTokenT&& value) {
82 m_nextTokenHasBeenSet = true;
83 m_nextToken = std::forward<NextTokenT>(value);
84 }
85 template <typename NextTokenT = Aws::String>
87 SetNextToken(std::forward<NextTokenT>(value));
88 return *this;
89 }
91
93
96 inline int GetMaxResults() const { return m_maxResults; }
97 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
98 inline void SetMaxResults(int value) {
99 m_maxResultsHasBeenSet = true;
100 m_maxResults = value;
101 }
103 SetMaxResults(value);
104 return *this;
105 }
107 private:
108 Aws::String m_serviceCode;
109
110 Aws::String m_formatVersion;
111
112 Aws::String m_nextToken;
113
114 int m_maxResults{0};
115 bool m_serviceCodeHasBeenSet = false;
116 bool m_formatVersionHasBeenSet = false;
117 bool m_nextTokenHasBeenSet = false;
118 bool m_maxResultsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Pricing
123} // namespace Aws
AWS_PRICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeServicesRequest & WithFormatVersion(FormatVersionT &&value)
DescribeServicesRequest & WithMaxResults(int value)
DescribeServicesRequest & WithNextToken(NextTokenT &&value)
AWS_PRICING_API DescribeServicesRequest()=default
AWS_PRICING_API Aws::String SerializePayload() const override
DescribeServicesRequest & WithServiceCode(ServiceCodeT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String