AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Comprehend
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COMPREHEND_API DocumentLabel();
36 AWS_COMPREHEND_API DocumentLabel(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COMPREHEND_API DocumentLabel& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline DocumentLabel& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline DocumentLabel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline DocumentLabel& WithName(const char* value) { SetName(value); return *this;}
54
56
60 inline double GetScore() const{ return m_score; }
61 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
62 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
63 inline DocumentLabel& WithScore(double value) { SetScore(value); return *this;}
65
67
71 inline int GetPage() const{ return m_page; }
72 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
73 inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; }
74 inline DocumentLabel& WithPage(int value) { SetPage(value); return *this;}
76 private:
77
78 Aws::String m_name;
79 bool m_nameHasBeenSet = false;
80
81 double m_score;
82 bool m_scoreHasBeenSet = false;
83
84 int m_page;
85 bool m_pageHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Comprehend
90} // namespace Aws
const Aws::String & GetName() const
void SetName(const Aws::String &value)
DocumentLabel & WithPage(int value)
DocumentLabel & WithName(Aws::String &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
AWS_COMPREHEND_API DocumentLabel & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentLabel & WithScore(double value)
DocumentLabel & WithName(const char *value)
DocumentLabel & WithName(const Aws::String &value)
AWS_COMPREHEND_API DocumentLabel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue