AWS SDK for C++

AWS SDK for C++ Version 1.11.866

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#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
33 public:
34 AWS_BEDROCKRUNTIME_API OutputConfig() = default;
37 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const OutputFormat& GetTextFormat() const { return m_textFormat; }
44 inline bool TextFormatHasBeenSet() const { return m_textFormatHasBeenSet; }
45 template <typename TextFormatT = OutputFormat>
46 void SetTextFormat(TextFormatT&& value) {
47 m_textFormatHasBeenSet = true;
48 m_textFormat = std::forward<TextFormatT>(value);
49 }
50 template <typename TextFormatT = OutputFormat>
52 SetTextFormat(std::forward<TextFormatT>(value));
53 return *this;
54 }
56
58
67 inline const Aws::String& GetEffort() const { return m_effort; }
68 inline bool EffortHasBeenSet() const { return m_effortHasBeenSet; }
69 template <typename EffortT = Aws::String>
70 void SetEffort(EffortT&& value) {
71 m_effortHasBeenSet = true;
72 m_effort = std::forward<EffortT>(value);
73 }
74 template <typename EffortT = Aws::String>
76 SetEffort(std::forward<EffortT>(value));
77 return *this;
78 }
80 private:
81 OutputFormat m_textFormat;
82
83 Aws::String m_effort;
84 bool m_textFormatHasBeenSet = false;
85 bool m_effortHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace BedrockRuntime
90} // namespace Aws
AWS_BEDROCKRUNTIME_API OutputConfig(Aws::Utils::Json::JsonView jsonValue)
OutputConfig & WithEffort(EffortT &&value)
AWS_BEDROCKRUNTIME_API OutputConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const OutputFormat & GetTextFormat() const
const Aws::String & GetEffort() 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue