NotificationSpecification class

The NotificationSpecification data structure describes a HIT event notification for a HIT type.

Annotations
  • @JsonSerializable(includeIfNull: false, explicitToJson: true, createFactory: false, createToJson: true)

Constructors

NotificationSpecification({@required String destination, @required List<EventType> eventTypes, @required NotificationTransport transport, @required String version})

Properties

destination String
The target for notification messages. The Destination’s format is determined by the specified Transport: [...]
@JsonKey(name: 'Destination'), final
eventTypes List<EventType>
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.
@JsonKey(name: 'EventTypes'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
transport NotificationTransport
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
@JsonKey(name: 'Transport'), final
version String
The version of the Notification API to use. Valid value is 2006-05-05.
@JsonKey(name: 'Version'), final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited