AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectToxicContentRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/LanguageCode.h>
10#include <aws/comprehend/model/TextSegment.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Comprehend {
17namespace Model {
18
22 public:
23 AWS_COMPREHEND_API DetectToxicContentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DetectToxicContent"; }
30
31 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::Vector<TextSegment>& GetTextSegments() const { return m_textSegments; }
41 inline bool TextSegmentsHasBeenSet() const { return m_textSegmentsHasBeenSet; }
42 template <typename TextSegmentsT = Aws::Vector<TextSegment>>
43 void SetTextSegments(TextSegmentsT&& value) {
44 m_textSegmentsHasBeenSet = true;
45 m_textSegments = std::forward<TextSegmentsT>(value);
46 }
47 template <typename TextSegmentsT = Aws::Vector<TextSegment>>
49 SetTextSegments(std::forward<TextSegmentsT>(value));
50 return *this;
51 }
52 template <typename TextSegmentsT = TextSegment>
54 m_textSegmentsHasBeenSet = true;
55 m_textSegments.emplace_back(std::forward<TextSegmentsT>(value));
56 return *this;
57 }
59
61
65 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
66 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
67 inline void SetLanguageCode(LanguageCode value) {
68 m_languageCodeHasBeenSet = true;
69 m_languageCode = value;
70 }
72 SetLanguageCode(value);
73 return *this;
74 }
76 private:
77 Aws::Vector<TextSegment> m_textSegments;
78
79 LanguageCode m_languageCode{LanguageCode::NOT_SET};
80 bool m_textSegmentsHasBeenSet = false;
81 bool m_languageCodeHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Comprehend
86} // namespace Aws
const Aws::Vector< TextSegment > & GetTextSegments() const
DetectToxicContentRequest & AddTextSegments(TextSegmentsT &&value)
DetectToxicContentRequest & WithLanguageCode(LanguageCode value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetectToxicContentRequest & WithTextSegments(TextSegmentsT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_COMPREHEND_API DetectToxicContentRequest()=default
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