AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetNotification(const NotificationSpecification& value) { m_notificationHasBeenSet = true; m_notification = value; }
47 inline void SetNotification(NotificationSpecification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
51
53
59 inline const EventType& GetTestEventType() const{ return m_testEventType; }
60 inline bool TestEventTypeHasBeenSet() const { return m_testEventTypeHasBeenSet; }
61 inline void SetTestEventType(const EventType& value) { m_testEventTypeHasBeenSet = true; m_testEventType = value; }
62 inline void SetTestEventType(EventType&& value) { m_testEventTypeHasBeenSet = true; m_testEventType = std::move(value); }
64 inline SendTestEventNotificationRequest& WithTestEventType(EventType&& value) { SetTestEventType(std::move(value)); return *this;}
66 private:
67
68 NotificationSpecification m_notification;
69 bool m_notificationHasBeenSet = false;
70
71 EventType m_testEventType;
72 bool m_testEventTypeHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace MTurk
77} // namespace Aws
SendTestEventNotificationRequest & WithNotification(NotificationSpecification &&value)
AWS_MTURK_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendTestEventNotificationRequest & WithNotification(const NotificationSpecification &value)
SendTestEventNotificationRequest & WithTestEventType(EventType &&value)
AWS_MTURK_API Aws::String SerializePayload() const override
void SetNotification(const NotificationSpecification &value)
SendTestEventNotificationRequest & WithTestEventType(const EventType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String