AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetRenewalPricingResult.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/outposts/Outposts_EXPORTS.h>
11#include <aws/outposts/model/PricingOption.h>
12#include <aws/outposts/model/PricingResult.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Outposts {
26namespace Model {
28 public:
29 AWS_OUTPOSTS_API GetRenewalPricingResult() = default;
32
34
37 inline PricingResult GetPricingResult() const { return m_pricingResult; }
38 inline void SetPricingResult(PricingResult value) {
39 m_pricingResultHasBeenSet = true;
40 m_pricingResult = value;
41 }
43 SetPricingResult(value);
44 return *this;
45 }
47
49
52 inline const Aws::Vector<PricingOption>& GetPricingOptions() const { return m_pricingOptions; }
53 template <typename PricingOptionsT = Aws::Vector<PricingOption>>
54 void SetPricingOptions(PricingOptionsT&& value) {
55 m_pricingOptionsHasBeenSet = true;
56 m_pricingOptions = std::forward<PricingOptionsT>(value);
57 }
58 template <typename PricingOptionsT = Aws::Vector<PricingOption>>
59 GetRenewalPricingResult& WithPricingOptions(PricingOptionsT&& value) {
60 SetPricingOptions(std::forward<PricingOptionsT>(value));
61 return *this;
62 }
63 template <typename PricingOptionsT = PricingOption>
64 GetRenewalPricingResult& AddPricingOptions(PricingOptionsT&& value) {
65 m_pricingOptionsHasBeenSet = true;
66 m_pricingOptions.emplace_back(std::forward<PricingOptionsT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
89
90 Aws::Vector<PricingOption> m_pricingOptions;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_pricingResultHasBeenSet = false;
95 bool m_pricingOptionsHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Outposts
101} // namespace Aws
GetRenewalPricingResult & WithPricingOptions(PricingOptionsT &&value)
GetRenewalPricingResult & WithPricingResult(PricingResult value)
AWS_OUTPOSTS_API GetRenewalPricingResult()=default
const Aws::Vector< PricingOption > & GetPricingOptions() const
GetRenewalPricingResult & WithRequestId(RequestIdT &&value)
AWS_OUTPOSTS_API GetRenewalPricingResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_OUTPOSTS_API GetRenewalPricingResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRenewalPricingResult & AddPricingOptions(PricingOptionsT &&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