AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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