AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
SessionLimits.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/Amount.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgentCore {
20namespace Model {
21
29 public:
30 AWS_BEDROCKAGENTCORE_API SessionLimits() = default;
31 AWS_BEDROCKAGENTCORE_API SessionLimits(Aws::Utils::Json::JsonView jsonValue);
32 AWS_BEDROCKAGENTCORE_API SessionLimits& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Amount& GetMaxSpendAmount() const { return m_maxSpendAmount; }
40 inline bool MaxSpendAmountHasBeenSet() const { return m_maxSpendAmountHasBeenSet; }
41 template <typename MaxSpendAmountT = Amount>
42 void SetMaxSpendAmount(MaxSpendAmountT&& value) {
43 m_maxSpendAmountHasBeenSet = true;
44 m_maxSpendAmount = std::forward<MaxSpendAmountT>(value);
45 }
46 template <typename MaxSpendAmountT = Amount>
47 SessionLimits& WithMaxSpendAmount(MaxSpendAmountT&& value) {
48 SetMaxSpendAmount(std::forward<MaxSpendAmountT>(value));
49 return *this;
50 }
52 private:
53 Amount m_maxSpendAmount;
54 bool m_maxSpendAmountHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace BedrockAgentCore
59} // namespace Aws
SessionLimits & WithMaxSpendAmount(MaxSpendAmountT &&value)
void SetMaxSpendAmount(MaxSpendAmountT &&value)
AWS_BEDROCKAGENTCORE_API SessionLimits(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTCORE_API SessionLimits()=default
AWS_BEDROCKAGENTCORE_API SessionLimits & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue