AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/PaymentOption.h>
11#include <aws/outposts/model/PaymentTerm.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Outposts {
25namespace Model {
27 public:
28 AWS_OUTPOSTS_API CreateRenewalResult() = default;
31
33
36 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
37 inline void SetPaymentOption(PaymentOption value) {
38 m_paymentOptionHasBeenSet = true;
39 m_paymentOption = value;
40 }
42 SetPaymentOption(value);
43 return *this;
44 }
46
48
51 inline PaymentTerm GetPaymentTerm() const { return m_paymentTerm; }
52 inline void SetPaymentTerm(PaymentTerm value) {
53 m_paymentTermHasBeenSet = true;
54 m_paymentTerm = value;
55 }
57 SetPaymentTerm(value);
58 return *this;
59 }
61
63
66 inline const Aws::String& GetOutpostId() const { return m_outpostId; }
67 template <typename OutpostIdT = Aws::String>
68 void SetOutpostId(OutpostIdT&& value) {
69 m_outpostIdHasBeenSet = true;
70 m_outpostId = std::forward<OutpostIdT>(value);
71 }
72 template <typename OutpostIdT = Aws::String>
73 CreateRenewalResult& WithOutpostId(OutpostIdT&& value) {
74 SetOutpostId(std::forward<OutpostIdT>(value));
75 return *this;
76 }
78
80
83 inline double GetUpfrontPrice() const { return m_upfrontPrice; }
84 inline void SetUpfrontPrice(double value) {
85 m_upfrontPriceHasBeenSet = true;
86 m_upfrontPrice = value;
87 }
88 inline CreateRenewalResult& WithUpfrontPrice(double value) {
89 SetUpfrontPrice(value);
90 return *this;
91 }
93
95
98 inline double GetMonthlyRecurringPrice() const { return m_monthlyRecurringPrice; }
99 inline void SetMonthlyRecurringPrice(double value) {
100 m_monthlyRecurringPriceHasBeenSet = true;
101 m_monthlyRecurringPrice = value;
102 }
105 return *this;
106 }
108
110
111 inline const Aws::String& GetRequestId() const { return m_requestId; }
112 template <typename RequestIdT = Aws::String>
113 void SetRequestId(RequestIdT&& value) {
114 m_requestIdHasBeenSet = true;
115 m_requestId = std::forward<RequestIdT>(value);
116 }
117 template <typename RequestIdT = Aws::String>
118 CreateRenewalResult& WithRequestId(RequestIdT&& value) {
119 SetRequestId(std::forward<RequestIdT>(value));
120 return *this;
121 }
123 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
124
125 private:
126 PaymentOption m_paymentOption{PaymentOption::NOT_SET};
127
128 PaymentTerm m_paymentTerm{PaymentTerm::NOT_SET};
129
130 Aws::String m_outpostId;
131
132 double m_upfrontPrice{0.0};
133
134 double m_monthlyRecurringPrice{0.0};
135
136 Aws::String m_requestId;
137 Aws::Http::HttpResponseCode m_HttpResponseCode;
138 bool m_paymentOptionHasBeenSet = false;
139 bool m_paymentTermHasBeenSet = false;
140 bool m_outpostIdHasBeenSet = false;
141 bool m_upfrontPriceHasBeenSet = false;
142 bool m_monthlyRecurringPriceHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Outposts
148} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue