AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 DocumentLabel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
58 inline double GetScore() const { return m_score; }
59 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
60 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
61 inline DocumentLabel& WithScore(double value) { SetScore(value); return *this;}
63
65
69 inline int GetPage() const { return m_page; }
70 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
71 inline void SetPage(int value) { m_pageHasBeenSet = true; m_page = value; }
72 inline DocumentLabel& WithPage(int value) { SetPage(value); return *this;}
74 private:
75
76 Aws::String m_name;
77 bool m_nameHasBeenSet = false;
78
79 double m_score{0.0};
80 bool m_scoreHasBeenSet = false;
81
82 int m_page{0};
83 bool m_pageHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Comprehend
88} // namespace Aws
const Aws::String & GetName() const
DocumentLabel & WithPage(int value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API DocumentLabel & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentLabel & WithScore(double value)
AWS_COMPREHEND_API DocumentLabel()=default
AWS_COMPREHEND_API DocumentLabel(Aws::Utils::Json::JsonView jsonValue)
DocumentLabel & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue