AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
SendTestEventNotificationRequest.h
1
6#pragma once
7#include <aws/mturk-requester/MTurkRequest.h>
8#include <aws/mturk-requester/MTurk_EXPORTS.h>
9#include <aws/mturk-requester/model/EventType.h>
10#include <aws/mturk-requester/model/NotificationSpecification.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MTurk {
16namespace Model {
17
21 public:
22 AWS_MTURK_API SendTestEventNotificationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "SendTestEventNotification"; }
29
30 AWS_MTURK_API Aws::String SerializePayload() const override;
31
33
35
40 inline const NotificationSpecification& GetNotification() const { return m_notification; }
41 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
42 template <typename NotificationT = NotificationSpecification>
43 void SetNotification(NotificationT&& value) {
44 m_notificationHasBeenSet = true;
45 m_notification = std::forward<NotificationT>(value);
46 }
47 template <typename NotificationT = NotificationSpecification>
49 SetNotification(std::forward<NotificationT>(value));
50 return *this;
51 }
53
55
61 inline EventType GetTestEventType() const { return m_testEventType; }
62 inline bool TestEventTypeHasBeenSet() const { return m_testEventTypeHasBeenSet; }
63 inline void SetTestEventType(EventType value) {
64 m_testEventTypeHasBeenSet = true;
65 m_testEventType = value;
66 }
68 SetTestEventType(value);
69 return *this;
70 }
72 private:
73 NotificationSpecification m_notification;
74
75 EventType m_testEventType{EventType::NOT_SET};
76 bool m_notificationHasBeenSet = false;
77 bool m_testEventTypeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace MTurk
82} // namespace Aws
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MTURK_API Aws::String SerializePayload() const override
SendTestEventNotificationRequest & WithTestEventType(EventType value)
SendTestEventNotificationRequest & WithNotification(NotificationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String