AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ToxicContent.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/ToxicContentType.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
32 public:
33 AWS_COMPREHEND_API ToxicContent() = default;
34 AWS_COMPREHEND_API ToxicContent(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COMPREHEND_API ToxicContent& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ToxicContentType GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(ToxicContentType value) {
45 m_nameHasBeenSet = true;
46 m_name = value;
47 }
49 SetName(value);
50 return *this;
51 }
53
55
59 inline double GetScore() const { return m_score; }
60 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
61 inline void SetScore(double value) {
62 m_scoreHasBeenSet = true;
63 m_score = value;
64 }
65 inline ToxicContent& WithScore(double value) {
66 SetScore(value);
67 return *this;
68 }
70 private:
72
73 double m_score{0.0};
74 bool m_nameHasBeenSet = false;
75 bool m_scoreHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Comprehend
80} // namespace Aws
void SetName(ToxicContentType value)
AWS_COMPREHEND_API ToxicContent(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API ToxicContent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API ToxicContent()=default
ToxicContentType GetName() const
ToxicContent & WithName(ToxicContentType value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
ToxicContent & WithScore(double value)
Aws::Utils::Json::JsonValue JsonValue