AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTopics(const Aws::Vector<GuardrailTopic>& value) { m_topicsHasBeenSet = true; m_topics = value; }
49 inline void SetTopics(Aws::Vector<GuardrailTopic>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
51 inline GuardrailTopicPolicyAssessment& WithTopics(Aws::Vector<GuardrailTopic>&& value) { SetTopics(std::move(value)); return *this;}
52 inline GuardrailTopicPolicyAssessment& AddTopics(const GuardrailTopic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
53 inline GuardrailTopicPolicyAssessment& AddTopics(GuardrailTopic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
55 private:
56
58 bool m_topicsHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace BedrockAgentRuntime
63} // namespace Aws
GuardrailTopicPolicyAssessment & AddTopics(GuardrailTopic &&value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTopicPolicyAssessment & WithTopics(Aws::Vector< GuardrailTopic > &&value)
GuardrailTopicPolicyAssessment & WithTopics(const Aws::Vector< GuardrailTopic > &value)
GuardrailTopicPolicyAssessment & AddTopics(const GuardrailTopic &value)
AWS_BEDROCKAGENTRUNTIME_API GuardrailTopicPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue