AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
DescribeSavingsPlanRatesResult.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/savingsplans/SavingsPlans_EXPORTS.h>
11#include <aws/savingsplans/model/SavingsPlanRate.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 SavingsPlans {
25namespace Model {
27 public:
28 AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesResult() = default;
31
33
36 inline const Aws::String& GetSavingsPlanId() const { return m_savingsPlanId; }
37 template <typename SavingsPlanIdT = Aws::String>
38 void SetSavingsPlanId(SavingsPlanIdT&& value) {
39 m_savingsPlanIdHasBeenSet = true;
40 m_savingsPlanId = std::forward<SavingsPlanIdT>(value);
41 }
42 template <typename SavingsPlanIdT = Aws::String>
44 SetSavingsPlanId(std::forward<SavingsPlanIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Vector<SavingsPlanRate>& GetSearchResults() const { return m_searchResults; }
54 template <typename SearchResultsT = Aws::Vector<SavingsPlanRate>>
55 void SetSearchResults(SearchResultsT&& value) {
56 m_searchResultsHasBeenSet = true;
57 m_searchResults = std::forward<SearchResultsT>(value);
58 }
59 template <typename SearchResultsT = Aws::Vector<SavingsPlanRate>>
61 SetSearchResults(std::forward<SearchResultsT>(value));
62 return *this;
63 }
64 template <typename SearchResultsT = SavingsPlanRate>
66 m_searchResultsHasBeenSet = true;
67 m_searchResults.emplace_back(std::forward<SearchResultsT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 template <typename NextTokenT = Aws::String>
79 void SetNextToken(NextTokenT&& value) {
80 m_nextTokenHasBeenSet = true;
81 m_nextToken = std::forward<NextTokenT>(value);
82 }
83 template <typename NextTokenT = Aws::String>
85 SetNextToken(std::forward<NextTokenT>(value));
86 return *this;
87 }
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 template <typename RequestIdT = Aws::String>
94 void SetRequestId(RequestIdT&& value) {
95 m_requestIdHasBeenSet = true;
96 m_requestId = std::forward<RequestIdT>(value);
97 }
98 template <typename RequestIdT = Aws::String>
100 SetRequestId(std::forward<RequestIdT>(value));
101 return *this;
102 }
104 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
105
106 private:
107 Aws::String m_savingsPlanId;
108
109 Aws::Vector<SavingsPlanRate> m_searchResults;
110
111 Aws::String m_nextToken;
112
113 Aws::String m_requestId;
114 Aws::Http::HttpResponseCode m_HttpResponseCode;
115 bool m_savingsPlanIdHasBeenSet = false;
116 bool m_searchResultsHasBeenSet = false;
117 bool m_nextTokenHasBeenSet = false;
118 bool m_requestIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace SavingsPlans
123} // namespace Aws
DescribeSavingsPlanRatesResult & WithSearchResults(SearchResultsT &&value)
DescribeSavingsPlanRatesResult & AddSearchResults(SearchResultsT &&value)
DescribeSavingsPlanRatesResult & WithRequestId(RequestIdT &&value)
AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSavingsPlanRatesResult & WithSavingsPlanId(SavingsPlanIdT &&value)
AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesResult()=default
const Aws::Vector< SavingsPlanRate > & GetSearchResults() const
DescribeSavingsPlanRatesResult & WithNextToken(NextTokenT &&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