AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetReservationPurchaseRecommendationRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ce/model/Expression.h>
11#include <aws/ce/model/AccountScope.h>
12#include <aws/ce/model/LookbackPeriodInDays.h>
13#include <aws/ce/model/TermInYears.h>
14#include <aws/ce/model/PaymentOption.h>
15#include <aws/ce/model/ServiceSpecification.h>
16#include <utility>
17
18namespace Aws
19{
20namespace CostExplorer
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_COSTEXPLORER_API GetReservationPurchaseRecommendationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "GetReservationPurchaseRecommendation"; }
37
38 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
39
40 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetAccountId() const { return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 GetReservationPurchaseRecommendationRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetService() const { return m_service; }
60 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
61 template<typename ServiceT = Aws::String>
62 void SetService(ServiceT&& value) { m_serviceHasBeenSet = true; m_service = std::forward<ServiceT>(value); }
63 template<typename ServiceT = Aws::String>
64 GetReservationPurchaseRecommendationRequest& WithService(ServiceT&& value) { SetService(std::forward<ServiceT>(value)); return *this;}
66
68
69 inline const Expression& GetFilter() const { return m_filter; }
70 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
71 template<typename FilterT = Expression>
72 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
73 template<typename FilterT = Expression>
74 GetReservationPurchaseRecommendationRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
76
78
84 inline AccountScope GetAccountScope() const { return m_accountScope; }
85 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
86 inline void SetAccountScope(AccountScope value) { m_accountScopeHasBeenSet = true; m_accountScope = value; }
89
91
95 inline LookbackPeriodInDays GetLookbackPeriodInDays() const { return m_lookbackPeriodInDays; }
96 inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; }
97 inline void SetLookbackPeriodInDays(LookbackPeriodInDays value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = value; }
100
102
105 inline TermInYears GetTermInYears() const { return m_termInYears; }
106 inline bool TermInYearsHasBeenSet() const { return m_termInYearsHasBeenSet; }
107 inline void SetTermInYears(TermInYears value) { m_termInYearsHasBeenSet = true; m_termInYears = value; }
110
112
115 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
116 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
117 inline void SetPaymentOption(PaymentOption value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
120
122
126 inline const ServiceSpecification& GetServiceSpecification() const { return m_serviceSpecification; }
127 inline bool ServiceSpecificationHasBeenSet() const { return m_serviceSpecificationHasBeenSet; }
128 template<typename ServiceSpecificationT = ServiceSpecification>
129 void SetServiceSpecification(ServiceSpecificationT&& value) { m_serviceSpecificationHasBeenSet = true; m_serviceSpecification = std::forward<ServiceSpecificationT>(value); }
130 template<typename ServiceSpecificationT = ServiceSpecification>
131 GetReservationPurchaseRecommendationRequest& WithServiceSpecification(ServiceSpecificationT&& value) { SetServiceSpecification(std::forward<ServiceSpecificationT>(value)); return *this;}
133
135
139 inline int GetPageSize() const { return m_pageSize; }
140 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
141 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
142 inline GetReservationPurchaseRecommendationRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
144
146
150 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
151 inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; }
152 template<typename NextPageTokenT = Aws::String>
153 void SetNextPageToken(NextPageTokenT&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::forward<NextPageTokenT>(value); }
154 template<typename NextPageTokenT = Aws::String>
155 GetReservationPurchaseRecommendationRequest& WithNextPageToken(NextPageTokenT&& value) { SetNextPageToken(std::forward<NextPageTokenT>(value)); return *this;}
157 private:
158
159 Aws::String m_accountId;
160 bool m_accountIdHasBeenSet = false;
161
162 Aws::String m_service;
163 bool m_serviceHasBeenSet = false;
164
165 Expression m_filter;
166 bool m_filterHasBeenSet = false;
167
168 AccountScope m_accountScope{AccountScope::NOT_SET};
169 bool m_accountScopeHasBeenSet = false;
170
172 bool m_lookbackPeriodInDaysHasBeenSet = false;
173
174 TermInYears m_termInYears{TermInYears::NOT_SET};
175 bool m_termInYearsHasBeenSet = false;
176
177 PaymentOption m_paymentOption{PaymentOption::NOT_SET};
178 bool m_paymentOptionHasBeenSet = false;
179
180 ServiceSpecification m_serviceSpecification;
181 bool m_serviceSpecificationHasBeenSet = false;
182
183 int m_pageSize{0};
184 bool m_pageSizeHasBeenSet = false;
185
186 Aws::String m_nextPageToken;
187 bool m_nextPageTokenHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace CostExplorer
192} // namespace Aws
GetReservationPurchaseRecommendationRequest & WithTermInYears(TermInYears value)
GetReservationPurchaseRecommendationRequest & WithNextPageToken(NextPageTokenT &&value)
GetReservationPurchaseRecommendationRequest & WithAccountId(AccountIdT &&value)
GetReservationPurchaseRecommendationRequest & WithServiceSpecification(ServiceSpecificationT &&value)
GetReservationPurchaseRecommendationRequest & WithLookbackPeriodInDays(LookbackPeriodInDays value)
GetReservationPurchaseRecommendationRequest & WithAccountScope(AccountScope value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
GetReservationPurchaseRecommendationRequest & WithPaymentOption(PaymentOption value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String