AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
PaymentSession.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/AvailableLimits.h>
9#include <aws/bedrock-agentcore/model/SessionLimits.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentCore {
23namespace Model {
24
32 public:
33 AWS_BEDROCKAGENTCORE_API PaymentSession() = default;
34 AWS_BEDROCKAGENTCORE_API PaymentSession(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTCORE_API PaymentSession& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPaymentSessionId() const { return m_paymentSessionId; }
43 inline bool PaymentSessionIdHasBeenSet() const { return m_paymentSessionIdHasBeenSet; }
44 template <typename PaymentSessionIdT = Aws::String>
45 void SetPaymentSessionId(PaymentSessionIdT&& value) {
46 m_paymentSessionIdHasBeenSet = true;
47 m_paymentSessionId = std::forward<PaymentSessionIdT>(value);
48 }
49 template <typename PaymentSessionIdT = Aws::String>
50 PaymentSession& WithPaymentSessionId(PaymentSessionIdT&& value) {
51 SetPaymentSessionId(std::forward<PaymentSessionIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPaymentManagerArn() const { return m_paymentManagerArn; }
61 inline bool PaymentManagerArnHasBeenSet() const { return m_paymentManagerArnHasBeenSet; }
62 template <typename PaymentManagerArnT = Aws::String>
63 void SetPaymentManagerArn(PaymentManagerArnT&& value) {
64 m_paymentManagerArnHasBeenSet = true;
65 m_paymentManagerArn = std::forward<PaymentManagerArnT>(value);
66 }
67 template <typename PaymentManagerArnT = Aws::String>
68 PaymentSession& WithPaymentManagerArn(PaymentManagerArnT&& value) {
69 SetPaymentManagerArn(std::forward<PaymentManagerArnT>(value));
70 return *this;
71 }
73
75
78 inline const SessionLimits& GetLimits() const { return m_limits; }
79 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
80 template <typename LimitsT = SessionLimits>
81 void SetLimits(LimitsT&& value) {
82 m_limitsHasBeenSet = true;
83 m_limits = std::forward<LimitsT>(value);
84 }
85 template <typename LimitsT = SessionLimits>
86 PaymentSession& WithLimits(LimitsT&& value) {
87 SetLimits(std::forward<LimitsT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetUserId() const { return m_userId; }
97 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
98 template <typename UserIdT = Aws::String>
99 void SetUserId(UserIdT&& value) {
100 m_userIdHasBeenSet = true;
101 m_userId = std::forward<UserIdT>(value);
102 }
103 template <typename UserIdT = Aws::String>
104 PaymentSession& WithUserId(UserIdT&& value) {
105 SetUserId(std::forward<UserIdT>(value));
106 return *this;
107 }
109
111
114 inline int GetExpiryTimeInMinutes() const { return m_expiryTimeInMinutes; }
115 inline bool ExpiryTimeInMinutesHasBeenSet() const { return m_expiryTimeInMinutesHasBeenSet; }
116 inline void SetExpiryTimeInMinutes(int value) {
117 m_expiryTimeInMinutesHasBeenSet = true;
118 m_expiryTimeInMinutes = value;
119 }
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
131 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
132 template <typename CreatedAtT = Aws::Utils::DateTime>
133 void SetCreatedAt(CreatedAtT&& value) {
134 m_createdAtHasBeenSet = true;
135 m_createdAt = std::forward<CreatedAtT>(value);
136 }
137 template <typename CreatedAtT = Aws::Utils::DateTime>
138 PaymentSession& WithCreatedAt(CreatedAtT&& value) {
139 SetCreatedAt(std::forward<CreatedAtT>(value));
140 return *this;
141 }
143
145
148 inline const AvailableLimits& GetAvailableLimits() const { return m_availableLimits; }
149 inline bool AvailableLimitsHasBeenSet() const { return m_availableLimitsHasBeenSet; }
150 template <typename AvailableLimitsT = AvailableLimits>
151 void SetAvailableLimits(AvailableLimitsT&& value) {
152 m_availableLimitsHasBeenSet = true;
153 m_availableLimits = std::forward<AvailableLimitsT>(value);
154 }
155 template <typename AvailableLimitsT = AvailableLimits>
156 PaymentSession& WithAvailableLimits(AvailableLimitsT&& value) {
157 SetAvailableLimits(std::forward<AvailableLimitsT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
167 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
168 template <typename UpdatedAtT = Aws::Utils::DateTime>
169 void SetUpdatedAt(UpdatedAtT&& value) {
170 m_updatedAtHasBeenSet = true;
171 m_updatedAt = std::forward<UpdatedAtT>(value);
172 }
173 template <typename UpdatedAtT = Aws::Utils::DateTime>
174 PaymentSession& WithUpdatedAt(UpdatedAtT&& value) {
175 SetUpdatedAt(std::forward<UpdatedAtT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_paymentSessionId;
181
182 Aws::String m_paymentManagerArn;
183
184 SessionLimits m_limits;
185
186 Aws::String m_userId;
187
188 int m_expiryTimeInMinutes{0};
189
190 Aws::Utils::DateTime m_createdAt{};
191
192 AvailableLimits m_availableLimits;
193
194 Aws::Utils::DateTime m_updatedAt{};
195 bool m_paymentSessionIdHasBeenSet = false;
196 bool m_paymentManagerArnHasBeenSet = false;
197 bool m_limitsHasBeenSet = false;
198 bool m_userIdHasBeenSet = false;
199 bool m_expiryTimeInMinutesHasBeenSet = false;
200 bool m_createdAtHasBeenSet = false;
201 bool m_availableLimitsHasBeenSet = false;
202 bool m_updatedAtHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace BedrockAgentCore
207} // namespace Aws
void SetAvailableLimits(AvailableLimitsT &&value)
PaymentSession & WithLimits(LimitsT &&value)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
PaymentSession & WithPaymentManagerArn(PaymentManagerArnT &&value)
PaymentSession & WithCreatedAt(CreatedAtT &&value)
PaymentSession & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
PaymentSession & WithAvailableLimits(AvailableLimitsT &&value)
void SetPaymentSessionId(PaymentSessionIdT &&value)
AWS_BEDROCKAGENTCORE_API PaymentSession & operator=(Aws::Utils::Json::JsonView jsonValue)
PaymentSession & WithExpiryTimeInMinutes(int value)
AWS_BEDROCKAGENTCORE_API PaymentSession(Aws::Utils::Json::JsonView jsonValue)
const AvailableLimits & GetAvailableLimits() const
const Aws::String & GetPaymentManagerArn() const
const SessionLimits & GetLimits() const
PaymentSession & WithPaymentSessionId(PaymentSessionIdT &&value)
PaymentSession & WithUserId(UserIdT &&value)
AWS_BEDROCKAGENTCORE_API PaymentSession()=default
const Aws::String & GetPaymentSessionId() const
void SetPaymentManagerArn(PaymentManagerArnT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue