public class Notification extends Object implements Serializable, Cloneable
The Amazon Simple Notification Service (Amazon SNS) notification settings
associated with a specific job. The Notification object is
returned as a part of the response syntax of the DescribeJob
action in the JobMetadata data type.
When the notification settings are defined during job creation, you can
choose to notify based on a specific set of job states using the
JobStatesToNotify array of strings, or you can specify that you
want to have Amazon SNS notifications sent out for all job states with
NotifyAll set to true.
| Constructor and Description |
|---|
Notification() |
| Modifier and Type | Method and Description |
|---|---|
Notification |
clone() |
boolean |
equals(Object obj) |
List<String> |
getJobStatesToNotify() |
Boolean |
getNotifyAll() |
String |
getSnsTopicARN()
The new SNS
TopicArn that you want to associate with this
job. |
int |
hashCode() |
Boolean |
isNotifyAll() |
void |
setJobStatesToNotify(Collection<String> jobStatesToNotify) |
void |
setNotifyAll(Boolean notifyAll) |
void |
setSnsTopicARN(String snsTopicARN)
The new SNS
TopicArn that you want to associate with this
job. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Notification |
withJobStatesToNotify(Collection<String> jobStatesToNotify) |
Notification |
withJobStatesToNotify(JobState... jobStatesToNotify) |
Notification |
withJobStatesToNotify(String... jobStatesToNotify) |
Notification |
withNotifyAll(Boolean notifyAll) |
Notification |
withSnsTopicARN(String snsTopicARN)
The new SNS
TopicArn that you want to associate with this
job. |
public void setSnsTopicARN(String snsTopicARN)
The new SNS TopicArn that you want to associate with this
job. You can create Amazon Resource Names (ARNs) for topics by using the
CreateTopic Amazon SNS API action.
Note that you can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
snsTopicARN - The new SNS TopicArn that you want to associate with
this job. You can create Amazon Resource Names (ARNs) for topics
by using the CreateTopic Amazon SNS API action.
Note that you can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
public String getSnsTopicARN()
The new SNS TopicArn that you want to associate with this
job. You can create Amazon Resource Names (ARNs) for topics by using the
CreateTopic Amazon SNS API action.
Note that you can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
TopicArn that you want to associate with
this job. You can create Amazon Resource Names (ARNs) for topics
by using the CreateTopic Amazon SNS API action.
Note that you can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
public Notification withSnsTopicARN(String snsTopicARN)
The new SNS TopicArn that you want to associate with this
job. You can create Amazon Resource Names (ARNs) for topics by using the
CreateTopic Amazon SNS API action.
Note that you can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
snsTopicARN - The new SNS TopicArn that you want to associate with
this job. You can create Amazon Resource Names (ARNs) for topics
by using the CreateTopic Amazon SNS API action.
Note that you can subscribe email addresses to an Amazon SNS topic through the AWS Management Console, or by using the Subscribe AWS Simple Notification Service (SNS) API action.
public void setJobStatesToNotify(Collection<String> jobStatesToNotify)
jobStatesToNotify - JobStatepublic Notification withJobStatesToNotify(String... jobStatesToNotify)
NOTE: This method appends the values to the existing list (if
any). Use setJobStatesToNotify(java.util.Collection) or
withJobStatesToNotify(java.util.Collection) if you want to
override the existing values.
jobStatesToNotify - JobStatepublic Notification withJobStatesToNotify(Collection<String> jobStatesToNotify)
jobStatesToNotify - JobStatepublic Notification withJobStatesToNotify(JobState... jobStatesToNotify)
jobStatesToNotify - JobStatepublic void setNotifyAll(Boolean notifyAll)
notifyAll - public Boolean getNotifyAll()
public Notification withNotifyAll(Boolean notifyAll)
notifyAll - public Boolean isNotifyAll()
public String toString()
toString in class ObjectObject.toString()public Notification clone()
Copyright © 2016. All rights reserved.