AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/bedrock-runtime/model/GuardrailAutomatedReasoningStatement.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 BedrockRuntime {
22namespace Model {
23
32 public:
33 AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningLogicWarning() = default;
36 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline GuardrailAutomatedReasoningLogicWarningType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 m_typeHasBeenSet = true;
47 m_type = value;
48 }
50 SetType(value);
51 return *this;
52 }
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) {
64 m_premisesHasBeenSet = true;
65 m_premises = std::forward<PremisesT>(value);
66 }
67 template <typename PremisesT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
69 SetPremises(std::forward<PremisesT>(value));
70 return *this;
71 }
72 template <typename PremisesT = GuardrailAutomatedReasoningStatement>
74 m_premisesHasBeenSet = true;
75 m_premises.emplace_back(std::forward<PremisesT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<GuardrailAutomatedReasoningStatement>& GetClaims() const { return m_claims; }
86 inline bool ClaimsHasBeenSet() const { return m_claimsHasBeenSet; }
87 template <typename ClaimsT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
88 void SetClaims(ClaimsT&& value) {
89 m_claimsHasBeenSet = true;
90 m_claims = std::forward<ClaimsT>(value);
91 }
92 template <typename ClaimsT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
94 SetClaims(std::forward<ClaimsT>(value));
95 return *this;
96 }
97 template <typename ClaimsT = GuardrailAutomatedReasoningStatement>
99 m_claimsHasBeenSet = true;
100 m_claims.emplace_back(std::forward<ClaimsT>(value));
101 return *this;
102 }
104 private:
106
108
110 bool m_typeHasBeenSet = false;
111 bool m_premisesHasBeenSet = false;
112 bool m_claimsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace BedrockRuntime
117} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue