AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DocumentClassificationConfig.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/DocumentClassifierMode.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Comprehend {
22namespace Model {
23
31 public:
32 AWS_COMPREHEND_API DocumentClassificationConfig() = default;
35 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline DocumentClassifierMode GetMode() const { return m_mode; }
43 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
44 inline void SetMode(DocumentClassifierMode value) {
45 m_modeHasBeenSet = true;
46 m_mode = value;
47 }
49 SetMode(value);
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
59 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
60 template <typename LabelsT = Aws::Vector<Aws::String>>
61 void SetLabels(LabelsT&& value) {
62 m_labelsHasBeenSet = true;
63 m_labels = std::forward<LabelsT>(value);
64 }
65 template <typename LabelsT = Aws::Vector<Aws::String>>
67 SetLabels(std::forward<LabelsT>(value));
68 return *this;
69 }
70 template <typename LabelsT = Aws::String>
72 m_labelsHasBeenSet = true;
73 m_labels.emplace_back(std::forward<LabelsT>(value));
74 return *this;
75 }
77 private:
79
81 bool m_modeHasBeenSet = false;
82 bool m_labelsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Comprehend
87} // namespace Aws
DocumentClassificationConfig & AddLabels(LabelsT &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API DocumentClassificationConfig(Aws::Utils::Json::JsonView jsonValue)
DocumentClassificationConfig & WithMode(DocumentClassifierMode value)
AWS_COMPREHEND_API DocumentClassificationConfig()=default
DocumentClassificationConfig & WithLabels(LabelsT &&value)
AWS_COMPREHEND_API DocumentClassificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue