AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GuardrailAutomatedReasoningTranslation.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningInputTextReference.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 GuardrailAutomatedReasoningTranslation() = default;
36 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<GuardrailAutomatedReasoningStatement>& GetPremises() const { return m_premises; }
44 inline bool PremisesHasBeenSet() const { return m_premisesHasBeenSet; }
45 template <typename PremisesT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
46 void SetPremises(PremisesT&& value) {
47 m_premisesHasBeenSet = true;
48 m_premises = std::forward<PremisesT>(value);
49 }
50 template <typename PremisesT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
52 SetPremises(std::forward<PremisesT>(value));
53 return *this;
54 }
55 template <typename PremisesT = GuardrailAutomatedReasoningStatement>
57 m_premisesHasBeenSet = true;
58 m_premises.emplace_back(std::forward<PremisesT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<GuardrailAutomatedReasoningStatement>& GetClaims() const { return m_claims; }
69 inline bool ClaimsHasBeenSet() const { return m_claimsHasBeenSet; }
70 template <typename ClaimsT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
71 void SetClaims(ClaimsT&& value) {
72 m_claimsHasBeenSet = true;
73 m_claims = std::forward<ClaimsT>(value);
74 }
75 template <typename ClaimsT = Aws::Vector<GuardrailAutomatedReasoningStatement>>
77 SetClaims(std::forward<ClaimsT>(value));
78 return *this;
79 }
80 template <typename ClaimsT = GuardrailAutomatedReasoningStatement>
82 m_claimsHasBeenSet = true;
83 m_claims.emplace_back(std::forward<ClaimsT>(value));
84 return *this;
85 }
87
89
94 return m_untranslatedPremises;
95 }
96 inline bool UntranslatedPremisesHasBeenSet() const { return m_untranslatedPremisesHasBeenSet; }
97 template <typename UntranslatedPremisesT = Aws::Vector<GuardrailAutomatedReasoningInputTextReference>>
99 m_untranslatedPremisesHasBeenSet = true;
100 m_untranslatedPremises = std::forward<UntranslatedPremisesT>(value);
101 }
102 template <typename UntranslatedPremisesT = Aws::Vector<GuardrailAutomatedReasoningInputTextReference>>
104 SetUntranslatedPremises(std::forward<UntranslatedPremisesT>(value));
105 return *this;
106 }
107 template <typename UntranslatedPremisesT = GuardrailAutomatedReasoningInputTextReference>
109 m_untranslatedPremisesHasBeenSet = true;
110 m_untranslatedPremises.emplace_back(std::forward<UntranslatedPremisesT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Vector<GuardrailAutomatedReasoningInputTextReference>& GetUntranslatedClaims() const { return m_untranslatedClaims; }
121 inline bool UntranslatedClaimsHasBeenSet() const { return m_untranslatedClaimsHasBeenSet; }
122 template <typename UntranslatedClaimsT = Aws::Vector<GuardrailAutomatedReasoningInputTextReference>>
124 m_untranslatedClaimsHasBeenSet = true;
125 m_untranslatedClaims = std::forward<UntranslatedClaimsT>(value);
126 }
127 template <typename UntranslatedClaimsT = Aws::Vector<GuardrailAutomatedReasoningInputTextReference>>
129 SetUntranslatedClaims(std::forward<UntranslatedClaimsT>(value));
130 return *this;
131 }
132 template <typename UntranslatedClaimsT = GuardrailAutomatedReasoningInputTextReference>
134 m_untranslatedClaimsHasBeenSet = true;
135 m_untranslatedClaims.emplace_back(std::forward<UntranslatedClaimsT>(value));
136 return *this;
137 }
139
141
145 inline double GetConfidence() const { return m_confidence; }
146 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
147 inline void SetConfidence(double value) {
148 m_confidenceHasBeenSet = true;
149 m_confidence = value;
150 }
152 SetConfidence(value);
153 return *this;
154 }
156 private:
158
160
162
164
165 double m_confidence{0.0};
166 bool m_premisesHasBeenSet = false;
167 bool m_claimsHasBeenSet = false;
168 bool m_untranslatedPremisesHasBeenSet = false;
169 bool m_untranslatedClaimsHasBeenSet = false;
170 bool m_confidenceHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace BedrockRuntime
175} // namespace Aws
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningTranslation(Aws::Utils::Json::JsonView jsonValue)
GuardrailAutomatedReasoningTranslation & AddUntranslatedClaims(UntranslatedClaimsT &&value)
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningTranslation & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailAutomatedReasoningTranslation & WithPremises(PremisesT &&value)
const Aws::Vector< GuardrailAutomatedReasoningInputTextReference > & GetUntranslatedClaims() const
const Aws::Vector< GuardrailAutomatedReasoningStatement > & GetPremises() const
const Aws::Vector< GuardrailAutomatedReasoningStatement > & GetClaims() const
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailAutomatedReasoningTranslation & AddPremises(PremisesT &&value)
GuardrailAutomatedReasoningTranslation & AddUntranslatedPremises(UntranslatedPremisesT &&value)
GuardrailAutomatedReasoningTranslation & WithUntranslatedClaims(UntranslatedClaimsT &&value)
GuardrailAutomatedReasoningTranslation & WithUntranslatedPremises(UntranslatedPremisesT &&value)
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningTranslation()=default
const Aws::Vector< GuardrailAutomatedReasoningInputTextReference > & GetUntranslatedPremises() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue