AWS SDK for C++

AWS SDK for C++ Version 1.11.945

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#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Comprehend {
22namespace Model {
23
31 public:
32 AWS_COMPREHEND_API DocumentClassificationConfig() = default;
33 AWS_COMPREHEND_API DocumentClassificationConfig(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_COMPREHEND_API DocumentClassificationConfig& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 DocumentClassificationConfig(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPREHEND_API DocumentClassificationConfig & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DocumentClassificationConfig & WithMode(DocumentClassifierMode value)
AWS_COMPREHEND_API DocumentClassificationConfig()=default
DocumentClassificationConfig & WithLabels(LabelsT &&value)
std::vector< T, Aws::Allocator< T > > Vector