AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GuardrailTopicPolicyAssessment.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent-runtime/model/GuardrailTopic.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment() = default;
37 AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<GuardrailTopic>& GetTopics() const { return m_topics; }
47 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
48 template<typename TopicsT = Aws::Vector<GuardrailTopic>>
49 void SetTopics(TopicsT&& value) { m_topicsHasBeenSet = true; m_topics = std::forward<TopicsT>(value); }
50 template<typename TopicsT = Aws::Vector<GuardrailTopic>>
51 GuardrailTopicPolicyAssessment& WithTopics(TopicsT&& value) { SetTopics(std::forward<TopicsT>(value)); return *this;}
52 template<typename TopicsT = GuardrailTopic>
53 GuardrailTopicPolicyAssessment& AddTopics(TopicsT&& value) { m_topicsHasBeenSet = true; m_topics.emplace_back(std::forward<TopicsT>(value)); return *this; }
55 private:
56
58 bool m_topicsHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace BedrockAgentRuntime
63} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue