AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ToxicLabels.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/ToxicContent.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Comprehend
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_COMPREHEND_API ToxicLabels();
40 AWS_COMPREHEND_API ToxicLabels(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPREHEND_API ToxicLabels& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<ToxicContent>& GetLabels() const{ return m_labels; }
50 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
51 inline void SetLabels(const Aws::Vector<ToxicContent>& value) { m_labelsHasBeenSet = true; m_labels = value; }
52 inline void SetLabels(Aws::Vector<ToxicContent>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
53 inline ToxicLabels& WithLabels(const Aws::Vector<ToxicContent>& value) { SetLabels(value); return *this;}
54 inline ToxicLabels& WithLabels(Aws::Vector<ToxicContent>&& value) { SetLabels(std::move(value)); return *this;}
55 inline ToxicLabels& AddLabels(const ToxicContent& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
56 inline ToxicLabels& AddLabels(ToxicContent&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
58
60
64 inline double GetToxicity() const{ return m_toxicity; }
65 inline bool ToxicityHasBeenSet() const { return m_toxicityHasBeenSet; }
66 inline void SetToxicity(double value) { m_toxicityHasBeenSet = true; m_toxicity = value; }
67 inline ToxicLabels& WithToxicity(double value) { SetToxicity(value); return *this;}
69 private:
70
72 bool m_labelsHasBeenSet = false;
73
74 double m_toxicity;
75 bool m_toxicityHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Comprehend
80} // namespace Aws
ToxicLabels & WithLabels(Aws::Vector< ToxicContent > &&value)
Definition ToxicLabels.h:54
ToxicLabels & WithToxicity(double value)
Definition ToxicLabels.h:67
ToxicLabels & AddLabels(const ToxicContent &value)
Definition ToxicLabels.h:55
AWS_COMPREHEND_API ToxicLabels(Aws::Utils::Json::JsonView jsonValue)
ToxicLabels & AddLabels(ToxicContent &&value)
Definition ToxicLabels.h:56
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLabels(const Aws::Vector< ToxicContent > &value)
Definition ToxicLabels.h:51
AWS_COMPREHEND_API ToxicLabels()
void SetLabels(Aws::Vector< ToxicContent > &&value)
Definition ToxicLabels.h:52
ToxicLabels & WithLabels(const Aws::Vector< ToxicContent > &value)
Definition ToxicLabels.h:53
AWS_COMPREHEND_API ToxicLabels & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ToxicContent > & GetLabels() const
Definition ToxicLabels.h:49
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue