AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
CreateRenewalResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/outposts/Outposts_EXPORTS.h>
10#include <aws/outposts/model/CurrencyCode.h>
11#include <aws/outposts/model/PaymentOption.h>
12#include <aws/outposts/model/PaymentTerm.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Outposts {
26namespace Model {
28 public:
29 AWS_OUTPOSTS_API CreateRenewalResult() = default;
32
34
37 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
38 inline void SetPaymentOption(PaymentOption value) {
39 m_paymentOptionHasBeenSet = true;
40 m_paymentOption = value;
41 }
43 SetPaymentOption(value);
44 return *this;
45 }
47
49
52 inline PaymentTerm GetPaymentTerm() const { return m_paymentTerm; }
53 inline void SetPaymentTerm(PaymentTerm value) {
54 m_paymentTermHasBeenSet = true;
55 m_paymentTerm = value;
56 }
58 SetPaymentTerm(value);
59 return *this;
60 }
62
64
67 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
68 template <typename OutpostIdT = Aws::String>
69 void SetOutpostId(OutpostIdT&& value) {
70 m_outpostIdHasBeenSet = true;
71 m_outpostId = std::forward<OutpostIdT>(value);
72 }
73 template <typename OutpostIdT = Aws::String>
74 CreateRenewalResult& WithOutpostId(OutpostIdT&& value) {
75 SetOutpostId(std::forward<OutpostIdT>(value));
76 return *this;
77 }
79
81
84 inline double GetUpfrontPrice() const { return m_upfrontPrice; }
85 inline void SetUpfrontPrice(double value) {
86 m_upfrontPriceHasBeenSet = true;
87 m_upfrontPrice = value;
88 }
89 inline CreateRenewalResult& WithUpfrontPrice(double value) {
90 SetUpfrontPrice(value);
91 return *this;
92 }
94
96
99 inline double GetMonthlyRecurringPrice() const { return m_monthlyRecurringPrice; }
100 inline void SetMonthlyRecurringPrice(double value) {
101 m_monthlyRecurringPriceHasBeenSet = true;
102 m_monthlyRecurringPrice = value;
103 }
106 return *this;
107 }
109
111
114 inline CurrencyCode GetCurrency() const { return m_currency; }
115 inline void SetCurrency(CurrencyCode value) {
116 m_currencyHasBeenSet = true;
117 m_currency = value;
118 }
120 SetCurrency(value);
121 return *this;
122 }
124
126
127 inline const Aws::String& GetRequestId() const { return m_requestId; }
128 template <typename RequestIdT = Aws::String>
129 void SetRequestId(RequestIdT&& value) {
130 m_requestIdHasBeenSet = true;
131 m_requestId = std::forward<RequestIdT>(value);
132 }
133 template <typename RequestIdT = Aws::String>
134 CreateRenewalResult& WithRequestId(RequestIdT&& value) {
135 SetRequestId(std::forward<RequestIdT>(value));
136 return *this;
137 }
139 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
140
141 private:
142 PaymentOption m_paymentOption{PaymentOption::NOT_SET};
143
144 PaymentTerm m_paymentTerm{PaymentTerm::NOT_SET};
145
146 Aws::String m_outpostId;
147
148 double m_upfrontPrice{0.0};
149
150 double m_monthlyRecurringPrice{0.0};
151
153
154 Aws::String m_requestId;
155 Aws::Http::HttpResponseCode m_HttpResponseCode;
156 bool m_paymentOptionHasBeenSet = false;
157 bool m_paymentTermHasBeenSet = false;
158 bool m_outpostIdHasBeenSet = false;
159 bool m_upfrontPriceHasBeenSet = false;
160 bool m_monthlyRecurringPriceHasBeenSet = false;
161 bool m_currencyHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Outposts
167} // namespace Aws
CreateRenewalResult & WithMonthlyRecurringPrice(double value)
CreateRenewalResult & WithUpfrontPrice(double value)
AWS_OUTPOSTS_API CreateRenewalResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRenewalResult & WithOutpostId(OutpostIdT &&value)
CreateRenewalResult & WithPaymentOption(PaymentOption value)
CreateRenewalResult & WithPaymentTerm(PaymentTerm value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_OUTPOSTS_API CreateRenewalResult()=default
CreateRenewalResult & WithRequestId(RequestIdT &&value)
AWS_OUTPOSTS_API CreateRenewalResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRenewalResult & WithCurrency(CurrencyCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue