7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
31 AWS_COMPREHEND_API
DocumentLabel(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPREHEND_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
41 template <
typename NameT = Aws::String>
43 m_nameHasBeenSet =
true;
44 m_name = std::forward<NameT>(value);
46 template <
typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
58 inline double GetScore()
const {
return m_score; }
61 m_scoreHasBeenSet =
true;
75 inline int64_t
GetPage()
const {
return m_page; }
78 m_pageHasBeenSet =
true;
92 bool m_nameHasBeenSet =
false;
93 bool m_scoreHasBeenSet =
false;
94 bool m_pageHasBeenSet =
false;
const Aws::String & GetName() const
bool ScoreHasBeenSet() const
void SetName(NameT &&value)
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)
bool PageHasBeenSet() const
bool NameHasBeenSet() const
void SetScore(double value)
AWS_COMPREHEND_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetPage(int64_t value)
DocumentLabel & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String