Interface NotificationSpecification.Builder

    • Method Detail

      • destination

        NotificationSpecification.Builder destination​(String destination)

        The target for notification messages. The Destination’s format is determined by the specified Transport:

        • When Transport is Email, the Destination is your email address.

        • When Transport is SQS, the Destination is your queue URL.

        • When Transport is SNS, the Destination is the ARN of your topic.

        Parameters:
        destination - The target for notification messages. The Destination’s format is determined by the specified Transport:

        • When Transport is Email, the Destination is your email address.

        • When Transport is SQS, the Destination is your queue URL.

        • When Transport is SNS, the Destination is the ARN of your topic.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transport

        NotificationSpecification.Builder transport​(String transport)

        The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.

        Parameters:
        transport - The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        NotificationTransport, NotificationTransport
      • version

        NotificationSpecification.Builder version​(String version)

        The version of the Notification API to use. Valid value is 2006-05-05.

        Parameters:
        version - The version of the Notification API to use. Valid value is 2006-05-05.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventTypesWithStrings

        NotificationSpecification.Builder eventTypesWithStrings​(Collection<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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventTypesWithStrings

        NotificationSpecification.Builder eventTypesWithStrings​(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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventTypes

        NotificationSpecification.Builder eventTypes​(Collection<EventType> 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventTypes

        NotificationSpecification.Builder eventTypes​(EventType... 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.