AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateAbuseReportRequest.h
1
6#pragma once
7#include <aws/abuse-signal/AbuseSignalRequest.h>
8#include <aws/abuse-signal/AbuseSignal_EXPORTS.h>
9#include <aws/abuse-signal/model/ReportData.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AbuseSignal {
16namespace Model {
17
26 public:
27 AWS_ABUSESIGNAL_API CreateAbuseReportRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAbuseReport"; }
34
35 AWS_ABUSESIGNAL_API Aws::String SerializePayload() const override;
36
37 AWS_ABUSESIGNAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
44 inline const ReportData& GetReport() const { return m_report; }
45 inline bool ReportHasBeenSet() const { return m_reportHasBeenSet; }
46 template <typename ReportT = ReportData>
47 void SetReport(ReportT&& value) {
48 m_reportHasBeenSet = true;
49 m_report = std::forward<ReportT>(value);
50 }
51 template <typename ReportT = ReportData>
53 SetReport(std::forward<ReportT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetCorrelationId() const { return m_correlationId; }
65 inline bool CorrelationIdHasBeenSet() const { return m_correlationIdHasBeenSet; }
66 template <typename CorrelationIdT = Aws::String>
67 void SetCorrelationId(CorrelationIdT&& value) {
68 m_correlationIdHasBeenSet = true;
69 m_correlationId = std::forward<CorrelationIdT>(value);
70 }
71 template <typename CorrelationIdT = Aws::String>
73 SetCorrelationId(std::forward<CorrelationIdT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetClientToken() const { return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 template <typename ClientTokenT = Aws::String>
89 void SetClientToken(ClientTokenT&& value) {
90 m_clientTokenHasBeenSet = true;
91 m_clientToken = std::forward<ClientTokenT>(value);
92 }
93 template <typename ClientTokenT = Aws::String>
95 SetClientToken(std::forward<ClientTokenT>(value));
96 return *this;
97 }
99 private:
100 ReportData m_report;
101
102 Aws::String m_correlationId;
103
104 Aws::String m_clientToken;
105 bool m_reportHasBeenSet = false;
106 bool m_correlationIdHasBeenSet = false;
107 bool m_clientTokenHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace AbuseSignal
112} // namespace Aws
AWS_ABUSESIGNAL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAbuseReportRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ABUSESIGNAL_API CreateAbuseReportRequest()=default
AWS_ABUSESIGNAL_API Aws::String SerializePayload() const override
CreateAbuseReportRequest & WithCorrelationId(CorrelationIdT &&value)
CreateAbuseReportRequest & WithReport(ReportT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String