AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SplitCreditRequest.h
1
6#pragma once
7#include <aws/billing/BillingRequest.h>
8#include <aws/billing/Billing_EXPORTS.h>
9#include <aws/billing/model/SplitPortion.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Billing {
18namespace Model {
19
23 public:
24 AWS_BILLING_API SplitCreditRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SplitCredit"; }
31
32 AWS_BILLING_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetCreditId() const { return m_creditId; }
41 inline bool CreditIdHasBeenSet() const { return m_creditIdHasBeenSet; }
42 template <typename CreditIdT = Aws::String>
43 void SetCreditId(CreditIdT&& value) {
44 m_creditIdHasBeenSet = true;
45 m_creditId = std::forward<CreditIdT>(value);
46 }
47 template <typename CreditIdT = Aws::String>
48 SplitCreditRequest& WithCreditId(CreditIdT&& value) {
49 SetCreditId(std::forward<CreditIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<SplitPortion>& GetPortions() const { return m_portions; }
59 inline bool PortionsHasBeenSet() const { return m_portionsHasBeenSet; }
60 template <typename PortionsT = Aws::Vector<SplitPortion>>
61 void SetPortions(PortionsT&& value) {
62 m_portionsHasBeenSet = true;
63 m_portions = std::forward<PortionsT>(value);
64 }
65 template <typename PortionsT = Aws::Vector<SplitPortion>>
66 SplitCreditRequest& WithPortions(PortionsT&& value) {
67 SetPortions(std::forward<PortionsT>(value));
68 return *this;
69 }
70 template <typename PortionsT = SplitPortion>
71 SplitCreditRequest& AddPortions(PortionsT&& value) {
72 m_portionsHasBeenSet = true;
73 m_portions.emplace_back(std::forward<PortionsT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetClientToken() const { return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 template <typename ClientTokenT = Aws::String>
89 void SetClientToken(ClientTokenT&& value) {
90 m_clientTokenHasBeenSet = true;
91 m_clientToken = std::forward<ClientTokenT>(value);
92 }
93 template <typename ClientTokenT = Aws::String>
94 SplitCreditRequest& WithClientToken(ClientTokenT&& value) {
95 SetClientToken(std::forward<ClientTokenT>(value));
96 return *this;
97 }
99
101
105 inline bool GetDryRun() const { return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) {
108 m_dryRunHasBeenSet = true;
109 m_dryRun = value;
110 }
111 inline SplitCreditRequest& WithDryRun(bool value) {
112 SetDryRun(value);
113 return *this;
114 }
116 private:
117 Aws::String m_creditId;
118
119 Aws::Vector<SplitPortion> m_portions;
120
122
123 bool m_dryRun{false};
124 bool m_creditIdHasBeenSet = false;
125 bool m_portionsHasBeenSet = false;
126 bool m_clientTokenHasBeenSet = true;
127 bool m_dryRunHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Billing
132} // namespace Aws
const Aws::String & GetClientToken() const
AWS_BILLING_API Aws::String SerializePayload() const override
AWS_BILLING_API SplitCreditRequest()=default
const Aws::Vector< SplitPortion > & GetPortions() const
const Aws::String & GetCreditId() const
SplitCreditRequest & AddPortions(PortionsT &&value)
SplitCreditRequest & WithClientToken(ClientTokenT &&value)
SplitCreditRequest & WithPortions(PortionsT &&value)
virtual const char * GetServiceRequestName() const override
SplitCreditRequest & WithCreditId(CreditIdT &&value)
void SetClientToken(ClientTokenT &&value)
AWS_BILLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SplitCreditRequest & WithDryRun(bool 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
std::vector< T, Aws::Allocator< T > > Vector