AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectToxicContentRequest.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/comprehend/model/LanguageCode.h>
11#include <aws/comprehend/model/TextSegment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Comprehend
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COMPREHEND_API DetectToxicContentRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DetectToxicContent"; }
33
34 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::Vector<TextSegment>& GetTextSegments() const{ return m_textSegments; }
45 inline bool TextSegmentsHasBeenSet() const { return m_textSegmentsHasBeenSet; }
46 inline void SetTextSegments(const Aws::Vector<TextSegment>& value) { m_textSegmentsHasBeenSet = true; m_textSegments = value; }
47 inline void SetTextSegments(Aws::Vector<TextSegment>&& value) { m_textSegmentsHasBeenSet = true; m_textSegments = std::move(value); }
49 inline DetectToxicContentRequest& WithTextSegments(Aws::Vector<TextSegment>&& value) { SetTextSegments(std::move(value)); return *this;}
50 inline DetectToxicContentRequest& AddTextSegments(const TextSegment& value) { m_textSegmentsHasBeenSet = true; m_textSegments.push_back(value); return *this; }
51 inline DetectToxicContentRequest& AddTextSegments(TextSegment&& value) { m_textSegmentsHasBeenSet = true; m_textSegments.push_back(std::move(value)); return *this; }
53
55
59 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
60 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
61 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
62 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
63 inline DetectToxicContentRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
64 inline DetectToxicContentRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
66 private:
67
68 Aws::Vector<TextSegment> m_textSegments;
69 bool m_textSegmentsHasBeenSet = false;
70
71 LanguageCode m_languageCode;
72 bool m_languageCodeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Comprehend
77} // namespace Aws
const Aws::Vector< TextSegment > & GetTextSegments() const
DetectToxicContentRequest & WithLanguageCode(const LanguageCode &value)
DetectToxicContentRequest & AddTextSegments(TextSegment &&value)
DetectToxicContentRequest & WithTextSegments(Aws::Vector< TextSegment > &&value)
DetectToxicContentRequest & AddTextSegments(const TextSegment &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTextSegments(const Aws::Vector< TextSegment > &value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
void SetTextSegments(Aws::Vector< TextSegment > &&value)
DetectToxicContentRequest & WithLanguageCode(LanguageCode &&value)
virtual const char * GetServiceRequestName() const override
DetectToxicContentRequest & WithTextSegments(const Aws::Vector< TextSegment > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector