AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
JsonSchemaDefinition.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
28 public:
29 AWS_BEDROCKRUNTIME_API JsonSchemaDefinition() = default;
32 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::String& GetSchema() const { return m_schema; }
41 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
42 template <typename SchemaT = Aws::String>
43 void SetSchema(SchemaT&& value) {
44 m_schemaHasBeenSet = true;
45 m_schema = std::forward<SchemaT>(value);
46 }
47 template <typename SchemaT = Aws::String>
49 SetSchema(std::forward<SchemaT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_schema;
91
92 Aws::String m_name;
93
94 Aws::String m_description;
95 bool m_schemaHasBeenSet = false;
96 bool m_nameHasBeenSet = false;
97 bool m_descriptionHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace BedrockRuntime
102} // namespace Aws
JsonSchemaDefinition & WithName(NameT &&value)
AWS_BEDROCKRUNTIME_API JsonSchemaDefinition()=default
JsonSchemaDefinition & WithSchema(SchemaT &&value)
JsonSchemaDefinition & WithDescription(DescriptionT &&value)
AWS_BEDROCKRUNTIME_API JsonSchemaDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API JsonSchemaDefinition(Aws::Utils::Json::JsonView jsonValue)
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