AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
35
36
38
41 inline const Aws::String& GetSavingsPlanId() const{ return m_savingsPlanId; }
42 inline void SetSavingsPlanId(const Aws::String& value) { m_savingsPlanId = value; }
43 inline void SetSavingsPlanId(Aws::String&& value) { m_savingsPlanId = std::move(value); }
44 inline void SetSavingsPlanId(const char* value) { m_savingsPlanId.assign(value); }
46 inline DescribeSavingsPlanRatesResult& WithSavingsPlanId(Aws::String&& value) { SetSavingsPlanId(std::move(value)); return *this;}
47 inline DescribeSavingsPlanRatesResult& WithSavingsPlanId(const char* value) { SetSavingsPlanId(value); return *this;}
49
51
54 inline const Aws::Vector<SavingsPlanRate>& GetSearchResults() const{ return m_searchResults; }
55 inline void SetSearchResults(const Aws::Vector<SavingsPlanRate>& value) { m_searchResults = value; }
56 inline void SetSearchResults(Aws::Vector<SavingsPlanRate>&& value) { m_searchResults = std::move(value); }
59 inline DescribeSavingsPlanRatesResult& AddSearchResults(const SavingsPlanRate& value) { m_searchResults.push_back(value); return *this; }
60 inline DescribeSavingsPlanRatesResult& AddSearchResults(SavingsPlanRate&& value) { m_searchResults.push_back(std::move(value)); return *this; }
62
64
68 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
69 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
70 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
71 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
72 inline DescribeSavingsPlanRatesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
73 inline DescribeSavingsPlanRatesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
74 inline DescribeSavingsPlanRatesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
76
78
79 inline const Aws::String& GetRequestId() const{ return m_requestId; }
80 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
81 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
82 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
83 inline DescribeSavingsPlanRatesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
84 inline DescribeSavingsPlanRatesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
85 inline DescribeSavingsPlanRatesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
87 private:
88
89 Aws::String m_savingsPlanId;
90
91 Aws::Vector<SavingsPlanRate> m_searchResults;
92
93 Aws::String m_nextToken;
94
95 Aws::String m_requestId;
96 };
97
98} // namespace Model
99} // namespace SavingsPlans
100} // namespace Aws
DescribeSavingsPlanRatesResult & AddSearchResults(SavingsPlanRate &&value)
DescribeSavingsPlanRatesResult & WithSearchResults(const Aws::Vector< SavingsPlanRate > &value)
DescribeSavingsPlanRatesResult & WithNextToken(Aws::String &&value)
DescribeSavingsPlanRatesResult & WithRequestId(const Aws::String &value)
DescribeSavingsPlanRatesResult & WithRequestId(Aws::String &&value)
DescribeSavingsPlanRatesResult & WithNextToken(const char *value)
DescribeSavingsPlanRatesResult & WithSavingsPlanId(const Aws::String &value)
DescribeSavingsPlanRatesResult & WithSavingsPlanId(const char *value)
AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSavingsPlanRatesResult & AddSearchResults(const SavingsPlanRate &value)
DescribeSavingsPlanRatesResult & WithSearchResults(Aws::Vector< SavingsPlanRate > &&value)
DescribeSavingsPlanRatesResult & WithSavingsPlanId(Aws::String &&value)
AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< SavingsPlanRate > & GetSearchResults() const
DescribeSavingsPlanRatesResult & WithRequestId(const char *value)
void SetSearchResults(const Aws::Vector< SavingsPlanRate > &value)
DescribeSavingsPlanRatesResult & WithNextToken(const Aws::String &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