AWS SDK for C++  1.9.105
AWS SDK for C++
SendTestEventNotificationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MTurk
16 {
17 namespace 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::String SerializePayload() const override;
34 
36 
37 
43  inline const NotificationSpecification& GetNotification() const{ return m_notification; }
44 
50  inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
51 
57  inline void SetNotification(const NotificationSpecification& value) { m_notificationHasBeenSet = true; m_notification = value; }
58 
64  inline void SetNotification(NotificationSpecification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
65 
71  inline SendTestEventNotificationRequest& WithNotification(const NotificationSpecification& value) { SetNotification(value); return *this;}
72 
78  inline SendTestEventNotificationRequest& WithNotification(NotificationSpecification&& value) { SetNotification(std::move(value)); return *this;}
79 
80 
87  inline const EventType& GetTestEventType() const{ return m_testEventType; }
88 
95  inline bool TestEventTypeHasBeenSet() const { return m_testEventTypeHasBeenSet; }
96 
103  inline void SetTestEventType(const EventType& value) { m_testEventTypeHasBeenSet = true; m_testEventType = value; }
104 
111  inline void SetTestEventType(EventType&& value) { m_testEventTypeHasBeenSet = true; m_testEventType = std::move(value); }
112 
119  inline SendTestEventNotificationRequest& WithTestEventType(const EventType& value) { SetTestEventType(value); return *this;}
120 
127  inline SendTestEventNotificationRequest& WithTestEventType(EventType&& value) { SetTestEventType(std::move(value)); return *this;}
128 
129  private:
130 
131  NotificationSpecification m_notification;
132  bool m_notificationHasBeenSet;
133 
134  EventType m_testEventType;
135  bool m_testEventTypeHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace MTurk
140 } // namespace Aws
Aws::MTurk::Model::NotificationSpecification
Definition: NotificationSpecification.h:36
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MTurk::Model::SendTestEventNotificationRequest::SetTestEventType
void SetTestEventType(const EventType &value)
Definition: SendTestEventNotificationRequest.h:103
Aws::MTurk::Model::SendTestEventNotificationRequest::WithNotification
SendTestEventNotificationRequest & WithNotification(const NotificationSpecification &value)
Definition: SendTestEventNotificationRequest.h:71
Aws::MTurk::Model::SendTestEventNotificationRequest::SetNotification
void SetNotification(const NotificationSpecification &value)
Definition: SendTestEventNotificationRequest.h:57
Aws::MTurk::Model::SendTestEventNotificationRequest::SendTestEventNotificationRequest
SendTestEventNotificationRequest()
Aws::MTurk::Model::SendTestEventNotificationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SendTestEventNotificationRequest.h:31
EventType.h
Aws::MTurk::MTurkRequest
Definition: MTurkRequest.h:17
Aws::MTurk::Model::SendTestEventNotificationRequest
Definition: SendTestEventNotificationRequest.h:23
MTurkRequest.h
Aws::MTurk::Model::SendTestEventNotificationRequest::GetTestEventType
const EventType & GetTestEventType() const
Definition: SendTestEventNotificationRequest.h:87
Aws::MTurk::Model::SendTestEventNotificationRequest::WithTestEventType
SendTestEventNotificationRequest & WithTestEventType(EventType &&value)
Definition: SendTestEventNotificationRequest.h:127
Aws::MTurk::Model::SendTestEventNotificationRequest::TestEventTypeHasBeenSet
bool TestEventTypeHasBeenSet() const
Definition: SendTestEventNotificationRequest.h:95
Aws::MTurk::Model::SendTestEventNotificationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MTurk::Model::SendTestEventNotificationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MTurk::Model::SendTestEventNotificationRequest::NotificationHasBeenSet
bool NotificationHasBeenSet() const
Definition: SendTestEventNotificationRequest.h:50
NotificationSpecification.h
Aws::MTurk::Model::SendTestEventNotificationRequest::GetNotification
const NotificationSpecification & GetNotification() const
Definition: SendTestEventNotificationRequest.h:43
Aws::MTurk::Model::SendTestEventNotificationRequest::WithNotification
SendTestEventNotificationRequest & WithNotification(NotificationSpecification &&value)
Definition: SendTestEventNotificationRequest.h:78
MTurk_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
AWS_MTURK_API
#define AWS_MTURK_API
Definition: MTurk_EXPORTS.h:28
Aws::MTurk::Model::SendTestEventNotificationRequest::SetTestEventType
void SetTestEventType(EventType &&value)
Definition: SendTestEventNotificationRequest.h:111
Aws::MTurk::Model::EventType
EventType
Definition: EventType.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MTurk::Model::SendTestEventNotificationRequest::WithTestEventType
SendTestEventNotificationRequest & WithTestEventType(const EventType &value)
Definition: SendTestEventNotificationRequest.h:119
Aws::MTurk::Model::SendTestEventNotificationRequest::SetNotification
void SetNotification(NotificationSpecification &&value)
Definition: SendTestEventNotificationRequest.h:64