AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
50 inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
51 inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
52 inline BedrockModelSpecification& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;}
53 inline BedrockModelSpecification& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
54 inline BedrockModelSpecification& WithModelArn(const char* value) { SetModelArn(value); return *this;}
56
58
61 inline const BedrockGuardrailConfiguration& GetGuardrail() const{ return m_guardrail; }
62 inline bool GuardrailHasBeenSet() const { return m_guardrailHasBeenSet; }
63 inline void SetGuardrail(const BedrockGuardrailConfiguration& value) { m_guardrailHasBeenSet = true; m_guardrail = value; }
64 inline void SetGuardrail(BedrockGuardrailConfiguration&& value) { m_guardrailHasBeenSet = true; m_guardrail = std::move(value); }
66 inline BedrockModelSpecification& WithGuardrail(BedrockGuardrailConfiguration&& value) { SetGuardrail(std::move(value)); return *this;}
68
70
73 inline const BedrockTraceStatus& GetTraceStatus() const{ return m_traceStatus; }
74 inline bool TraceStatusHasBeenSet() const { return m_traceStatusHasBeenSet; }
75 inline void SetTraceStatus(const BedrockTraceStatus& value) { m_traceStatusHasBeenSet = true; m_traceStatus = value; }
76 inline void SetTraceStatus(BedrockTraceStatus&& value) { m_traceStatusHasBeenSet = true; m_traceStatus = std::move(value); }
77 inline BedrockModelSpecification& WithTraceStatus(const BedrockTraceStatus& value) { SetTraceStatus(value); return *this;}
78 inline BedrockModelSpecification& WithTraceStatus(BedrockTraceStatus&& value) { SetTraceStatus(std::move(value)); return *this;}
80
82
85 inline const Aws::String& GetCustomPrompt() const{ return m_customPrompt; }
86 inline bool CustomPromptHasBeenSet() const { return m_customPromptHasBeenSet; }
87 inline void SetCustomPrompt(const Aws::String& value) { m_customPromptHasBeenSet = true; m_customPrompt = value; }
88 inline void SetCustomPrompt(Aws::String&& value) { m_customPromptHasBeenSet = true; m_customPrompt = std::move(value); }
89 inline void SetCustomPrompt(const char* value) { m_customPromptHasBeenSet = true; m_customPrompt.assign(value); }
90 inline BedrockModelSpecification& WithCustomPrompt(const Aws::String& value) { SetCustomPrompt(value); return *this;}
91 inline BedrockModelSpecification& WithCustomPrompt(Aws::String&& value) { SetCustomPrompt(std::move(value)); return *this;}
92 inline BedrockModelSpecification& WithCustomPrompt(const char* value) { SetCustomPrompt(value); return *this;}
94 private:
95
96 Aws::String m_modelArn;
97 bool m_modelArnHasBeenSet = false;
98
100 bool m_guardrailHasBeenSet = false;
101
102 BedrockTraceStatus m_traceStatus;
103 bool m_traceStatusHasBeenSet = false;
104
105 Aws::String m_customPrompt;
106 bool m_customPromptHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace LexModelsV2
111} // namespace Aws
AWS_LEXMODELSV2_API BedrockModelSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
const BedrockGuardrailConfiguration & GetGuardrail() const
BedrockModelSpecification & WithCustomPrompt(const char *value)
BedrockModelSpecification & WithCustomPrompt(const Aws::String &value)
BedrockModelSpecification & WithModelArn(Aws::String &&value)
AWS_LEXMODELSV2_API BedrockModelSpecification(Aws::Utils::Json::JsonView jsonValue)
BedrockModelSpecification & WithCustomPrompt(Aws::String &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGuardrail(BedrockGuardrailConfiguration &&value)
BedrockModelSpecification & WithTraceStatus(BedrockTraceStatus &&value)
BedrockModelSpecification & WithGuardrail(BedrockGuardrailConfiguration &&value)
void SetGuardrail(const BedrockGuardrailConfiguration &value)
BedrockModelSpecification & WithModelArn(const char *value)
BedrockModelSpecification & WithGuardrail(const BedrockGuardrailConfiguration &value)
BedrockModelSpecification & WithTraceStatus(const BedrockTraceStatus &value)
BedrockModelSpecification & WithModelArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue