AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
InvokeGuardrailChecksRequest.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
8#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
9#include <aws/bedrock-runtime/model/GuardrailChecksConfig.h>
10#include <aws/bedrock-runtime/model/GuardrailChecksMessage.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BedrockRuntime {
17namespace Model {
18
22 public:
23 AWS_BEDROCKRUNTIME_API InvokeGuardrailChecksRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "InvokeGuardrailChecks"; }
30
31 AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::Vector<GuardrailChecksMessage>& GetMessages() const { return m_messages; }
39 inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; }
40 template <typename MessagesT = Aws::Vector<GuardrailChecksMessage>>
41 void SetMessages(MessagesT&& value) {
42 m_messagesHasBeenSet = true;
43 m_messages = std::forward<MessagesT>(value);
44 }
45 template <typename MessagesT = Aws::Vector<GuardrailChecksMessage>>
47 SetMessages(std::forward<MessagesT>(value));
48 return *this;
49 }
50 template <typename MessagesT = GuardrailChecksMessage>
52 m_messagesHasBeenSet = true;
53 m_messages.emplace_back(std::forward<MessagesT>(value));
54 return *this;
55 }
57
59
63 inline const GuardrailChecksConfig& GetChecks() const { return m_checks; }
64 inline bool ChecksHasBeenSet() const { return m_checksHasBeenSet; }
65 template <typename ChecksT = GuardrailChecksConfig>
66 void SetChecks(ChecksT&& value) {
67 m_checksHasBeenSet = true;
68 m_checks = std::forward<ChecksT>(value);
69 }
70 template <typename ChecksT = GuardrailChecksConfig>
72 SetChecks(std::forward<ChecksT>(value));
73 return *this;
74 }
76 private:
78
79 GuardrailChecksConfig m_checks;
80 bool m_messagesHasBeenSet = false;
81 bool m_checksHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace BedrockRuntime
86} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::String SerializePayload() const override
InvokeGuardrailChecksRequest & WithMessages(MessagesT &&value)
const Aws::Vector< GuardrailChecksMessage > & GetMessages() const
InvokeGuardrailChecksRequest & WithChecks(ChecksT &&value)
InvokeGuardrailChecksRequest & AddMessages(MessagesT &&value)
AWS_BEDROCKRUNTIME_API InvokeGuardrailChecksRequest()=default
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