AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GuardrailTopicPolicyConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailTopicConfig.h>
9#include <aws/bedrock/model/GuardrailTopicsTierConfig.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
31 public:
32 AWS_BEDROCK_API GuardrailTopicPolicyConfig() = default;
35 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<GuardrailTopicConfig>& GetTopicsConfig() const { return m_topicsConfig; }
42 inline bool TopicsConfigHasBeenSet() const { return m_topicsConfigHasBeenSet; }
43 template <typename TopicsConfigT = Aws::Vector<GuardrailTopicConfig>>
44 void SetTopicsConfig(TopicsConfigT&& value) {
45 m_topicsConfigHasBeenSet = true;
46 m_topicsConfig = std::forward<TopicsConfigT>(value);
47 }
48 template <typename TopicsConfigT = Aws::Vector<GuardrailTopicConfig>>
50 SetTopicsConfig(std::forward<TopicsConfigT>(value));
51 return *this;
52 }
53 template <typename TopicsConfigT = GuardrailTopicConfig>
55 m_topicsConfigHasBeenSet = true;
56 m_topicsConfig.emplace_back(std::forward<TopicsConfigT>(value));
57 return *this;
58 }
60
62
65 inline const GuardrailTopicsTierConfig& GetTierConfig() const { return m_tierConfig; }
66 inline bool TierConfigHasBeenSet() const { return m_tierConfigHasBeenSet; }
67 template <typename TierConfigT = GuardrailTopicsTierConfig>
68 void SetTierConfig(TierConfigT&& value) {
69 m_tierConfigHasBeenSet = true;
70 m_tierConfig = std::forward<TierConfigT>(value);
71 }
72 template <typename TierConfigT = GuardrailTopicsTierConfig>
74 SetTierConfig(std::forward<TierConfigT>(value));
75 return *this;
76 }
78 private:
80 bool m_topicsConfigHasBeenSet = false;
81
82 GuardrailTopicsTierConfig m_tierConfig;
83 bool m_tierConfigHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Bedrock
88} // namespace Aws
GuardrailTopicPolicyConfig & WithTopicsConfig(TopicsConfigT &&value)
AWS_BEDROCK_API GuardrailTopicPolicyConfig(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopicPolicyConfig & AddTopicsConfig(TopicsConfigT &&value)
AWS_BEDROCK_API GuardrailTopicPolicyConfig()=default
AWS_BEDROCK_API GuardrailTopicPolicyConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GuardrailTopicConfig > & GetTopicsConfig() const
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
const GuardrailTopicsTierConfig & GetTierConfig() const
GuardrailTopicPolicyConfig & WithTierConfig(TierConfigT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue