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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NotificationSpecification.Builderdestination(String destination)The target for notification messages.NotificationSpecification.BuildereventTypes(Collection<EventType> eventTypes)The list of events that should cause notifications to be sent.NotificationSpecification.BuildereventTypes(EventType... eventTypes)The list of events that should cause notifications to be sent.NotificationSpecification.BuildereventTypesWithStrings(String... eventTypes)The list of events that should cause notifications to be sent.NotificationSpecification.BuildereventTypesWithStrings(Collection<String> eventTypes)The list of events that should cause notifications to be sent.NotificationSpecification.Buildertransport(String transport)The method Amazon Mechanical Turk uses to send the notification.NotificationSpecification.Buildertransport(NotificationTransport transport)The method Amazon Mechanical Turk uses to send the notification.NotificationSpecification.Builderversion(String version)The version of the Notification API to use.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
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
-
transport
NotificationSpecification.Builder transport(NotificationTransport 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.
-
-