AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
SplitCreditResult.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/ChildCredit.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.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 Billing {
25namespace Model {
27 public:
28 AWS_BILLING_API SplitCreditResult() = default;
31
33
36 inline const Aws::String& GetParentCreditId() const { return m_parentCreditId; }
37 template <typename ParentCreditIdT = Aws::String>
38 void SetParentCreditId(ParentCreditIdT&& value) {
39 m_parentCreditIdHasBeenSet = true;
40 m_parentCreditId = std::forward<ParentCreditIdT>(value);
41 }
42 template <typename ParentCreditIdT = Aws::String>
43 SplitCreditResult& WithParentCreditId(ParentCreditIdT&& value) {
44 SetParentCreditId(std::forward<ParentCreditIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Vector<ChildCredit>& GetChildCredits() const { return m_childCredits; }
54 template <typename ChildCreditsT = Aws::Vector<ChildCredit>>
55 void SetChildCredits(ChildCreditsT&& value) {
56 m_childCreditsHasBeenSet = true;
57 m_childCredits = std::forward<ChildCreditsT>(value);
58 }
59 template <typename ChildCreditsT = Aws::Vector<ChildCredit>>
60 SplitCreditResult& WithChildCredits(ChildCreditsT&& value) {
61 SetChildCredits(std::forward<ChildCreditsT>(value));
62 return *this;
63 }
64 template <typename ChildCreditsT = ChildCredit>
65 SplitCreditResult& AddChildCredits(ChildCreditsT&& value) {
66 m_childCreditsHasBeenSet = true;
67 m_childCredits.emplace_back(std::forward<ChildCreditsT>(value));
68 return *this;
69 }
71
73
77 inline bool GetDryRun() const { return m_dryRun; }
78 inline void SetDryRun(bool value) {
79 m_dryRunHasBeenSet = true;
80 m_dryRun = value;
81 }
82 inline SplitCreditResult& WithDryRun(bool value) {
83 SetDryRun(value);
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
97 SplitCreditResult& WithRequestId(RequestIdT&& value) {
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Aws::String m_parentCreditId;
106
107 Aws::Vector<ChildCredit> m_childCredits;
108
109 bool m_dryRun{false};
110
111 Aws::String m_requestId;
112 Aws::Http::HttpResponseCode m_HttpResponseCode;
113 bool m_parentCreditIdHasBeenSet = false;
114 bool m_childCreditsHasBeenSet = false;
115 bool m_dryRunHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Billing
121} // namespace Aws
void SetChildCredits(ChildCreditsT &&value)
AWS_BILLING_API SplitCreditResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SplitCreditResult & WithDryRun(bool value)
SplitCreditResult & WithParentCreditId(ParentCreditIdT &&value)
const Aws::Vector< ChildCredit > & GetChildCredits() const
AWS_BILLING_API SplitCreditResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetParentCreditId(ParentCreditIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetParentCreditId() const
SplitCreditResult & WithRequestId(RequestIdT &&value)
SplitCreditResult & WithChildCredits(ChildCreditsT &&value)
AWS_BILLING_API SplitCreditResult()=default
const Aws::String & GetRequestId() const
SplitCreditResult & AddChildCredits(ChildCreditsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue