AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GuardrailTopicPolicy.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailTopic.h>
9#include <aws/bedrock/model/GuardrailTopicsTier.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Bedrock {
22namespace Model {
23
34 public:
35 AWS_BEDROCK_API GuardrailTopicPolicy() = default;
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<GuardrailTopic>& GetTopics() const { return m_topics; }
45 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
46 template <typename TopicsT = Aws::Vector<GuardrailTopic>>
47 void SetTopics(TopicsT&& value) {
48 m_topicsHasBeenSet = true;
49 m_topics = std::forward<TopicsT>(value);
50 }
51 template <typename TopicsT = Aws::Vector<GuardrailTopic>>
53 SetTopics(std::forward<TopicsT>(value));
54 return *this;
55 }
56 template <typename TopicsT = GuardrailTopic>
58 m_topicsHasBeenSet = true;
59 m_topics.emplace_back(std::forward<TopicsT>(value));
60 return *this;
61 }
63
65
68 inline const GuardrailTopicsTier& GetTier() const { return m_tier; }
69 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
70 template <typename TierT = GuardrailTopicsTier>
71 void SetTier(TierT&& value) {
72 m_tierHasBeenSet = true;
73 m_tier = std::forward<TierT>(value);
74 }
75 template <typename TierT = GuardrailTopicsTier>
77 SetTier(std::forward<TierT>(value));
78 return *this;
79 }
81 private:
83
85 bool m_topicsHasBeenSet = false;
86 bool m_tierHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Bedrock
91} // namespace Aws
AWS_BEDROCK_API GuardrailTopicPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GuardrailTopic > & GetTopics() const
AWS_BEDROCK_API GuardrailTopicPolicy()=default
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const GuardrailTopicsTier & GetTier() const
GuardrailTopicPolicy & WithTopics(TopicsT &&value)
GuardrailTopicPolicy & AddTopics(TopicsT &&value)
GuardrailTopicPolicy & WithTier(TierT &&value)
AWS_BEDROCK_API GuardrailTopicPolicy & operator=(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