7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-runtime/model/GuardrailContentSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/bedrock-runtime/model/GuardrailOutputScope.h>
13#include <aws/bedrock-runtime/model/GuardrailContentBlock.h>
18namespace BedrockRuntime
45 template<
typename GuardrailIdentifierT = Aws::String>
46 void SetGuardrailIdentifier(GuardrailIdentifierT&& value) { m_guardrailIdentifierHasBeenSet =
true; m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value); }
47 template<
typename GuardrailIdentifierT = Aws::String>
57 template<
typename GuardrailVersionT = Aws::String>
58 void SetGuardrailVersion(GuardrailVersionT&& value) { m_guardrailVersionHasBeenSet =
true; m_guardrailVersion = std::forward<GuardrailVersionT>(value); }
59 template<
typename GuardrailVersionT = Aws::String>
79 template<
typename ContentT = Aws::Vector<GuardrailContentBlock>>
80 void SetContent(ContentT&& value) { m_contentHasBeenSet =
true; m_content = std::forward<ContentT>(value); }
81 template<
typename ContentT = Aws::Vector<GuardrailContentBlock>>
83 template<
typename ContentT = GuardrailContentBlock>
105 bool m_guardrailIdentifierHasBeenSet =
false;
108 bool m_guardrailVersionHasBeenSet =
false;
111 bool m_sourceHasBeenSet =
false;
114 bool m_contentHasBeenSet =
false;
117 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector