AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SendTestEventNotificationRequest.h
1
6#pragma once
7#include <aws/mturk-requester/MTurk_EXPORTS.h>
8#include <aws/mturk-requester/MTurkRequest.h>
9#include <aws/mturk-requester/model/NotificationSpecification.h>
10#include <aws/mturk-requester/model/EventType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MTurk
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MTURK_API SendTestEventNotificationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SendTestEventNotification"; }
32
33 AWS_MTURK_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const NotificationSpecification& GetNotification() const { return m_notification; }
45 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
46 template<typename NotificationT = NotificationSpecification>
47 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
48 template<typename NotificationT = NotificationSpecification>
49 SendTestEventNotificationRequest& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
51
53
59 inline EventType GetTestEventType() const { return m_testEventType; }
60 inline bool TestEventTypeHasBeenSet() const { return m_testEventTypeHasBeenSet; }
61 inline void SetTestEventType(EventType value) { m_testEventTypeHasBeenSet = true; m_testEventType = value; }
64 private:
65
66 NotificationSpecification m_notification;
67 bool m_notificationHasBeenSet = false;
68
69 EventType m_testEventType{EventType::NOT_SET};
70 bool m_testEventTypeHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace MTurk
75} // 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