AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GuardrailTopicPolicyAssessment.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/GuardrailTopic.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 BedrockAgentRuntime {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<GuardrailTopic>& GetTopics() const { return m_topics; }
41 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
42 template <typename TopicsT = Aws::Vector<GuardrailTopic>>
43 void SetTopics(TopicsT&& value) {
44 m_topicsHasBeenSet = true;
45 m_topics = std::forward<TopicsT>(value);
46 }
47 template <typename TopicsT = Aws::Vector<GuardrailTopic>>
49 SetTopics(std::forward<TopicsT>(value));
50 return *this;
51 }
52 template <typename TopicsT = GuardrailTopic>
54 m_topicsHasBeenSet = true;
55 m_topics.emplace_back(std::forward<TopicsT>(value));
56 return *this;
57 }
59 private:
61 bool m_topicsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace BedrockAgentRuntime
66} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment()=default
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue