AWS SDK for C++  1.8.126
AWS SDK for C++
DocumentLabel.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Comprehend
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline DocumentLabel& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline DocumentLabel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline DocumentLabel& WithName(const char* value) { SetName(value); return *this;}
80 
81 
86  inline double GetScore() const{ return m_score; }
87 
92  inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
93 
98  inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
99 
104  inline DocumentLabel& WithScore(double value) { SetScore(value); return *this;}
105 
106  private:
107 
108  Aws::String m_name;
109  bool m_nameHasBeenSet;
110 
111  double m_score;
112  bool m_scoreHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace Comprehend
117 } // namespace Aws
Aws::Comprehend::Model::DocumentLabel::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DocumentLabel.h:49
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::DocumentLabel::operator=
DocumentLabel & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::DocumentLabel::SetName
void SetName(const char *value)
Definition: DocumentLabel.h:64
Aws::Comprehend::Model::DocumentLabel
Definition: DocumentLabel.h:33
Aws::Comprehend::Model::DocumentLabel::WithName
DocumentLabel & WithName(Aws::String &&value)
Definition: DocumentLabel.h:74
Aws::Comprehend::Model::DocumentLabel::ScoreHasBeenSet
bool ScoreHasBeenSet() const
Definition: DocumentLabel.h:92
Aws::Comprehend::Model::DocumentLabel::WithScore
DocumentLabel & WithScore(double value)
Definition: DocumentLabel.h:104
Aws::Comprehend::Model::DocumentLabel::DocumentLabel
DocumentLabel(Aws::Utils::Json::JsonView jsonValue)
Aws::Comprehend::Model::DocumentLabel::WithName
DocumentLabel & WithName(const Aws::String &value)
Definition: DocumentLabel.h:69
Aws::Comprehend::Model::DocumentLabel::GetScore
double GetScore() const
Definition: DocumentLabel.h:86
Aws::Comprehend::Model::DocumentLabel::GetName
const Aws::String & GetName() const
Definition: DocumentLabel.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Comprehend::Model::DocumentLabel::WithName
DocumentLabel & WithName(const char *value)
Definition: DocumentLabel.h:79
Aws::Comprehend::Model::DocumentLabel::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::DocumentLabel::SetName
void SetName(const Aws::String &value)
Definition: DocumentLabel.h:54
Aws::Comprehend::Model::DocumentLabel::SetScore
void SetScore(double value)
Definition: DocumentLabel.h:98
Aws::Comprehend::Model::DocumentLabel::DocumentLabel
DocumentLabel()
Aws::Comprehend::Model::DocumentLabel::SetName
void SetName(Aws::String &&value)
Definition: DocumentLabel.h:59