AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CountTokensRequest.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
8#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
9#include <aws/bedrock-runtime/model/CountTokensInput.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace BedrockRuntime {
16namespace Model {
17
21 public:
22 AWS_BEDROCKRUNTIME_API CountTokensRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CountTokens"; }
29
30 AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetModelId() const { return m_modelId; }
39 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
40 template <typename ModelIdT = Aws::String>
41 void SetModelId(ModelIdT&& value) {
42 m_modelIdHasBeenSet = true;
43 m_modelId = std::forward<ModelIdT>(value);
44 }
45 template <typename ModelIdT = Aws::String>
46 CountTokensRequest& WithModelId(ModelIdT&& value) {
47 SetModelId(std::forward<ModelIdT>(value));
48 return *this;
49 }
51
53
63 inline const CountTokensInput& GetInput() const { return m_input; }
64 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
65 template <typename InputT = CountTokensInput>
66 void SetInput(InputT&& value) {
67 m_inputHasBeenSet = true;
68 m_input = std::forward<InputT>(value);
69 }
70 template <typename InputT = CountTokensInput>
71 CountTokensRequest& WithInput(InputT&& value) {
72 SetInput(std::forward<InputT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_modelId;
78 bool m_modelIdHasBeenSet = false;
79
80 CountTokensInput m_input;
81 bool m_inputHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace BedrockRuntime
86} // namespace Aws
CountTokensRequest & WithModelId(ModelIdT &&value)
CountTokensRequest & WithInput(InputT &&value)
AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_BEDROCKRUNTIME_API CountTokensRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String