AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Usage.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgentRuntime
20{
21namespace Model
22{
23
30 class Usage
31 {
32 public:
33 AWS_BEDROCKAGENTRUNTIME_API Usage();
34 AWS_BEDROCKAGENTRUNTIME_API Usage(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTRUNTIME_API Usage& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline int GetInputTokens() const{ return m_inputTokens; }
45 inline bool InputTokensHasBeenSet() const { return m_inputTokensHasBeenSet; }
46 inline void SetInputTokens(int value) { m_inputTokensHasBeenSet = true; m_inputTokens = value; }
47 inline Usage& WithInputTokens(int value) { SetInputTokens(value); return *this;}
49
51
55 inline int GetOutputTokens() const{ return m_outputTokens; }
56 inline bool OutputTokensHasBeenSet() const { return m_outputTokensHasBeenSet; }
57 inline void SetOutputTokens(int value) { m_outputTokensHasBeenSet = true; m_outputTokens = value; }
58 inline Usage& WithOutputTokens(int value) { SetOutputTokens(value); return *this;}
60 private:
61
62 int m_inputTokens;
63 bool m_inputTokensHasBeenSet = false;
64
65 int m_outputTokens;
66 bool m_outputTokensHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace BedrockAgentRuntime
71} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Usage & WithInputTokens(int value)
Definition Usage.h:47
Usage & WithOutputTokens(int value)
Definition Usage.h:58
AWS_BEDROCKAGENTRUNTIME_API Usage()
AWS_BEDROCKAGENTRUNTIME_API Usage(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Usage & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue