Interface NotificationSpecification.Builder

All Superinterfaces:
Buildable, CopyableBuilder<NotificationSpecification.Builder,NotificationSpecification>, SdkBuilder<NotificationSpecification.Builder,NotificationSpecification>, SdkPojo
Enclosing class:
NotificationSpecification

public static interface NotificationSpecification.Builder extends SdkPojo, CopyableBuilder<NotificationSpecification.Builder,NotificationSpecification>
  • Method Details

    • 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

      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:
    • 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:
    • 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

      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.