7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/ToxicContent.h>
51 template<
typename LabelsT = Aws::Vector<ToxicContent>>
52 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet =
true; m_labels = std::forward<LabelsT>(value); }
53 template<
typename LabelsT = Aws::Vector<ToxicContent>>
55 template<
typename LabelsT = ToxicContent>
56 ToxicLabels&
AddLabels(LabelsT&& value) { m_labelsHasBeenSet =
true; m_labels.emplace_back(std::forward<LabelsT>(value));
return *
this; }
66 inline void SetToxicity(
double value) { m_toxicityHasBeenSet =
true; m_toxicity = value; }
72 bool m_labelsHasBeenSet =
false;
74 double m_toxicity{0.0};
75 bool m_toxicityHasBeenSet =
false;
ToxicLabels & WithToxicity(double value)
double GetToxicity() const
ToxicLabels & AddLabels(LabelsT &&value)
void SetLabels(LabelsT &&value)
AWS_COMPREHEND_API ToxicLabels(Aws::Utils::Json::JsonView jsonValue)
bool ToxicityHasBeenSet() const
AWS_COMPREHEND_API ToxicLabels()=default
bool LabelsHasBeenSet() const
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API ToxicLabels & operator=(Aws::Utils::Json::JsonView jsonValue)
ToxicLabels & WithLabels(LabelsT &&value)
void SetToxicity(double value)
const Aws::Vector< ToxicContent > & GetLabels() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue