AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
GuardrailAutomatedReasoningLogicWarning.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningLogicWarningType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningStatement.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 BedrockRuntime
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningLogicWarning() = default;
41 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline GuardrailAutomatedReasoningLogicWarningType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(GuardrailAutomatedReasoningLogicWarningType value) { m_typeHasBeenSet = true; m_type = value; }
54
56
60 inline const Aws::Vector<GuardrailAutomatedReasoningStatement>& GetPremises() const { return m_premises; }
61 inline bool PremisesHasBeenSet() const { return m_premisesHasBeenSet; }
62 template<typename PremisesT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
63 void SetPremises(PremisesT&& value) { m_premisesHasBeenSet = true; m_premises = std::forward<PremisesT>(value); }
64 template<typename PremisesT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
65 GuardrailAutomatedReasoningLogicWarning& WithPremises(PremisesT&& value) { SetPremises(std::forward<PremisesT>(value)); return *this;}
66 template<typename PremisesT = GuardrailAutomatedReasoningStatement>
67 GuardrailAutomatedReasoningLogicWarning& AddPremises(PremisesT&& value) { m_premisesHasBeenSet = true; m_premises.emplace_back(std::forward<PremisesT>(value)); return *this; }
69
71
75 inline const Aws::Vector<GuardrailAutomatedReasoningStatement>& GetClaims() const { return m_claims; }
76 inline bool ClaimsHasBeenSet() const { return m_claimsHasBeenSet; }
77 template<typename ClaimsT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
78 void SetClaims(ClaimsT&& value) { m_claimsHasBeenSet = true; m_claims = std::forward<ClaimsT>(value); }
79 template<typename ClaimsT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
80 GuardrailAutomatedReasoningLogicWarning& WithClaims(ClaimsT&& value) { SetClaims(std::forward<ClaimsT>(value)); return *this;}
81 template<typename ClaimsT = GuardrailAutomatedReasoningStatement>
82 GuardrailAutomatedReasoningLogicWarning& AddClaims(ClaimsT&& value) { m_claimsHasBeenSet = true; m_claims.emplace_back(std::forward<ClaimsT>(value)); return *this; }
84 private:
85
87 bool m_typeHasBeenSet = false;
88
90 bool m_premisesHasBeenSet = false;
91
93 bool m_claimsHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace BedrockRuntime
98} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningLogicWarning()=default
GuardrailAutomatedReasoningLogicWarning & WithType(GuardrailAutomatedReasoningLogicWarningType value)
const Aws::Vector< GuardrailAutomatedReasoningStatement > & GetPremises() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GuardrailAutomatedReasoningStatement > & GetClaims() const
GuardrailAutomatedReasoningLogicWarning & AddPremises(PremisesT &&value)
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningLogicWarning(Aws::Utils::Json::JsonView jsonValue)
GuardrailAutomatedReasoningLogicWarning & WithPremises(PremisesT &&value)
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningLogicWarning & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue