AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ToxicityDetectionSettings.h
1
6#pragma once
7#include <aws/transcribe/TranscribeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/transcribe/model/ToxicityCategory.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 TranscribeService
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_TRANSCRIBESERVICE_API ToxicityDetectionSettings();
38 AWS_TRANSCRIBESERVICE_API ToxicityDetectionSettings(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSCRIBESERVICE_API ToxicityDetectionSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<ToxicityCategory>& GetToxicityCategories() const{ return m_toxicityCategories; }
50 inline bool ToxicityCategoriesHasBeenSet() const { return m_toxicityCategoriesHasBeenSet; }
51 inline void SetToxicityCategories(const Aws::Vector<ToxicityCategory>& value) { m_toxicityCategoriesHasBeenSet = true; m_toxicityCategories = value; }
52 inline void SetToxicityCategories(Aws::Vector<ToxicityCategory>&& value) { m_toxicityCategoriesHasBeenSet = true; m_toxicityCategories = std::move(value); }
55 inline ToxicityDetectionSettings& AddToxicityCategories(const ToxicityCategory& value) { m_toxicityCategoriesHasBeenSet = true; m_toxicityCategories.push_back(value); return *this; }
56 inline ToxicityDetectionSettings& AddToxicityCategories(ToxicityCategory&& value) { m_toxicityCategoriesHasBeenSet = true; m_toxicityCategories.push_back(std::move(value)); return *this; }
58 private:
59
60 Aws::Vector<ToxicityCategory> m_toxicityCategories;
61 bool m_toxicityCategoriesHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace TranscribeService
66} // namespace Aws
ToxicityDetectionSettings & WithToxicityCategories(const Aws::Vector< ToxicityCategory > &value)
ToxicityDetectionSettings & AddToxicityCategories(ToxicityCategory &&value)
ToxicityDetectionSettings & AddToxicityCategories(const ToxicityCategory &value)
AWS_TRANSCRIBESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ToxicityDetectionSettings & WithToxicityCategories(Aws::Vector< ToxicityCategory > &&value)
void SetToxicityCategories(const Aws::Vector< ToxicityCategory > &value)
AWS_TRANSCRIBESERVICE_API ToxicityDetectionSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSCRIBESERVICE_API ToxicityDetectionSettings(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ToxicityCategory > & GetToxicityCategories() const
void SetToxicityCategories(Aws::Vector< ToxicityCategory > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue