AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ToxicContentType& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const ToxicContentType& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(ToxicContentType&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline ToxicContent& WithName(const ToxicContentType& value) { SetName(value); return *this;}
53 inline ToxicContent& WithName(ToxicContentType&& value) { SetName(std::move(value)); return *this;}
55
57
61 inline double GetScore() const{ return m_score; }
62 inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
63 inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
64 inline ToxicContent& WithScore(double value) { SetScore(value); return *this;}
66 private:
67
68 ToxicContentType m_name;
69 bool m_nameHasBeenSet = false;
70
71 double m_score;
72 bool m_scoreHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Comprehend
77} // namespace Aws
const ToxicContentType & GetName() const
ToxicContent & WithName(ToxicContentType &&value)
void SetName(const ToxicContentType &value)
AWS_COMPREHEND_API ToxicContent(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPREHEND_API ToxicContent & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(ToxicContentType &&value)
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
ToxicContent & WithScore(double value)
ToxicContent & WithName(const ToxicContentType &value)
Aws::Utils::Json::JsonValue JsonValue