AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TerminologyData.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/translate/model/TerminologyDataFormat.h>
10#include <aws/translate/model/Directionality.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 Translate
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_TRANSLATE_API TerminologyData() = default;
40 AWS_TRANSLATE_API TerminologyData(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline const Aws::Utils::CryptoBuffer& GetFile() const { return m_file; }
52 inline bool FileHasBeenSet() const { return m_fileHasBeenSet; }
53 template<typename FileT = Aws::Utils::CryptoBuffer>
54 void SetFile(FileT&& value) { m_fileHasBeenSet = true; m_file = std::forward<FileT>(value); }
55 template<typename FileT = Aws::Utils::CryptoBuffer>
56 TerminologyData& WithFile(FileT&& value) { SetFile(std::forward<FileT>(value)); return *this;}
58
60
63 inline TerminologyDataFormat GetFormat() const { return m_format; }
64 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
65 inline void SetFormat(TerminologyDataFormat value) { m_formatHasBeenSet = true; m_format = value; }
66 inline TerminologyData& WithFormat(TerminologyDataFormat value) { SetFormat(value); return *this;}
68
70
84 inline Directionality GetDirectionality() const { return m_directionality; }
85 inline bool DirectionalityHasBeenSet() const { return m_directionalityHasBeenSet; }
86 inline void SetDirectionality(Directionality value) { m_directionalityHasBeenSet = true; m_directionality = value; }
89 private:
90
92 bool m_fileHasBeenSet = false;
93
95 bool m_formatHasBeenSet = false;
96
98 bool m_directionalityHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Translate
103} // namespace Aws
AWS_TRANSLATE_API TerminologyData & operator=(Aws::Utils::Json::JsonView jsonValue)
TerminologyData & WithFile(FileT &&value)
const Aws::Utils::CryptoBuffer & GetFile() const
TerminologyData & WithFormat(TerminologyDataFormat value)
AWS_TRANSLATE_API TerminologyData()=default
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDirectionality(Directionality value)
void SetFormat(TerminologyDataFormat value)
TerminologyData & WithDirectionality(Directionality value)
AWS_TRANSLATE_API TerminologyData(Aws::Utils::Json::JsonView jsonValue)
TerminologyDataFormat GetFormat() const
Aws::Utils::Json::JsonValue JsonValue