@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotificationSpecification extends Object implements Serializable, Cloneable, StructuredPojo
The NotificationSpecification data structure describes a HIT event notification for a HIT type.
Constructor and Description |
---|
NotificationSpecification() |
Modifier and Type | Method and Description |
---|---|
NotificationSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getDestination()
The target for notification messages.
|
List<String> |
getEventTypes()
The list of events that should cause notifications to be sent.
|
String |
getTransport()
The method Amazon Mechanical Turk uses to send the notification.
|
String |
getVersion()
The version of the Notification API to use.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestination(String destination)
The target for notification messages.
|
void |
setEventTypes(Collection<String> eventTypes)
The list of events that should cause notifications to be sent.
|
void |
setTransport(NotificationTransport transport)
The method Amazon Mechanical Turk uses to send the notification.
|
void |
setTransport(String transport)
The method Amazon Mechanical Turk uses to send the notification.
|
void |
setVersion(String version)
The version of the Notification API to use.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
NotificationSpecification |
withDestination(String destination)
The target for notification messages.
|
NotificationSpecification |
withEventTypes(Collection<String> eventTypes)
The list of events that should cause notifications to be sent.
|
NotificationSpecification |
withEventTypes(EventType... eventTypes)
The list of events that should cause notifications to be sent.
|
NotificationSpecification |
withEventTypes(String... eventTypes)
The list of events that should cause notifications to be sent.
|
NotificationSpecification |
withTransport(NotificationTransport transport)
The method Amazon Mechanical Turk uses to send the notification.
|
NotificationSpecification |
withTransport(String transport)
The method Amazon Mechanical Turk uses to send the notification.
|
NotificationSpecification |
withVersion(String version)
The version of the Notification API to use.
|
public void setDestination(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.
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.
public String getDestination()
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.
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.
public NotificationSpecification withDestination(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.
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.
public void setTransport(String transport)
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
transport
- The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.NotificationTransport
public String getTransport()
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
NotificationTransport
public NotificationSpecification withTransport(String transport)
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
transport
- The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.NotificationTransport
public void setTransport(NotificationTransport transport)
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
transport
- The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.NotificationTransport
public NotificationSpecification withTransport(NotificationTransport transport)
The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.
transport
- The method Amazon Mechanical Turk uses to send the notification. Valid Values: Email | SQS | SNS.NotificationTransport
public void setVersion(String version)
The version of the Notification API to use. Valid value is 2006-05-05.
version
- The version of the Notification API to use. Valid value is 2006-05-05.public String getVersion()
The version of the Notification API to use. Valid value is 2006-05-05.
public NotificationSpecification withVersion(String version)
The version of the Notification API to use. Valid value is 2006-05-05.
version
- The version of the Notification API to use. Valid value is 2006-05-05.public List<String> getEventTypes()
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 void setEventTypes(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.
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 withEventTypes(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.
NOTE: This method appends the values to the existing list (if any). Use
setEventTypes(java.util.Collection)
or withEventTypes(java.util.Collection)
if you want to
override the existing values.
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 withEventTypes(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.
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 withEventTypes(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.
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 String toString()
toString
in class Object
Object.toString()
public NotificationSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.