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-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-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 BedrockRuntime
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCKRUNTIME_API GuardrailTopicPolicyAssessment();
38 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<GuardrailTopic>& GetTopics() const{ return m_topics; }
46 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
47 inline void SetTopics(const Aws::Vector<GuardrailTopic>& value) { m_topicsHasBeenSet = true; m_topics = value; }
48 inline void SetTopics(Aws::Vector<GuardrailTopic>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
50 inline GuardrailTopicPolicyAssessment& WithTopics(Aws::Vector<GuardrailTopic>&& value) { SetTopics(std::move(value)); return *this;}
51 inline GuardrailTopicPolicyAssessment& AddTopics(const GuardrailTopic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
52 inline GuardrailTopicPolicyAssessment& AddTopics(GuardrailTopic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
54 private:
55
57 bool m_topicsHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace BedrockRuntime
62} // namespace Aws
GuardrailTopicPolicyAssessment & AddTopics(const GuardrailTopic &value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTopicPolicyAssessment & WithTopics(const Aws::Vector< GuardrailTopic > &value)
AWS_BEDROCKRUNTIME_API GuardrailTopicPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailTopicPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopicPolicyAssessment & WithTopics(Aws::Vector< GuardrailTopic > &&value)
GuardrailTopicPolicyAssessment & AddTopics(GuardrailTopic &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue