AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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 Comprehend
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_COMPREHEND_API DocumentClassificationConfig() = default;
40 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline DocumentClassifierMode GetMode() const { return m_mode; }
49 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
50 inline void SetMode(DocumentClassifierMode value) { m_modeHasBeenSet = true; m_mode = value; }
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) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
62 template<typename LabelsT = Aws::Vector<Aws::String>>
63 DocumentClassificationConfig& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
64 template<typename LabelsT = Aws::String>
65 DocumentClassificationConfig& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
67 private:
68
70 bool m_modeHasBeenSet = false;
71
73 bool m_labelsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Comprehend
78} // 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