AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const DocumentClassifierMode& GetMode() const{ return m_mode; }
49 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
50 inline void SetMode(const DocumentClassifierMode& value) { m_modeHasBeenSet = true; m_mode = value; }
51 inline void SetMode(DocumentClassifierMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
52 inline DocumentClassificationConfig& WithMode(const DocumentClassifierMode& value) { SetMode(value); return *this;}
53 inline DocumentClassificationConfig& WithMode(DocumentClassifierMode&& value) { SetMode(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
61 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
62 inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
63 inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
64 inline DocumentClassificationConfig& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
65 inline DocumentClassificationConfig& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
66 inline DocumentClassificationConfig& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
67 inline DocumentClassificationConfig& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
68 inline DocumentClassificationConfig& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
70 private:
71
73 bool m_modeHasBeenSet = false;
74
76 bool m_labelsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Comprehend
81} // namespace Aws
void SetLabels(const Aws::Vector< Aws::String > &value)
DocumentClassificationConfig & AddLabels(const char *value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentClassificationConfig & AddLabels(Aws::String &&value)
DocumentClassificationConfig & WithLabels(const Aws::Vector< Aws::String > &value)
DocumentClassificationConfig & WithLabels(Aws::Vector< Aws::String > &&value)
DocumentClassificationConfig & AddLabels(const Aws::String &value)
DocumentClassificationConfig & WithMode(DocumentClassifierMode &&value)
AWS_COMPREHEND_API DocumentClassificationConfig(Aws::Utils::Json::JsonView jsonValue)
DocumentClassificationConfig & WithMode(const DocumentClassifierMode &value)
AWS_COMPREHEND_API DocumentClassificationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue