AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
TransferCreditRequest.h
1
6#pragma once
7#include <aws/billing/BillingRequest.h>
8#include <aws/billing/Billing_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Billing {
16namespace Model {
17
21 public:
22 AWS_BILLING_API TransferCreditRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "TransferCredit"; }
29
30 AWS_BILLING_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetCreditId() const { return m_creditId; }
39 inline bool CreditIdHasBeenSet() const { return m_creditIdHasBeenSet; }
40 template <typename CreditIdT = Aws::String>
41 void SetCreditId(CreditIdT&& value) {
42 m_creditIdHasBeenSet = true;
43 m_creditId = std::forward<CreditIdT>(value);
44 }
45 template <typename CreditIdT = Aws::String>
46 TransferCreditRequest& WithCreditId(CreditIdT&& value) {
47 SetCreditId(std::forward<CreditIdT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetDestinationAccountId() const { return m_destinationAccountId; }
59 inline bool DestinationAccountIdHasBeenSet() const { return m_destinationAccountIdHasBeenSet; }
60 template <typename DestinationAccountIdT = Aws::String>
61 void SetDestinationAccountId(DestinationAccountIdT&& value) {
62 m_destinationAccountIdHasBeenSet = true;
63 m_destinationAccountId = std::forward<DestinationAccountIdT>(value);
64 }
65 template <typename DestinationAccountIdT = Aws::String>
66 TransferCreditRequest& WithDestinationAccountId(DestinationAccountIdT&& value) {
67 SetDestinationAccountId(std::forward<DestinationAccountIdT>(value));
68 return *this;
69 }
71
73
80 inline const Aws::String& GetClientToken() const { return m_clientToken; }
81 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
82 template <typename ClientTokenT = Aws::String>
83 void SetClientToken(ClientTokenT&& value) {
84 m_clientTokenHasBeenSet = true;
85 m_clientToken = std::forward<ClientTokenT>(value);
86 }
87 template <typename ClientTokenT = Aws::String>
88 TransferCreditRequest& WithClientToken(ClientTokenT&& value) {
89 SetClientToken(std::forward<ClientTokenT>(value));
90 return *this;
91 }
93
95
99 inline bool GetDryRun() const { return m_dryRun; }
100 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 inline void SetDryRun(bool value) {
102 m_dryRunHasBeenSet = true;
103 m_dryRun = value;
104 }
105 inline TransferCreditRequest& WithDryRun(bool value) {
106 SetDryRun(value);
107 return *this;
108 }
110 private:
111 Aws::String m_creditId;
112
113 Aws::String m_destinationAccountId;
114
116
117 bool m_dryRun{false};
118 bool m_creditIdHasBeenSet = false;
119 bool m_destinationAccountIdHasBeenSet = false;
120 bool m_clientTokenHasBeenSet = true;
121 bool m_dryRunHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Billing
126} // namespace Aws
const Aws::String & GetDestinationAccountId() const
TransferCreditRequest & WithDryRun(bool value)
TransferCreditRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BILLING_API Aws::String SerializePayload() const override
TransferCreditRequest & WithCreditId(CreditIdT &&value)
AWS_BILLING_API TransferCreditRequest()=default
AWS_BILLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDestinationAccountId(DestinationAccountIdT &&value)
TransferCreditRequest & WithDestinationAccountId(DestinationAccountIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String