AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
TransferCreditResult.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Billing {
23namespace Model {
25 public:
26 AWS_BILLING_API TransferCreditResult() = default;
29
31
34 inline const Aws::String& GetSourceCreditId() const { return m_sourceCreditId; }
35 template <typename SourceCreditIdT = Aws::String>
36 void SetSourceCreditId(SourceCreditIdT&& value) {
37 m_sourceCreditIdHasBeenSet = true;
38 m_sourceCreditId = std::forward<SourceCreditIdT>(value);
39 }
40 template <typename SourceCreditIdT = Aws::String>
41 TransferCreditResult& WithSourceCreditId(SourceCreditIdT&& value) {
42 SetSourceCreditId(std::forward<SourceCreditIdT>(value));
43 return *this;
44 }
46
48
52 inline const Aws::String& GetNewCreditId() const { return m_newCreditId; }
53 template <typename NewCreditIdT = Aws::String>
54 void SetNewCreditId(NewCreditIdT&& value) {
55 m_newCreditIdHasBeenSet = true;
56 m_newCreditId = std::forward<NewCreditIdT>(value);
57 }
58 template <typename NewCreditIdT = Aws::String>
59 TransferCreditResult& WithNewCreditId(NewCreditIdT&& value) {
60 SetNewCreditId(std::forward<NewCreditIdT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetDestinationAccountId() const { return m_destinationAccountId; }
71 template <typename DestinationAccountIdT = Aws::String>
72 void SetDestinationAccountId(DestinationAccountIdT&& value) {
73 m_destinationAccountIdHasBeenSet = true;
74 m_destinationAccountId = std::forward<DestinationAccountIdT>(value);
75 }
76 template <typename DestinationAccountIdT = Aws::String>
77 TransferCreditResult& WithDestinationAccountId(DestinationAccountIdT&& value) {
78 SetDestinationAccountId(std::forward<DestinationAccountIdT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetAmount() const { return m_amount; }
89 template <typename AmountT = Aws::String>
90 void SetAmount(AmountT&& value) {
91 m_amountHasBeenSet = true;
92 m_amount = std::forward<AmountT>(value);
93 }
94 template <typename AmountT = Aws::String>
95 TransferCreditResult& WithAmount(AmountT&& value) {
96 SetAmount(std::forward<AmountT>(value));
97 return *this;
98 }
100
102
106 inline bool GetDryRun() const { return m_dryRun; }
107 inline void SetDryRun(bool value) {
108 m_dryRunHasBeenSet = true;
109 m_dryRun = value;
110 }
111 inline TransferCreditResult& WithDryRun(bool value) {
112 SetDryRun(value);
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
126 TransferCreditResult& WithRequestId(RequestIdT&& value) {
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
132
133 private:
134 Aws::String m_sourceCreditId;
135
136 Aws::String m_newCreditId;
137
138 Aws::String m_destinationAccountId;
139
140 Aws::String m_amount;
141
142 bool m_dryRun{false};
143
144 Aws::String m_requestId;
145 Aws::Http::HttpResponseCode m_HttpResponseCode;
146 bool m_sourceCreditIdHasBeenSet = false;
147 bool m_newCreditIdHasBeenSet = false;
148 bool m_destinationAccountIdHasBeenSet = false;
149 bool m_amountHasBeenSet = false;
150 bool m_dryRunHasBeenSet = false;
151 bool m_requestIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace Billing
156} // namespace Aws
AWS_BILLING_API TransferCreditResult()=default
void SetDestinationAccountId(DestinationAccountIdT &&value)
TransferCreditResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetDestinationAccountId() const
TransferCreditResult & WithAmount(AmountT &&value)
TransferCreditResult & WithDestinationAccountId(DestinationAccountIdT &&value)
TransferCreditResult & WithSourceCreditId(SourceCreditIdT &&value)
TransferCreditResult & WithNewCreditId(NewCreditIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
TransferCreditResult & WithDryRun(bool value)
AWS_BILLING_API TransferCreditResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BILLING_API TransferCreditResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSourceCreditId(SourceCreditIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue