7#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
8#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
9#include <aws/bedrock-runtime/model/GuardrailContentBlock.h>
10#include <aws/bedrock-runtime/model/GuardrailContentSource.h>
11#include <aws/bedrock-runtime/model/GuardrailOutputScope.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
18namespace BedrockRuntime {
41 template <
typename GuardrailIdentifierT = Aws::String>
43 m_guardrailIdentifierHasBeenSet =
true;
44 m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value);
46 template <
typename GuardrailIdentifierT = Aws::String>
59 template <
typename GuardrailVersionT = Aws::String>
61 m_guardrailVersionHasBeenSet =
true;
62 m_guardrailVersion = std::forward<GuardrailVersionT>(value);
64 template <
typename GuardrailVersionT = Aws::String>
78 m_sourceHasBeenSet =
true;
93 template <
typename ContentT = Aws::Vector<GuardrailContentBlock>>
95 m_contentHasBeenSet =
true;
96 m_content = std::forward<ContentT>(value);
98 template <
typename ContentT = Aws::Vector<GuardrailContentBlock>>
103 template <
typename ContentT = GuardrailContentBlock>
105 m_contentHasBeenSet =
true;
106 m_content.emplace_back(std::forward<ContentT>(value));
124 m_outputScopeHasBeenSet =
true;
125 m_outputScope = value;
142 bool m_guardrailIdentifierHasBeenSet =
false;
143 bool m_guardrailVersionHasBeenSet =
false;
144 bool m_sourceHasBeenSet =
false;
145 bool m_contentHasBeenSet =
false;
146 bool m_outputScopeHasBeenSet =
false;
GuardrailOutputScope GetOutputScope() const
ApplyGuardrailRequest & AddContent(ContentT &&value)
bool GuardrailIdentifierHasBeenSet() const
ApplyGuardrailRequest & WithGuardrailVersion(GuardrailVersionT &&value)
GuardrailContentSource GetSource() const
void SetGuardrailVersion(GuardrailVersionT &&value)
ApplyGuardrailRequest & WithGuardrailIdentifier(GuardrailIdentifierT &&value)
bool OutputScopeHasBeenSet() const
ApplyGuardrailRequest & WithOutputScope(GuardrailOutputScope value)
void SetContent(ContentT &&value)
const Aws::String & GetGuardrailVersion() const
virtual const char * GetServiceRequestName() const override
ApplyGuardrailRequest & WithSource(GuardrailContentSource value)
AWS_BEDROCKRUNTIME_API ApplyGuardrailRequest()=default
void SetOutputScope(GuardrailOutputScope value)
AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override
bool ContentHasBeenSet() const
const Aws::Vector< GuardrailContentBlock > & GetContent() const
void SetGuardrailIdentifier(GuardrailIdentifierT &&value)
ApplyGuardrailRequest & WithContent(ContentT &&value)
bool SourceHasBeenSet() const
bool GuardrailVersionHasBeenSet() const
const Aws::String & GetGuardrailIdentifier() const
void SetSource(GuardrailContentSource value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector