This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-mturk-requester/include/aws/mturk-requester/model/SendTestEventNotificationRequest.h

141 lines
6.0 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mturk-requester/MTurk_EXPORTS.h>
#include <aws/mturk-requester/MTurkRequest.h>
#include <aws/mturk-requester/model/NotificationSpecification.h>
#include <aws/mturk-requester/model/EventType.h>
#include <utility>
namespace Aws
{
namespace MTurk
{
namespace Model
{
/**
*/
class AWS_MTURK_API SendTestEventNotificationRequest : public MTurkRequest
{
public:
SendTestEventNotificationRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "SendTestEventNotification"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p> The notification specification to test. This value is identical to the value
* you would provide to the UpdateNotificationSettings operation when you establish
* the notification specification for a HIT type. </p>
*/
inline const NotificationSpecification& GetNotification() const{ return m_notification; }
/**
* <p> The notification specification to test. This value is identical to the value
* you would provide to the UpdateNotificationSettings operation when you establish
* the notification specification for a HIT type. </p>
*/
inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
/**
* <p> The notification specification to test. This value is identical to the value
* you would provide to the UpdateNotificationSettings operation when you establish
* the notification specification for a HIT type. </p>
*/
inline void SetNotification(const NotificationSpecification& value) { m_notificationHasBeenSet = true; m_notification = value; }
/**
* <p> The notification specification to test. This value is identical to the value
* you would provide to the UpdateNotificationSettings operation when you establish
* the notification specification for a HIT type. </p>
*/
inline void SetNotification(NotificationSpecification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
/**
* <p> The notification specification to test. This value is identical to the value
* you would provide to the UpdateNotificationSettings operation when you establish
* the notification specification for a HIT type. </p>
*/
inline SendTestEventNotificationRequest& WithNotification(const NotificationSpecification& value) { SetNotification(value); return *this;}
/**
* <p> The notification specification to test. This value is identical to the value
* you would provide to the UpdateNotificationSettings operation when you establish
* the notification specification for a HIT type. </p>
*/
inline SendTestEventNotificationRequest& WithNotification(NotificationSpecification&& value) { SetNotification(std::move(value)); return *this;}
/**
* <p> The event to simulate to test the notification specification. This event is
* included in the test message even if the notification specification does not
* include the event type. The notification specification does not filter out the
* test event. </p>
*/
inline const EventType& GetTestEventType() const{ return m_testEventType; }
/**
* <p> The event to simulate to test the notification specification. This event is
* included in the test message even if the notification specification does not
* include the event type. The notification specification does not filter out the
* test event. </p>
*/
inline bool TestEventTypeHasBeenSet() const { return m_testEventTypeHasBeenSet; }
/**
* <p> The event to simulate to test the notification specification. This event is
* included in the test message even if the notification specification does not
* include the event type. The notification specification does not filter out the
* test event. </p>
*/
inline void SetTestEventType(const EventType& value) { m_testEventTypeHasBeenSet = true; m_testEventType = value; }
/**
* <p> The event to simulate to test the notification specification. This event is
* included in the test message even if the notification specification does not
* include the event type. The notification specification does not filter out the
* test event. </p>
*/
inline void SetTestEventType(EventType&& value) { m_testEventTypeHasBeenSet = true; m_testEventType = std::move(value); }
/**
* <p> The event to simulate to test the notification specification. This event is
* included in the test message even if the notification specification does not
* include the event type. The notification specification does not filter out the
* test event. </p>
*/
inline SendTestEventNotificationRequest& WithTestEventType(const EventType& value) { SetTestEventType(value); return *this;}
/**
* <p> The event to simulate to test the notification specification. This event is
* included in the test message even if the notification specification does not
* include the event type. The notification specification does not filter out the
* test event. </p>
*/
inline SendTestEventNotificationRequest& WithTestEventType(EventType&& value) { SetTestEventType(std::move(value)); return *this;}
private:
NotificationSpecification m_notification;
bool m_notificationHasBeenSet;
EventType m_testEventType;
bool m_testEventTypeHasBeenSet;
};
} // namespace Model
} // namespace MTurk
} // namespace Aws