7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
19namespace BedrockRuntime
45 inline void SetInputTokens(
int value) { m_inputTokensHasBeenSet =
true; m_inputTokens = value; }
55 inline void SetOutputTokens(
int value) { m_outputTokensHasBeenSet =
true; m_outputTokens = value; }
65 inline void SetTotalTokens(
int value) { m_totalTokensHasBeenSet =
true; m_totalTokens = value; }
71 bool m_inputTokensHasBeenSet =
false;
74 bool m_outputTokensHasBeenSet =
false;
77 bool m_totalTokensHasBeenSet =
false;
TokenUsage & WithInputTokens(int value)
bool TotalTokensHasBeenSet() const
AWS_BEDROCKRUNTIME_API TokenUsage(Aws::Utils::Json::JsonView jsonValue)
bool InputTokensHasBeenSet() const
int GetInputTokens() const
void SetTotalTokens(int value)
void SetInputTokens(int value)
AWS_BEDROCKRUNTIME_API TokenUsage()
void SetOutputTokens(int value)
AWS_BEDROCKRUNTIME_API TokenUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
int GetTotalTokens() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool OutputTokensHasBeenSet() const
TokenUsage & WithTotalTokens(int value)
int GetOutputTokens() const
TokenUsage & WithOutputTokens(int value)
Aws::Utils::Json::JsonValue JsonValue