StructuredPojo
, ToCopyableBuilder<NotificationSpecification.Builder,NotificationSpecification>
@Generated("software.amazon.awssdk:codegen") public class NotificationSpecification extends Object implements StructuredPojo, ToCopyableBuilder<NotificationSpecification.Builder,NotificationSpecification>
The NotificationSpecification data structure describes a HIT event notification for a HIT type.
Modifier and Type | Class | Description |
---|---|---|
static interface |
NotificationSpecification.Builder |
Modifier and Type | Method | Description |
---|---|---|
static NotificationSpecification.Builder |
builder() |
|
String |
destination() |
The destination for notification messages.
|
boolean |
equals(Object obj) |
|
List<String> |
eventTypes() |
The list of events that should cause notifications to be sent.
|
int |
hashCode() |
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends NotificationSpecification.Builder> |
serializableBuilderClass() |
|
NotificationSpecification.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
String |
transport() |
The method Amazon Mechanical Turk uses to send the notification.
|
String |
version() |
The version of the Notification API to use.
|
public String destination()
The destination for notification messages. or email notifications (if Transport is Email), this is an email address. For Amazon Simple Queue Service (Amazon SQS) notifications (if Transport is SQS), this is the URL for your Amazon SQS queue.
public String transport()
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS.
NotificationTransport
public String version()
The version of the Notification API to use. Valid value is 2006-05-05.
public List<String> eventTypes()
The list of events that should cause notifications to be sent. Valid Values: AssignmentAccepted | AssignmentAbandoned | AssignmentReturned | AssignmentSubmitted | AssignmentRejected | AssignmentApproved | HITCreated | HITExtended | HITDisposed | HITReviewable | HITExpired | Ping. The Ping event is only valid for the SendTestEventNotification operation.
EventType
public NotificationSpecification.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<NotificationSpecification.Builder,NotificationSpecification>
public static NotificationSpecification.Builder builder()
public static Class<? extends NotificationSpecification.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.