AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TextSegmentsT = Aws::Vector<TextSegment>>
47 void SetTextSegments(TextSegmentsT&& value) { m_textSegmentsHasBeenSet = true; m_textSegments = std::forward<TextSegmentsT>(value); }
48 template<typename TextSegmentsT = Aws::Vector<TextSegment>>
49 DetectToxicContentRequest& WithTextSegments(TextSegmentsT&& value) { SetTextSegments(std::forward<TextSegmentsT>(value)); return *this;}
50 template<typename TextSegmentsT = TextSegment>
51 DetectToxicContentRequest& AddTextSegments(TextSegmentsT&& value) { m_textSegmentsHasBeenSet = true; m_textSegments.emplace_back(std::forward<TextSegmentsT>(value)); return *this; }
53
55
59 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
60 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
61 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
64 private:
65
66 Aws::Vector<TextSegment> m_textSegments;
67 bool m_textSegmentsHasBeenSet = false;
68
69 LanguageCode m_languageCode{LanguageCode::NOT_SET};
70 bool m_languageCodeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace Comprehend
75} // 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