AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
GuardrailAutomatedReasoningTranslationOption.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-runtime/model/GuardrailAutomatedReasoningTranslation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockRuntime
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningTranslationOption() = default;
39 AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::Vector<GuardrailAutomatedReasoningTranslation>& GetTranslations() const { return m_translations; }
48 inline bool TranslationsHasBeenSet() const { return m_translationsHasBeenSet; }
49 template<typename TranslationsT = Aws::Vector<GuardrailAutomatedReasoningTranslation>>
50 void SetTranslations(TranslationsT&& value) { m_translationsHasBeenSet = true; m_translations = std::forward<TranslationsT>(value); }
51 template<typename TranslationsT = Aws::Vector<GuardrailAutomatedReasoningTranslation>>
52 GuardrailAutomatedReasoningTranslationOption& WithTranslations(TranslationsT&& value) { SetTranslations(std::forward<TranslationsT>(value)); return *this;}
53 template<typename TranslationsT = GuardrailAutomatedReasoningTranslation>
54 GuardrailAutomatedReasoningTranslationOption& AddTranslations(TranslationsT&& value) { m_translationsHasBeenSet = true; m_translations.emplace_back(std::forward<TranslationsT>(value)); return *this; }
56 private:
57
59 bool m_translationsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace BedrockRuntime
64} // namespace Aws
const Aws::Vector< GuardrailAutomatedReasoningTranslation > & GetTranslations() const
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningTranslationOption(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKRUNTIME_API GuardrailAutomatedReasoningTranslationOption & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailAutomatedReasoningTranslationOption & WithTranslations(TranslationsT &&value)
AWS_BEDROCKRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailAutomatedReasoningTranslationOption & AddTranslations(TranslationsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue