AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GuardrailStreamConfiguration.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailStreamProcessingMode.h>
9#include <aws/bedrock-runtime/model/GuardrailTrace.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockRuntime {
22namespace Model {
23
32 public:
33 AWS_BEDROCKRUNTIME_API GuardrailStreamConfiguration() = default;
36 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetGuardrailIdentifier() const { return m_guardrailIdentifier; }
43 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
44 template <typename GuardrailIdentifierT = Aws::String>
46 m_guardrailIdentifierHasBeenSet = true;
47 m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value);
48 }
49 template <typename GuardrailIdentifierT = Aws::String>
51 SetGuardrailIdentifier(std::forward<GuardrailIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetGuardrailVersion() const { return m_guardrailVersion; }
61 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
62 template <typename GuardrailVersionT = Aws::String>
64 m_guardrailVersionHasBeenSet = true;
65 m_guardrailVersion = std::forward<GuardrailVersionT>(value);
66 }
67 template <typename GuardrailVersionT = Aws::String>
69 SetGuardrailVersion(std::forward<GuardrailVersionT>(value));
70 return *this;
71 }
73
75
78 inline GuardrailTrace GetTrace() const { return m_trace; }
79 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
80 inline void SetTrace(GuardrailTrace value) {
81 m_traceHasBeenSet = true;
82 m_trace = value;
83 }
85 SetTrace(value);
86 return *this;
87 }
89
91
96 inline GuardrailStreamProcessingMode GetStreamProcessingMode() const { return m_streamProcessingMode; }
97 inline bool StreamProcessingModeHasBeenSet() const { return m_streamProcessingModeHasBeenSet; }
99 m_streamProcessingModeHasBeenSet = true;
100 m_streamProcessingMode = value;
101 }
104 return *this;
105 }
107 private:
108 Aws::String m_guardrailIdentifier;
109
110 Aws::String m_guardrailVersion;
111
113
115 bool m_guardrailIdentifierHasBeenSet = false;
116 bool m_guardrailVersionHasBeenSet = false;
117 bool m_traceHasBeenSet = false;
118 bool m_streamProcessingModeHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace BedrockRuntime
123} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailStreamConfiguration()=default
GuardrailStreamConfiguration & WithGuardrailVersion(GuardrailVersionT &&value)
AWS_BEDROCKRUNTIME_API GuardrailStreamConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetStreamProcessingMode(GuardrailStreamProcessingMode value)
GuardrailStreamConfiguration & WithTrace(GuardrailTrace value)
GuardrailStreamConfiguration & WithGuardrailIdentifier(GuardrailIdentifierT &&value)
GuardrailStreamConfiguration & WithStreamProcessingMode(GuardrailStreamProcessingMode value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailStreamConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue