AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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
36 {
37 public:
38 AWS_COMPREHEND_API ToxicContent() = default;
39 AWS_COMPREHEND_API ToxicContent(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COMPREHEND_API ToxicContent& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline ToxicContentType GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(ToxicContentType value) { m_nameHasBeenSet = true; m_name = value; }
51 inline ToxicContent& WithName(ToxicContentType value) { SetName(value); return *this;}
53
55
59 inline double GetScore() const { return m_score; }
60 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
61 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
62 inline ToxicContent& WithScore(double value) { SetScore(value); return *this;}
64 private:
65
67 bool m_nameHasBeenSet = false;
68
69 double m_score{0.0};
70 bool m_scoreHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Comprehend
75} // 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