AWS SDK for C++

AWS SDK for C++ Version 1.11.610

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/GuardrailTopicsTier.h>
10#include <aws/bedrock/model/GuardrailTopic.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Bedrock
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_BEDROCK_API GuardrailTopicPolicy() = default;
43 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Vector<GuardrailTopic>& GetTopics() const { return m_topics; }
51 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
52 template<typename TopicsT = Aws::Vector<GuardrailTopic>>
53 void SetTopics(TopicsT&& value) { m_topicsHasBeenSet = true; m_topics = std::forward<TopicsT>(value); }
54 template<typename TopicsT = Aws::Vector<GuardrailTopic>>
55 GuardrailTopicPolicy& WithTopics(TopicsT&& value) { SetTopics(std::forward<TopicsT>(value)); return *this;}
56 template<typename TopicsT = GuardrailTopic>
57 GuardrailTopicPolicy& AddTopics(TopicsT&& value) { m_topicsHasBeenSet = true; m_topics.emplace_back(std::forward<TopicsT>(value)); return *this; }
59
61
64 inline const GuardrailTopicsTier& GetTier() const { return m_tier; }
65 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
66 template<typename TierT = GuardrailTopicsTier>
67 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
68 template<typename TierT = GuardrailTopicsTier>
69 GuardrailTopicPolicy& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
71 private:
72
74 bool m_topicsHasBeenSet = false;
75
77 bool m_tierHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Bedrock
82} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue