AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GuardrailTopicPolicy.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock/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 Bedrock
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_BEDROCK_API GuardrailTopicPolicy();
42 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<GuardrailTopic>& GetTopics() const{ return m_topics; }
50 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
51 inline void SetTopics(const Aws::Vector<GuardrailTopic>& value) { m_topicsHasBeenSet = true; m_topics = value; }
52 inline void SetTopics(Aws::Vector<GuardrailTopic>&& value) { m_topicsHasBeenSet = true; m_topics = std::move(value); }
53 inline GuardrailTopicPolicy& WithTopics(const Aws::Vector<GuardrailTopic>& value) { SetTopics(value); return *this;}
54 inline GuardrailTopicPolicy& WithTopics(Aws::Vector<GuardrailTopic>&& value) { SetTopics(std::move(value)); return *this;}
55 inline GuardrailTopicPolicy& AddTopics(const GuardrailTopic& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
56 inline GuardrailTopicPolicy& AddTopics(GuardrailTopic&& value) { m_topicsHasBeenSet = true; m_topics.push_back(std::move(value)); return *this; }
58 private:
59
61 bool m_topicsHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace Bedrock
66} // namespace Aws
AWS_BEDROCK_API GuardrailTopicPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GuardrailTopic > & GetTopics() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailTopicPolicy & WithTopics(Aws::Vector< GuardrailTopic > &&value)
GuardrailTopicPolicy & AddTopics(GuardrailTopic &&value)
GuardrailTopicPolicy & WithTopics(const Aws::Vector< GuardrailTopic > &value)
GuardrailTopicPolicy & AddTopics(const GuardrailTopic &value)
void SetTopics(Aws::Vector< GuardrailTopic > &&value)
AWS_BEDROCK_API GuardrailTopicPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTopics(const Aws::Vector< GuardrailTopic > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue