AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGuardrailIdentifier(const Aws::String& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = value; }
50 inline void SetGuardrailIdentifier(Aws::String&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::move(value); }
51 inline void SetGuardrailIdentifier(const char* value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier.assign(value); }
53 inline GuardrailConfiguration& WithGuardrailIdentifier(Aws::String&& value) { SetGuardrailIdentifier(std::move(value)); return *this;}
54 inline GuardrailConfiguration& WithGuardrailIdentifier(const char* value) { SetGuardrailIdentifier(value); return *this;}
56
58
61 inline const Aws::String& GetGuardrailVersion() const{ return m_guardrailVersion; }
62 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
63 inline void SetGuardrailVersion(const Aws::String& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = value; }
64 inline void SetGuardrailVersion(Aws::String&& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = std::move(value); }
65 inline void SetGuardrailVersion(const char* value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion.assign(value); }
66 inline GuardrailConfiguration& WithGuardrailVersion(const Aws::String& value) { SetGuardrailVersion(value); return *this;}
67 inline GuardrailConfiguration& WithGuardrailVersion(Aws::String&& value) { SetGuardrailVersion(std::move(value)); return *this;}
68 inline GuardrailConfiguration& WithGuardrailVersion(const char* value) { SetGuardrailVersion(value); return *this;}
70
72
75 inline const GuardrailTrace& GetTrace() const{ return m_trace; }
76 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
77 inline void SetTrace(const GuardrailTrace& value) { m_traceHasBeenSet = true; m_trace = value; }
78 inline void SetTrace(GuardrailTrace&& value) { m_traceHasBeenSet = true; m_trace = std::move(value); }
79 inline GuardrailConfiguration& WithTrace(const GuardrailTrace& value) { SetTrace(value); return *this;}
80 inline GuardrailConfiguration& WithTrace(GuardrailTrace&& value) { SetTrace(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_guardrailIdentifier;
85 bool m_guardrailIdentifierHasBeenSet = false;
86
87 Aws::String m_guardrailVersion;
88 bool m_guardrailVersionHasBeenSet = false;
89
90 GuardrailTrace m_trace;
91 bool m_traceHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace BedrockRuntime
96} // namespace Aws
GuardrailConfiguration & WithGuardrailVersion(const char *value)
GuardrailConfiguration & WithGuardrailVersion(const Aws::String &value)
GuardrailConfiguration & WithTrace(const GuardrailTrace &value)
AWS_BEDROCKRUNTIME_API GuardrailConfiguration(Aws::Utils::Json::JsonView jsonValue)
GuardrailConfiguration & WithGuardrailVersion(Aws::String &&value)
AWS_BEDROCKRUNTIME_API GuardrailConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailConfiguration & WithGuardrailIdentifier(Aws::String &&value)
GuardrailConfiguration & WithGuardrailIdentifier(const Aws::String &value)
GuardrailConfiguration & WithTrace(GuardrailTrace &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailConfiguration & WithGuardrailIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue