AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailTopicPolicyConfig.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/GuardrailTopicsTierConfig.h>
10#include <aws/bedrock/model/GuardrailTopicConfig.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
35 {
36 public:
37 AWS_BEDROCK_API GuardrailTopicPolicyConfig() = default;
40 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<GuardrailTopicConfig>& GetTopicsConfig() const { return m_topicsConfig; }
48 inline bool TopicsConfigHasBeenSet() const { return m_topicsConfigHasBeenSet; }
49 template<typename TopicsConfigT = Aws::Vector<GuardrailTopicConfig>>
50 void SetTopicsConfig(TopicsConfigT&& value) { m_topicsConfigHasBeenSet = true; m_topicsConfig = std::forward<TopicsConfigT>(value); }
51 template<typename TopicsConfigT = Aws::Vector<GuardrailTopicConfig>>
52 GuardrailTopicPolicyConfig& WithTopicsConfig(TopicsConfigT&& value) { SetTopicsConfig(std::forward<TopicsConfigT>(value)); return *this;}
53 template<typename TopicsConfigT = GuardrailTopicConfig>
54 GuardrailTopicPolicyConfig& AddTopicsConfig(TopicsConfigT&& value) { m_topicsConfigHasBeenSet = true; m_topicsConfig.emplace_back(std::forward<TopicsConfigT>(value)); return *this; }
56
58
61 inline const GuardrailTopicsTierConfig& GetTierConfig() const { return m_tierConfig; }
62 inline bool TierConfigHasBeenSet() const { return m_tierConfigHasBeenSet; }
63 template<typename TierConfigT = GuardrailTopicsTierConfig>
64 void SetTierConfig(TierConfigT&& value) { m_tierConfigHasBeenSet = true; m_tierConfig = std::forward<TierConfigT>(value); }
65 template<typename TierConfigT = GuardrailTopicsTierConfig>
66 GuardrailTopicPolicyConfig& WithTierConfig(TierConfigT&& value) { SetTierConfig(std::forward<TierConfigT>(value)); return *this;}
68 private:
69
71 bool m_topicsConfigHasBeenSet = false;
72
73 GuardrailTopicsTierConfig m_tierConfig;
74 bool m_tierConfigHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Bedrock
79} // 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