AWS SDK for C++

AWS SDK for C++ Version 1.11.925

Loading...
Searching...
No Matches
SampleTokenUsage.h
1
6#pragma once
7#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SageMakerTrainingSessionRuntime {
17namespace Model {
18
26 public:
27 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTokenUsage() = default;
28 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTokenUsage(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTokenUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetPrefill() const { return m_prefill; }
37 inline bool PrefillHasBeenSet() const { return m_prefillHasBeenSet; }
38 inline void SetPrefill(int value) {
39 m_prefillHasBeenSet = true;
40 m_prefill = value;
41 }
42 inline SampleTokenUsage& WithPrefill(int value) {
43 SetPrefill(value);
44 return *this;
45 }
47
49
52 inline int GetDecode() const { return m_decode; }
53 inline bool DecodeHasBeenSet() const { return m_decodeHasBeenSet; }
54 inline void SetDecode(int value) {
55 m_decodeHasBeenSet = true;
56 m_decode = value;
57 }
58 inline SampleTokenUsage& WithDecode(int value) {
59 SetDecode(value);
60 return *this;
61 }
63 private:
64 int m_prefill{0};
65
66 int m_decode{0};
67 bool m_prefillHasBeenSet = false;
68 bool m_decodeHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace SageMakerTrainingSessionRuntime
73} // namespace Aws
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTokenUsage(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTokenUsage()=default
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTokenUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue