AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailConfiguration.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-runtime/model/GuardrailTrace.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_BEDROCKRUNTIME_API GuardrailConfiguration() = default;
38 AWS_BEDROCKRUNTIME_API GuardrailConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetGuardrailIdentifier() const { return m_guardrailIdentifier; }
48 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
49 template<typename GuardrailIdentifierT = Aws::String>
50 void SetGuardrailIdentifier(GuardrailIdentifierT&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value); }
51 template<typename GuardrailIdentifierT = Aws::String>
52 GuardrailConfiguration& WithGuardrailIdentifier(GuardrailIdentifierT&& value) { SetGuardrailIdentifier(std::forward<GuardrailIdentifierT>(value)); return *this;}
54
56
59 inline const Aws::String& GetGuardrailVersion() const { return m_guardrailVersion; }
60 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
61 template<typename GuardrailVersionT = Aws::String>
62 void SetGuardrailVersion(GuardrailVersionT&& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = std::forward<GuardrailVersionT>(value); }
63 template<typename GuardrailVersionT = Aws::String>
64 GuardrailConfiguration& WithGuardrailVersion(GuardrailVersionT&& value) { SetGuardrailVersion(std::forward<GuardrailVersionT>(value)); return *this;}
66
68
71 inline GuardrailTrace GetTrace() const { return m_trace; }
72 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
73 inline void SetTrace(GuardrailTrace value) { m_traceHasBeenSet = true; m_trace = value; }
74 inline GuardrailConfiguration& WithTrace(GuardrailTrace value) { SetTrace(value); return *this;}
76 private:
77
78 Aws::String m_guardrailIdentifier;
79 bool m_guardrailIdentifierHasBeenSet = false;
80
81 Aws::String m_guardrailVersion;
82 bool m_guardrailVersionHasBeenSet = false;
83
85 bool m_traceHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace BedrockRuntime
90} // namespace Aws
GuardrailConfiguration & WithGuardrailIdentifier(GuardrailIdentifierT &&value)
GuardrailConfiguration & WithTrace(GuardrailTrace value)
AWS_BEDROCKRUNTIME_API GuardrailConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailConfiguration()=default
AWS_BEDROCKRUNTIME_API GuardrailConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailConfiguration & WithGuardrailVersion(GuardrailVersionT &&value)
void SetGuardrailIdentifier(GuardrailIdentifierT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue