AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DescribeSavingsPlanRatesResult.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/savingsplans/model/SavingsPlanRate.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 SavingsPlans
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesResult() = default;
35
36
38
41 inline const Aws::String& GetSavingsPlanId() const { return m_savingsPlanId; }
42 template<typename SavingsPlanIdT = Aws::String>
43 void SetSavingsPlanId(SavingsPlanIdT&& value) { m_savingsPlanIdHasBeenSet = true; m_savingsPlanId = std::forward<SavingsPlanIdT>(value); }
44 template<typename SavingsPlanIdT = Aws::String>
45 DescribeSavingsPlanRatesResult& WithSavingsPlanId(SavingsPlanIdT&& value) { SetSavingsPlanId(std::forward<SavingsPlanIdT>(value)); return *this;}
47
49
52 inline const Aws::Vector<SavingsPlanRate>& GetSearchResults() const { return m_searchResults; }
53 template<typename SearchResultsT = Aws::Vector<SavingsPlanRate>>
54 void SetSearchResults(SearchResultsT&& value) { m_searchResultsHasBeenSet = true; m_searchResults = std::forward<SearchResultsT>(value); }
55 template<typename SearchResultsT = Aws::Vector<SavingsPlanRate>>
56 DescribeSavingsPlanRatesResult& WithSearchResults(SearchResultsT&& value) { SetSearchResults(std::forward<SearchResultsT>(value)); return *this;}
57 template<typename SearchResultsT = SavingsPlanRate>
58 DescribeSavingsPlanRatesResult& AddSearchResults(SearchResultsT&& value) { m_searchResultsHasBeenSet = true; m_searchResults.emplace_back(std::forward<SearchResultsT>(value)); return *this; }
60
62
66 inline const Aws::String& GetNextToken() const { return m_nextToken; }
67 template<typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
69 template<typename NextTokenT = Aws::String>
70 DescribeSavingsPlanRatesResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template<typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
78 template<typename RequestIdT = Aws::String>
79 DescribeSavingsPlanRatesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
81 private:
82
83 Aws::String m_savingsPlanId;
84 bool m_savingsPlanIdHasBeenSet = false;
85
86 Aws::Vector<SavingsPlanRate> m_searchResults;
87 bool m_searchResultsHasBeenSet = false;
88
89 Aws::String m_nextToken;
90 bool m_nextTokenHasBeenSet = false;
91
92 Aws::String m_requestId;
93 bool m_requestIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SavingsPlans
98} // 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