AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PromptVariant.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/Document.h>
9#include <aws/bedrock-agent/model/PromptInferenceConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/bedrock-agent/model/PromptTemplateConfiguration.h>
13#include <aws/bedrock-agent/model/PromptTemplateType.h>
14#include <aws/bedrock-agent/model/PromptMetadataEntry.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace BedrockAgent
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_BEDROCKAGENT_API PromptVariant();
41 AWS_BEDROCKAGENT_API PromptVariant(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENT_API PromptVariant& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
54 inline Aws::Utils::DocumentView GetAdditionalModelRequestFields() const{ return m_additionalModelRequestFields; }
55 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
56 inline void SetAdditionalModelRequestFields(const Aws::Utils::Document& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields = value; }
57 inline void SetAdditionalModelRequestFields(Aws::Utils::Document&& value) { m_additionalModelRequestFieldsHasBeenSet = true; m_additionalModelRequestFields = std::move(value); }
61
63
66 inline const PromptInferenceConfiguration& GetInferenceConfiguration() const{ return m_inferenceConfiguration; }
67 inline bool InferenceConfigurationHasBeenSet() const { return m_inferenceConfigurationHasBeenSet; }
68 inline void SetInferenceConfiguration(const PromptInferenceConfiguration& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = value; }
69 inline void SetInferenceConfiguration(PromptInferenceConfiguration&& value) { m_inferenceConfigurationHasBeenSet = true; m_inferenceConfiguration = std::move(value); }
73
75
81 inline const Aws::Vector<PromptMetadataEntry>& GetMetadata() const{ return m_metadata; }
82 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
83 inline void SetMetadata(const Aws::Vector<PromptMetadataEntry>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
84 inline void SetMetadata(Aws::Vector<PromptMetadataEntry>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
85 inline PromptVariant& WithMetadata(const Aws::Vector<PromptMetadataEntry>& value) { SetMetadata(value); return *this;}
86 inline PromptVariant& WithMetadata(Aws::Vector<PromptMetadataEntry>&& value) { SetMetadata(std::move(value)); return *this;}
87 inline PromptVariant& AddMetadata(const PromptMetadataEntry& value) { m_metadataHasBeenSet = true; m_metadata.push_back(value); return *this; }
88 inline PromptVariant& AddMetadata(PromptMetadataEntry&& value) { m_metadataHasBeenSet = true; m_metadata.push_back(std::move(value)); return *this; }
90
92
97 inline const Aws::String& GetModelId() const{ return m_modelId; }
98 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
99 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
100 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
101 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
102 inline PromptVariant& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
103 inline PromptVariant& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
104 inline PromptVariant& WithModelId(const char* value) { SetModelId(value); return *this;}
106
108
111 inline const Aws::String& GetName() const{ return m_name; }
112 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
113 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
114 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
115 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
116 inline PromptVariant& WithName(const Aws::String& value) { SetName(value); return *this;}
117 inline PromptVariant& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 inline PromptVariant& WithName(const char* value) { SetName(value); return *this;}
120
122
125 inline const PromptTemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
126 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
127 inline void SetTemplateConfiguration(const PromptTemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
128 inline void SetTemplateConfiguration(PromptTemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
132
134
137 inline const PromptTemplateType& GetTemplateType() const{ return m_templateType; }
138 inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; }
139 inline void SetTemplateType(const PromptTemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; }
140 inline void SetTemplateType(PromptTemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); }
141 inline PromptVariant& WithTemplateType(const PromptTemplateType& value) { SetTemplateType(value); return *this;}
142 inline PromptVariant& WithTemplateType(PromptTemplateType&& value) { SetTemplateType(std::move(value)); return *this;}
144 private:
145
146 Aws::Utils::Document m_additionalModelRequestFields;
147 bool m_additionalModelRequestFieldsHasBeenSet = false;
148
149 PromptInferenceConfiguration m_inferenceConfiguration;
150 bool m_inferenceConfigurationHasBeenSet = false;
151
153 bool m_metadataHasBeenSet = false;
154
155 Aws::String m_modelId;
156 bool m_modelIdHasBeenSet = false;
157
158 Aws::String m_name;
159 bool m_nameHasBeenSet = false;
160
161 PromptTemplateConfiguration m_templateConfiguration;
162 bool m_templateConfigurationHasBeenSet = false;
163
164 PromptTemplateType m_templateType;
165 bool m_templateTypeHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace BedrockAgent
170} // namespace Aws
PromptVariant & WithMetadata(const Aws::Vector< PromptMetadataEntry > &value)
AWS_BEDROCKAGENT_API PromptVariant & operator=(Aws::Utils::Json::JsonView jsonValue)
PromptVariant & WithName(const char *value)
const PromptInferenceConfiguration & GetInferenceConfiguration() const
void SetAdditionalModelRequestFields(Aws::Utils::Document &&value)
PromptVariant & WithInferenceConfiguration(PromptInferenceConfiguration &&value)
PromptVariant & WithModelId(const Aws::String &value)
const Aws::String & GetName() const
const PromptTemplateConfiguration & GetTemplateConfiguration() const
void SetTemplateConfiguration(const PromptTemplateConfiguration &value)
PromptVariant & WithModelId(const char *value)
const Aws::Vector< PromptMetadataEntry > & GetMetadata() const
void SetName(const Aws::String &value)
PromptVariant & WithModelId(Aws::String &&value)
void SetMetadata(const Aws::Vector< PromptMetadataEntry > &value)
PromptVariant & WithTemplateConfiguration(const PromptTemplateConfiguration &value)
PromptVariant & WithName(const Aws::String &value)
const PromptTemplateType & GetTemplateType() const
void SetInferenceConfiguration(const PromptInferenceConfiguration &value)
Aws::Utils::DocumentView GetAdditionalModelRequestFields() const
PromptVariant & WithAdditionalModelRequestFields(Aws::Utils::Document &&value)
PromptVariant & WithName(Aws::String &&value)
const Aws::String & GetModelId() const
void SetTemplateType(const PromptTemplateType &value)
PromptVariant & WithTemplateType(const PromptTemplateType &value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
PromptVariant & WithInferenceConfiguration(const PromptInferenceConfiguration &value)
void SetTemplateType(PromptTemplateType &&value)
void SetTemplateConfiguration(PromptTemplateConfiguration &&value)
void SetModelId(Aws::String &&value)
PromptVariant & AddMetadata(const PromptMetadataEntry &value)
PromptVariant & WithTemplateType(PromptTemplateType &&value)
void SetModelId(const Aws::String &value)
void SetInferenceConfiguration(PromptInferenceConfiguration &&value)
PromptVariant & WithMetadata(Aws::Vector< PromptMetadataEntry > &&value)
void SetMetadata(Aws::Vector< PromptMetadataEntry > &&value)
AWS_BEDROCKAGENT_API PromptVariant(Aws::Utils::Json::JsonView jsonValue)
PromptVariant & AddMetadata(PromptMetadataEntry &&value)
PromptVariant & WithAdditionalModelRequestFields(const Aws::Utils::Document &value)
PromptVariant & WithTemplateConfiguration(PromptTemplateConfiguration &&value)
AWS_BEDROCKAGENT_API PromptVariant()
void SetAdditionalModelRequestFields(const Aws::Utils::Document &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue