AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
OutputConfig.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/OutputFormat.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockRuntime {
20namespace Model {
21
32 public:
33 AWS_BEDROCKRUNTIME_API OutputConfig() = default;
36 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const OutputFormat& GetTextFormat() const { return m_textFormat; }
43 inline bool TextFormatHasBeenSet() const { return m_textFormatHasBeenSet; }
44 template <typename TextFormatT = OutputFormat>
45 void SetTextFormat(TextFormatT&& value) {
46 m_textFormatHasBeenSet = true;
47 m_textFormat = std::forward<TextFormatT>(value);
48 }
49 template <typename TextFormatT = OutputFormat>
51 SetTextFormat(std::forward<TextFormatT>(value));
52 return *this;
53 }
55 private:
56 OutputFormat m_textFormat;
57 bool m_textFormatHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace BedrockRuntime
62} // namespace Aws
AWS_BEDROCKRUNTIME_API OutputConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API OutputConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const OutputFormat & GetTextFormat() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTextFormat(TextFormatT &&value)
OutputConfig & WithTextFormat(TextFormatT &&value)
AWS_BEDROCKRUNTIME_API OutputConfig()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue