AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DatasetInputDataConfig.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/DatasetAugmentedManifestsListItem.h>
9#include <aws/comprehend/model/DatasetDataFormat.h>
10#include <aws/comprehend/model/DatasetDocumentClassifierInputDataConfig.h>
11#include <aws/comprehend/model/DatasetEntityRecognizerInputDataConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Comprehend {
24namespace Model {
25
33 public:
34 AWS_COMPREHEND_API DatasetInputDataConfig() = default;
37 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::Vector<DatasetAugmentedManifestsListItem>& GetAugmentedManifests() const { return m_augmentedManifests; }
46 inline bool AugmentedManifestsHasBeenSet() const { return m_augmentedManifestsHasBeenSet; }
47 template <typename AugmentedManifestsT = Aws::Vector<DatasetAugmentedManifestsListItem>>
48 void SetAugmentedManifests(AugmentedManifestsT&& value) {
49 m_augmentedManifestsHasBeenSet = true;
50 m_augmentedManifests = std::forward<AugmentedManifestsT>(value);
51 }
52 template <typename AugmentedManifestsT = Aws::Vector<DatasetAugmentedManifestsListItem>>
53 DatasetInputDataConfig& WithAugmentedManifests(AugmentedManifestsT&& value) {
54 SetAugmentedManifests(std::forward<AugmentedManifestsT>(value));
55 return *this;
56 }
57 template <typename AugmentedManifestsT = DatasetAugmentedManifestsListItem>
58 DatasetInputDataConfig& AddAugmentedManifests(AugmentedManifestsT&& value) {
59 m_augmentedManifestsHasBeenSet = true;
60 m_augmentedManifests.emplace_back(std::forward<AugmentedManifestsT>(value));
61 return *this;
62 }
64
66
71 inline DatasetDataFormat GetDataFormat() const { return m_dataFormat; }
72 inline bool DataFormatHasBeenSet() const { return m_dataFormatHasBeenSet; }
73 inline void SetDataFormat(DatasetDataFormat value) {
74 m_dataFormatHasBeenSet = true;
75 m_dataFormat = value;
76 }
78 SetDataFormat(value);
79 return *this;
80 }
82
84
91 return m_documentClassifierInputDataConfig;
92 }
93 inline bool DocumentClassifierInputDataConfigHasBeenSet() const { return m_documentClassifierInputDataConfigHasBeenSet; }
94 template <typename DocumentClassifierInputDataConfigT = DatasetDocumentClassifierInputDataConfig>
95 void SetDocumentClassifierInputDataConfig(DocumentClassifierInputDataConfigT&& value) {
96 m_documentClassifierInputDataConfigHasBeenSet = true;
97 m_documentClassifierInputDataConfig = std::forward<DocumentClassifierInputDataConfigT>(value);
98 }
99 template <typename DocumentClassifierInputDataConfigT = DatasetDocumentClassifierInputDataConfig>
100 DatasetInputDataConfig& WithDocumentClassifierInputDataConfig(DocumentClassifierInputDataConfigT&& value) {
101 SetDocumentClassifierInputDataConfig(std::forward<DocumentClassifierInputDataConfigT>(value));
102 return *this;
103 }
105
107
111 return m_entityRecognizerInputDataConfig;
112 }
113 inline bool EntityRecognizerInputDataConfigHasBeenSet() const { return m_entityRecognizerInputDataConfigHasBeenSet; }
114 template <typename EntityRecognizerInputDataConfigT = DatasetEntityRecognizerInputDataConfig>
115 void SetEntityRecognizerInputDataConfig(EntityRecognizerInputDataConfigT&& value) {
116 m_entityRecognizerInputDataConfigHasBeenSet = true;
117 m_entityRecognizerInputDataConfig = std::forward<EntityRecognizerInputDataConfigT>(value);
118 }
119 template <typename EntityRecognizerInputDataConfigT = DatasetEntityRecognizerInputDataConfig>
120 DatasetInputDataConfig& WithEntityRecognizerInputDataConfig(EntityRecognizerInputDataConfigT&& value) {
121 SetEntityRecognizerInputDataConfig(std::forward<EntityRecognizerInputDataConfigT>(value));
122 return *this;
123 }
125 private:
127
129
130 DatasetDocumentClassifierInputDataConfig m_documentClassifierInputDataConfig;
131
132 DatasetEntityRecognizerInputDataConfig m_entityRecognizerInputDataConfig;
133 bool m_augmentedManifestsHasBeenSet = false;
134 bool m_dataFormatHasBeenSet = false;
135 bool m_documentClassifierInputDataConfigHasBeenSet = false;
136 bool m_entityRecognizerInputDataConfigHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace Comprehend
141} // namespace Aws
DatasetInputDataConfig & WithAugmentedManifests(AugmentedManifestsT &&value)
DatasetInputDataConfig & WithDataFormat(DatasetDataFormat value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
DatasetInputDataConfig & WithDocumentClassifierInputDataConfig(DocumentClassifierInputDataConfigT &&value)
void SetDocumentClassifierInputDataConfig(DocumentClassifierInputDataConfigT &&value)
const DatasetDocumentClassifierInputDataConfig & GetDocumentClassifierInputDataConfig() const
const DatasetEntityRecognizerInputDataConfig & GetEntityRecognizerInputDataConfig() const
AWS_COMPREHEND_API DatasetInputDataConfig()=default
DatasetInputDataConfig & AddAugmentedManifests(AugmentedManifestsT &&value)
DatasetInputDataConfig & WithEntityRecognizerInputDataConfig(EntityRecognizerInputDataConfigT &&value)
void SetEntityRecognizerInputDataConfig(EntityRecognizerInputDataConfigT &&value)
const Aws::Vector< DatasetAugmentedManifestsListItem > & GetAugmentedManifests() const
AWS_COMPREHEND_API DatasetInputDataConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAugmentedManifests(AugmentedManifestsT &&value)
AWS_COMPREHEND_API DatasetInputDataConfig(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue