AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
GuardrailChecksPromptAttackResult.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailChecksPromptAttackResultEntry.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKRUNTIME_API GuardrailChecksPromptAttackResult() = default;
33 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<GuardrailChecksPromptAttackResultEntry>& GetResults() const { return m_results; }
40 inline bool ResultsHasBeenSet() const { return m_resultsHasBeenSet; }
41 template <typename ResultsT = Aws::Vector<GuardrailChecksPromptAttackResultEntry>>
42 void SetResults(ResultsT&& value) {
43 m_resultsHasBeenSet = true;
44 m_results = std::forward<ResultsT>(value);
45 }
46 template <typename ResultsT = Aws::Vector<GuardrailChecksPromptAttackResultEntry>>
48 SetResults(std::forward<ResultsT>(value));
49 return *this;
50 }
51 template <typename ResultsT = GuardrailChecksPromptAttackResultEntry>
53 m_resultsHasBeenSet = true;
54 m_results.emplace_back(std::forward<ResultsT>(value));
55 return *this;
56 }
58 private:
60 bool m_resultsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace BedrockRuntime
65} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailChecksPromptAttackResult & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailChecksPromptAttackResult & AddResults(ResultsT &&value)
GuardrailChecksPromptAttackResult & WithResults(ResultsT &&value)
AWS_BEDROCKRUNTIME_API GuardrailChecksPromptAttackResult()=default
const Aws::Vector< GuardrailChecksPromptAttackResultEntry > & GetResults() const
AWS_BEDROCKRUNTIME_API GuardrailChecksPromptAttackResult(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue