AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BedrockModelSpecification.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/model/BedrockGuardrailConfiguration.h>
10#include <aws/lexv2-models/model/BedrockTraceStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LEXMODELSV2_API BedrockModelSpecification() = default;
40 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetModelArn() const { return m_modelArn; }
48 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
49 template<typename ModelArnT = Aws::String>
50 void SetModelArn(ModelArnT&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::forward<ModelArnT>(value); }
51 template<typename ModelArnT = Aws::String>
52 BedrockModelSpecification& WithModelArn(ModelArnT&& value) { SetModelArn(std::forward<ModelArnT>(value)); return *this;}
54
56
59 inline const BedrockGuardrailConfiguration& GetGuardrail() const { return m_guardrail; }
60 inline bool GuardrailHasBeenSet() const { return m_guardrailHasBeenSet; }
61 template<typename GuardrailT = BedrockGuardrailConfiguration>
62 void SetGuardrail(GuardrailT&& value) { m_guardrailHasBeenSet = true; m_guardrail = std::forward<GuardrailT>(value); }
63 template<typename GuardrailT = BedrockGuardrailConfiguration>
64 BedrockModelSpecification& WithGuardrail(GuardrailT&& value) { SetGuardrail(std::forward<GuardrailT>(value)); return *this;}
66
68
71 inline BedrockTraceStatus GetTraceStatus() const { return m_traceStatus; }
72 inline bool TraceStatusHasBeenSet() const { return m_traceStatusHasBeenSet; }
73 inline void SetTraceStatus(BedrockTraceStatus value) { m_traceStatusHasBeenSet = true; m_traceStatus = value; }
76
78
81 inline const Aws::String& GetCustomPrompt() const { return m_customPrompt; }
82 inline bool CustomPromptHasBeenSet() const { return m_customPromptHasBeenSet; }
83 template<typename CustomPromptT = Aws::String>
84 void SetCustomPrompt(CustomPromptT&& value) { m_customPromptHasBeenSet = true; m_customPrompt = std::forward<CustomPromptT>(value); }
85 template<typename CustomPromptT = Aws::String>
86 BedrockModelSpecification& WithCustomPrompt(CustomPromptT&& value) { SetCustomPrompt(std::forward<CustomPromptT>(value)); return *this;}
88 private:
89
90 Aws::String m_modelArn;
91 bool m_modelArnHasBeenSet = false;
92
94 bool m_guardrailHasBeenSet = false;
95
97 bool m_traceStatusHasBeenSet = false;
98
99 Aws::String m_customPrompt;
100 bool m_customPromptHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace LexModelsV2
105} // namespace Aws
AWS_LEXMODELSV2_API BedrockModelSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
BedrockModelSpecification & WithGuardrail(GuardrailT &&value)
const BedrockGuardrailConfiguration & GetGuardrail() const
AWS_LEXMODELSV2_API BedrockModelSpecification(Aws::Utils::Json::JsonView jsonValue)
BedrockModelSpecification & WithTraceStatus(BedrockTraceStatus value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
BedrockModelSpecification & WithModelArn(ModelArnT &&value)
AWS_LEXMODELSV2_API BedrockModelSpecification()=default
BedrockModelSpecification & WithCustomPrompt(CustomPromptT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue