AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AIGuardrailTopicPolicyConfig.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qconnect/model/GuardrailTopicConfig.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 QConnect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QCONNECT_API AIGuardrailTopicPolicyConfig() = default;
39 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<GuardrailTopicConfig>& GetTopicsConfig() const { return m_topicsConfig; }
47 inline bool TopicsConfigHasBeenSet() const { return m_topicsConfigHasBeenSet; }
48 template<typename TopicsConfigT = Aws::Vector<GuardrailTopicConfig>>
49 void SetTopicsConfig(TopicsConfigT&& value) { m_topicsConfigHasBeenSet = true; m_topicsConfig = std::forward<TopicsConfigT>(value); }
50 template<typename TopicsConfigT = Aws::Vector<GuardrailTopicConfig>>
51 AIGuardrailTopicPolicyConfig& WithTopicsConfig(TopicsConfigT&& value) { SetTopicsConfig(std::forward<TopicsConfigT>(value)); return *this;}
52 template<typename TopicsConfigT = GuardrailTopicConfig>
53 AIGuardrailTopicPolicyConfig& AddTopicsConfig(TopicsConfigT&& value) { m_topicsConfigHasBeenSet = true; m_topicsConfig.emplace_back(std::forward<TopicsConfigT>(value)); return *this; }
55 private:
56
58 bool m_topicsConfigHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace QConnect
63} // namespace Aws
AIGuardrailTopicPolicyConfig & AddTopicsConfig(TopicsConfigT &&value)
AIGuardrailTopicPolicyConfig & WithTopicsConfig(TopicsConfigT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QCONNECT_API AIGuardrailTopicPolicyConfig()=default
AWS_QCONNECT_API AIGuardrailTopicPolicyConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GuardrailTopicConfig > & GetTopicsConfig() const
AWS_QCONNECT_API AIGuardrailTopicPolicyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue