AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
OutputFormat.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/OutputFormatStructure.h>
9#include <aws/bedrock-runtime/model/OutputFormatType.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
30 public:
31 AWS_BEDROCKRUNTIME_API OutputFormat() = default;
34 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline OutputFormatType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(OutputFormatType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline const OutputFormatStructure& GetStructure() const { return m_structure; }
57 inline bool StructureHasBeenSet() const { return m_structureHasBeenSet; }
58 template <typename StructureT = OutputFormatStructure>
59 void SetStructure(StructureT&& value) {
60 m_structureHasBeenSet = true;
61 m_structure = std::forward<StructureT>(value);
62 }
63 template <typename StructureT = OutputFormatStructure>
65 SetStructure(std::forward<StructureT>(value));
66 return *this;
67 }
69 private:
71
72 OutputFormatStructure m_structure;
73 bool m_typeHasBeenSet = false;
74 bool m_structureHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockRuntime
79} // namespace Aws
AWS_BEDROCKRUNTIME_API OutputFormat()=default
OutputFormat & WithType(OutputFormatType value)
AWS_BEDROCKRUNTIME_API OutputFormat(Aws::Utils::Json::JsonView jsonValue)
const OutputFormatStructure & GetStructure() const
void SetStructure(StructureT &&value)
OutputFormat & WithStructure(StructureT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API OutputFormat & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(OutputFormatType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue