AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DocumentClass.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Comprehend {
20namespace Model {
21
29 public:
30 AWS_COMPREHEND_API DocumentClass() = default;
31 AWS_COMPREHEND_API DocumentClass(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COMPREHEND_API DocumentClass& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() 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 DocumentClass& 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 DocumentClass& WithScore(double value) {
65 SetScore(value);
66 return *this;
67 }
69
71
75 inline int GetPage() const { return m_page; }
76 inline bool PageHasBeenSet() const { return m_pageHasBeenSet; }
77 inline void SetPage(int value) {
78 m_pageHasBeenSet = true;
79 m_page = value;
80 }
81 inline DocumentClass& WithPage(int value) {
82 SetPage(value);
83 return *this;
84 }
86 private:
87 Aws::String m_name;
88
89 double m_score{0.0};
90
91 int 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
DocumentClass & WithScore(double value)
AWS_COMPREHEND_API DocumentClass()=default
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentClass & WithName(NameT &&value)
AWS_COMPREHEND_API DocumentClass(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API DocumentClass & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentClass & WithPage(int value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue