AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
GuardrailTopicPolicyAssessment.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailTopic.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockRuntime {
21namespace Model {
22
29 public:
30 AWS_BEDROCKRUNTIME_API GuardrailTopicPolicyAssessment() = default;
33 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<GuardrailTopic>& GetTopics() const { return m_topics; }
40 inline bool TopicsHasBeenSet() const { return m_topicsHasBeenSet; }
41 template <typename TopicsT = Aws::Vector<GuardrailTopic>>
42 void SetTopics(TopicsT&& value) {
43 m_topicsHasBeenSet = true;
44 m_topics = std::forward<TopicsT>(value);
45 }
46 template <typename TopicsT = Aws::Vector<GuardrailTopic>>
48 SetTopics(std::forward<TopicsT>(value));
49 return *this;
50 }
51 template <typename TopicsT = GuardrailTopic>
53 m_topicsHasBeenSet = true;
54 m_topics.emplace_back(std::forward<TopicsT>(value));
55 return *this;
56 }
58 private:
60 bool m_topicsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace BedrockRuntime
65} // namespace Aws
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKRUNTIME_API GuardrailTopicPolicyAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailTopicPolicyAssessment(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopicPolicyAssessment & WithTopics(TopicsT &&value)
AWS_BEDROCKRUNTIME_API GuardrailTopicPolicyAssessment()=default
GuardrailTopicPolicyAssessment & AddTopics(TopicsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue