AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DocumentLabel.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Comprehend {
20namespace Model {
21
29 public:
30 AWS_COMPREHEND_API DocumentLabel() = default;
31 AWS_COMPREHEND_API DocumentLabel(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_COMPREHEND_API DocumentLabel& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 DocumentLabel& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
58 inline double GetScore() const { return m_score; }
59 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
60 inline void SetScore(double value) {
61 m_scoreHasBeenSet = true;
62 m_score = value;
63 }
64 inline DocumentLabel& WithScore(double value) {
65 SetScore(value);
66 return *this;
67 }
69
71
75 inline int64_t GetPage() const { return m_page; }
76 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
77 inline void SetPage(int64_t value) {
78 m_pageHasBeenSet = true;
79 m_page = value;
80 }
81 inline DocumentLabel& WithPage(int64_t value) {
82 SetPage(value);
83 return *this;
84 }
86 private:
87 Aws::String m_name;
88
89 double m_score{0.0};
90
91 int64_t m_page{0};
92 bool m_nameHasBeenSet = false;
93 bool m_scoreHasBeenSet = false;
94 bool m_pageHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Comprehend
99} // namespace Aws
const Aws::String & GetName() const
AWS_COMPREHEND_API DocumentLabel(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DocumentLabel & WithScore(double value)
DocumentLabel & WithPage(int64_t value)
AWS_COMPREHEND_API DocumentLabel()=default
AWS_COMPREHEND_API DocumentLabel & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
DocumentLabel & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String