public class SetIdentityNotificationTopicRequest extends AmazonWebServiceRequest implements java.io.Serializable
Sets an Amazon Simple Notification Service (Amazon SNS) topic to use when delivering notifications. When you use this operation, you specify a verified identity, such as an email address or domain. When you send an email that uses the chosen identity in the Source field, Amazon SES sends notifications to the topic you specified. You can send bounce, complaint, or delivery notifications (or any combination of the three) to the Amazon SNS topic that you specify.
You can execute this operation no more than once per second.
For more information about feedback notification, see the Amazon SES Developer Guide.
Constructor and Description |
---|
SetIdentityNotificationTopicRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIdentity()
The identity (email address or domain) that you want to set the Amazon
SNS topic for.
|
java.lang.String |
getNotificationType()
The type of notifications that will be published to the specified Amazon
SNS topic.
|
java.lang.String |
getSnsTopic()
The Amazon Resource Name (ARN) of the Amazon SNS topic.
|
int |
hashCode() |
void |
setIdentity(java.lang.String identity)
The identity (email address or domain) that you want to set the Amazon
SNS topic for.
|
void |
setNotificationType(NotificationType notificationType)
The type of notifications that will be published to the specified Amazon
SNS topic.
|
void |
setNotificationType(java.lang.String notificationType)
The type of notifications that will be published to the specified Amazon
SNS topic.
|
void |
setSnsTopic(java.lang.String snsTopic)
The Amazon Resource Name (ARN) of the Amazon SNS topic.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetIdentityNotificationTopicRequest |
withIdentity(java.lang.String identity)
The identity (email address or domain) that you want to set the Amazon
SNS topic for.
|
SetIdentityNotificationTopicRequest |
withNotificationType(NotificationType notificationType)
The type of notifications that will be published to the specified Amazon
SNS topic.
|
SetIdentityNotificationTopicRequest |
withNotificationType(java.lang.String notificationType)
The type of notifications that will be published to the specified Amazon
SNS topic.
|
SetIdentityNotificationTopicRequest |
withSnsTopic(java.lang.String snsTopic)
The Amazon Resource Name (ARN) of the Amazon SNS topic.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getIdentity()
The identity (email address or domain) that you want to set the Amazon SNS topic for.
You can only specify a verified identity for this parameter.
You can specify an identity by using its name or by using its Amazon
Resource Name (ARN). The following examples are all valid identities:
sender@example.com
, example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
The identity (email address or domain) that you want to set the Amazon SNS topic for.
You can only specify a verified identity for this parameter.
You can specify an identity by using its name or by using its
Amazon Resource Name (ARN). The following examples are all valid
identities: sender@example.com
,
example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
public void setIdentity(java.lang.String identity)
The identity (email address or domain) that you want to set the Amazon SNS topic for.
You can only specify a verified identity for this parameter.
You can specify an identity by using its name or by using its Amazon
Resource Name (ARN). The following examples are all valid identities:
sender@example.com
, example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
identity
- The identity (email address or domain) that you want to set the Amazon SNS topic for.
You can only specify a verified identity for this parameter.
You can specify an identity by using its name or by using its
Amazon Resource Name (ARN). The following examples are all
valid identities: sender@example.com
,
example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
public SetIdentityNotificationTopicRequest withIdentity(java.lang.String identity)
The identity (email address or domain) that you want to set the Amazon SNS topic for.
You can only specify a verified identity for this parameter.
You can specify an identity by using its name or by using its Amazon
Resource Name (ARN). The following examples are all valid identities:
sender@example.com
, example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
Returns a reference to this object so that method calls can be chained together.
identity
- The identity (email address or domain) that you want to set the Amazon SNS topic for.
You can only specify a verified identity for this parameter.
You can specify an identity by using its name or by using its
Amazon Resource Name (ARN). The following examples are all
valid identities: sender@example.com
,
example.com
,
arn:aws:ses:us-east-1:123456789012:identity/example.com
.
public java.lang.String getNotificationType()
The type of notifications that will be published to the specified Amazon SNS topic.
Constraints:
Allowed Values: Bounce, Complaint, Delivery
The type of notifications that will be published to the specified Amazon SNS topic.
NotificationType
public void setNotificationType(java.lang.String notificationType)
The type of notifications that will be published to the specified Amazon SNS topic.
Constraints:
Allowed Values: Bounce, Complaint, Delivery
notificationType
- The type of notifications that will be published to the specified Amazon SNS topic.
NotificationType
public SetIdentityNotificationTopicRequest withNotificationType(java.lang.String notificationType)
The type of notifications that will be published to the specified Amazon SNS topic.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Bounce, Complaint, Delivery
notificationType
- The type of notifications that will be published to the specified Amazon SNS topic.
NotificationType
public void setNotificationType(NotificationType notificationType)
The type of notifications that will be published to the specified Amazon SNS topic.
Constraints:
Allowed Values: Bounce, Complaint, Delivery
notificationType
- The type of notifications that will be published to the specified Amazon SNS topic.
NotificationType
public SetIdentityNotificationTopicRequest withNotificationType(NotificationType notificationType)
The type of notifications that will be published to the specified Amazon SNS topic.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Bounce, Complaint, Delivery
notificationType
- The type of notifications that will be published to the specified Amazon SNS topic.
NotificationType
public java.lang.String getSnsTopic()
The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter
is omitted from the request or a null value is passed,
SnsTopic
is cleared and publishing is disabled.
The Amazon Resource Name (ARN) of the Amazon SNS topic. If the
parameter is omitted from the request or a null value is passed,
SnsTopic
is cleared and publishing is disabled.
public void setSnsTopic(java.lang.String snsTopic)
The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter
is omitted from the request or a null value is passed,
SnsTopic
is cleared and publishing is disabled.
snsTopic
-
The Amazon Resource Name (ARN) of the Amazon SNS topic. If the
parameter is omitted from the request or a null value is
passed, SnsTopic
is cleared and publishing is
disabled.
public SetIdentityNotificationTopicRequest withSnsTopic(java.lang.String snsTopic)
The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter
is omitted from the request or a null value is passed,
SnsTopic
is cleared and publishing is disabled.
Returns a reference to this object so that method calls can be chained together.
snsTopic
-
The Amazon Resource Name (ARN) of the Amazon SNS topic. If the
parameter is omitted from the request or a null value is
passed, SnsTopic
is cleared and publishing is
disabled.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.