AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailStreamConfiguration.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 <aws/bedrock-runtime/model/GuardrailStreamProcessingMode.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 BedrockRuntime
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_BEDROCKRUNTIME_API GuardrailStreamConfiguration() = default;
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 GuardrailStreamConfiguration& 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 GuardrailStreamConfiguration& 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 GuardrailStreamConfiguration& WithTrace(GuardrailTrace value) { SetTrace(value); return *this;}
76
78
83 inline GuardrailStreamProcessingMode GetStreamProcessingMode() const { return m_streamProcessingMode; }
84 inline bool StreamProcessingModeHasBeenSet() const { return m_streamProcessingModeHasBeenSet; }
85 inline void SetStreamProcessingMode(GuardrailStreamProcessingMode value) { m_streamProcessingModeHasBeenSet = true; m_streamProcessingMode = value; }
88 private:
89
90 Aws::String m_guardrailIdentifier;
91 bool m_guardrailIdentifierHasBeenSet = false;
92
93 Aws::String m_guardrailVersion;
94 bool m_guardrailVersionHasBeenSet = false;
95
97 bool m_traceHasBeenSet = false;
98
100 bool m_streamProcessingModeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace BedrockRuntime
105} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue