AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
GuardrailConfiguration.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailTrace.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
31 public:
32 AWS_BEDROCKRUNTIME_API GuardrailConfiguration() = default;
33 AWS_BEDROCKRUNTIME_API GuardrailConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetGuardrailIdentifier() const { return m_guardrailIdentifier; }
42 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
43 template <typename GuardrailIdentifierT = Aws::String>
44 void SetGuardrailIdentifier(GuardrailIdentifierT&& value) {
45 m_guardrailIdentifierHasBeenSet = true;
46 m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value);
47 }
48 template <typename GuardrailIdentifierT = Aws::String>
49 GuardrailConfiguration& WithGuardrailIdentifier(GuardrailIdentifierT&& value) {
50 SetGuardrailIdentifier(std::forward<GuardrailIdentifierT>(value));
51 return *this;
52 }
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) {
63 m_guardrailVersionHasBeenSet = true;
64 m_guardrailVersion = std::forward<GuardrailVersionT>(value);
65 }
66 template <typename GuardrailVersionT = Aws::String>
67 GuardrailConfiguration& WithGuardrailVersion(GuardrailVersionT&& value) {
68 SetGuardrailVersion(std::forward<GuardrailVersionT>(value));
69 return *this;
70 }
72
74
77 inline GuardrailTrace GetTrace() const { return m_trace; }
78 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
79 inline void SetTrace(GuardrailTrace value) {
80 m_traceHasBeenSet = true;
81 m_trace = value;
82 }
84 SetTrace(value);
85 return *this;
86 }
88 private:
89 Aws::String m_guardrailIdentifier;
90 bool m_guardrailIdentifierHasBeenSet = false;
91
92 Aws::String m_guardrailVersion;
93 bool m_guardrailVersionHasBeenSet = false;
94
96 bool m_traceHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace BedrockRuntime
101} // 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