AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeSavingsPlanRatesRequest.h
1
6#pragma once
7#include <aws/savingsplans/SavingsPlans_EXPORTS.h>
8#include <aws/savingsplans/SavingsPlansRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/savingsplans/model/SavingsPlanRateFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SavingsPlans
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeSavingsPlanRates"; }
33
34 AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetSavingsPlanId() const { return m_savingsPlanId; }
42 inline bool SavingsPlanIdHasBeenSet() const { return m_savingsPlanIdHasBeenSet; }
43 template<typename SavingsPlanIdT = Aws::String>
44 void SetSavingsPlanId(SavingsPlanIdT&& value) { m_savingsPlanIdHasBeenSet = true; m_savingsPlanId = std::forward<SavingsPlanIdT>(value); }
45 template<typename SavingsPlanIdT = Aws::String>
46 DescribeSavingsPlanRatesRequest& WithSavingsPlanId(SavingsPlanIdT&& value) { SetSavingsPlanId(std::forward<SavingsPlanIdT>(value)); return *this;}
48
50
53 inline const Aws::Vector<SavingsPlanRateFilter>& GetFilters() const { return m_filters; }
54 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
55 template<typename FiltersT = Aws::Vector<SavingsPlanRateFilter>>
56 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
57 template<typename FiltersT = Aws::Vector<SavingsPlanRateFilter>>
58 DescribeSavingsPlanRatesRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
59 template<typename FiltersT = SavingsPlanRateFilter>
60 DescribeSavingsPlanRatesRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
62
64
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
69 template<typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
71 template<typename NextTokenT = Aws::String>
72 DescribeSavingsPlanRatesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
74
76
80 inline int GetMaxResults() const { return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
83 inline DescribeSavingsPlanRatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
85 private:
86
87 Aws::String m_savingsPlanId;
88 bool m_savingsPlanIdHasBeenSet = false;
89
91 bool m_filtersHasBeenSet = false;
92
93 Aws::String m_nextToken;
94 bool m_nextTokenHasBeenSet = false;
95
96 int m_maxResults{0};
97 bool m_maxResultsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SavingsPlans
102} // namespace Aws
AWS_SAVINGSPLANS_API DescribeSavingsPlanRatesRequest()=default
DescribeSavingsPlanRatesRequest & WithSavingsPlanId(SavingsPlanIdT &&value)
DescribeSavingsPlanRatesRequest & WithNextToken(NextTokenT &&value)
DescribeSavingsPlanRatesRequest & WithFilters(FiltersT &&value)
AWS_SAVINGSPLANS_API Aws::String SerializePayload() const override
const Aws::Vector< SavingsPlanRateFilter > & GetFilters() const
DescribeSavingsPlanRatesRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector