public class EventDestination
extends java.lang.Object
implements java.io.Serializable
Contains information about the event destination that the specified email sending events will be published to.
When you create or update an event destination, you must provide one, and only one, destination. The destination can be Amazon CloudWatch, Amazon Kinesis Firehose or Amazon Simple Notification Service (Amazon SNS).
Event destinations are associated with configuration sets, which enable you to publish email sending events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple Notification Service (Amazon SNS). For information about using configuration sets, see the Amazon SES Developer Guide.
Constructor and Description |
---|
EventDestination() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
CloudWatchDestination |
getCloudWatchDestination()
An object that contains the names, default values, and sources of the
dimensions associated with an Amazon CloudWatch event destination.
|
java.lang.Boolean |
getEnabled()
Sets whether Amazon SES publishes events to this destination when you
send an email with the associated configuration set.
|
KinesisFirehoseDestination |
getKinesisFirehoseDestination()
An object that contains the delivery stream ARN and the IAM role ARN
associated with an Amazon Kinesis Firehose event destination.
|
java.util.List<java.lang.String> |
getMatchingEventTypes()
The type of email sending events to publish to the event destination.
|
java.lang.String |
getName()
The name of the event destination.
|
SNSDestination |
getSNSDestination()
An object that contains the topic ARN associated with an Amazon Simple
Notification Service (Amazon SNS) event destination.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Sets whether Amazon SES publishes events to this destination when you
send an email with the associated configuration set.
|
void |
setCloudWatchDestination(CloudWatchDestination cloudWatchDestination)
An object that contains the names, default values, and sources of the
dimensions associated with an Amazon CloudWatch event destination.
|
void |
setEnabled(java.lang.Boolean enabled)
Sets whether Amazon SES publishes events to this destination when you
send an email with the associated configuration set.
|
void |
setKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that contains the delivery stream ARN and the IAM role ARN
associated with an Amazon Kinesis Firehose event destination.
|
void |
setMatchingEventTypes(java.util.Collection<java.lang.String> matchingEventTypes)
The type of email sending events to publish to the event destination.
|
void |
setName(java.lang.String name)
The name of the event destination.
|
void |
setSNSDestination(SNSDestination sNSDestination)
An object that contains the topic ARN associated with an Amazon Simple
Notification Service (Amazon SNS) event destination.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventDestination |
withCloudWatchDestination(CloudWatchDestination cloudWatchDestination)
An object that contains the names, default values, and sources of the
dimensions associated with an Amazon CloudWatch event destination.
|
EventDestination |
withEnabled(java.lang.Boolean enabled)
Sets whether Amazon SES publishes events to this destination when you
send an email with the associated configuration set.
|
EventDestination |
withKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that contains the delivery stream ARN and the IAM role ARN
associated with an Amazon Kinesis Firehose event destination.
|
EventDestination |
withMatchingEventTypes(java.util.Collection<java.lang.String> matchingEventTypes)
The type of email sending events to publish to the event destination.
|
EventDestination |
withMatchingEventTypes(java.lang.String... matchingEventTypes)
The type of email sending events to publish to the event destination.
|
EventDestination |
withName(java.lang.String name)
The name of the event destination.
|
EventDestination |
withSNSDestination(SNSDestination sNSDestination)
An object that contains the topic ARN associated with an Amazon Simple
Notification Service (Amazon SNS) event destination.
|
public java.lang.String getName()
The name of the event destination. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 64 characters.
The name of the event destination. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 64 characters.
public void setName(java.lang.String name)
The name of the event destination. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 64 characters.
name
- The name of the event destination. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 64 characters.
public EventDestination withName(java.lang.String name)
The name of the event destination. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 64 characters.
Returns a reference to this object so that method calls can be chained together.
name
- The name of the event destination. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Contain less than 64 characters.
public java.lang.Boolean isEnabled()
Sets whether Amazon SES publishes events to this destination when you
send an email with the associated configuration set. Set to
true
to enable publishing to this destination; set to
false
to prevent publishing to this destination. The default
value is false
.
Sets whether Amazon SES publishes events to this destination when
you send an email with the associated configuration set. Set to
true
to enable publishing to this destination; set
to false
to prevent publishing to this destination.
The default value is false
.
public java.lang.Boolean getEnabled()
Sets whether Amazon SES publishes events to this destination when you
send an email with the associated configuration set. Set to
true
to enable publishing to this destination; set to
false
to prevent publishing to this destination. The default
value is false
.
Sets whether Amazon SES publishes events to this destination when
you send an email with the associated configuration set. Set to
true
to enable publishing to this destination; set
to false
to prevent publishing to this destination.
The default value is false
.
public void setEnabled(java.lang.Boolean enabled)
Sets whether Amazon SES publishes events to this destination when you
send an email with the associated configuration set. Set to
true
to enable publishing to this destination; set to
false
to prevent publishing to this destination. The default
value is false
.
enabled
-
Sets whether Amazon SES publishes events to this destination
when you send an email with the associated configuration set.
Set to true
to enable publishing to this
destination; set to false
to prevent publishing
to this destination. The default value is false
.
public EventDestination withEnabled(java.lang.Boolean enabled)
Sets whether Amazon SES publishes events to this destination when you
send an email with the associated configuration set. Set to
true
to enable publishing to this destination; set to
false
to prevent publishing to this destination. The default
value is false
.
Returns a reference to this object so that method calls can be chained together.
enabled
-
Sets whether Amazon SES publishes events to this destination
when you send an email with the associated configuration set.
Set to true
to enable publishing to this
destination; set to false
to prevent publishing
to this destination. The default value is false
.
public java.util.List<java.lang.String> getMatchingEventTypes()
The type of email sending events to publish to the event destination.
The type of email sending events to publish to the event destination.
public void setMatchingEventTypes(java.util.Collection<java.lang.String> matchingEventTypes)
The type of email sending events to publish to the event destination.
matchingEventTypes
- The type of email sending events to publish to the event destination.
public EventDestination withMatchingEventTypes(java.lang.String... matchingEventTypes)
The type of email sending events to publish to the event destination.
Returns a reference to this object so that method calls can be chained together.
matchingEventTypes
- The type of email sending events to publish to the event destination.
public EventDestination withMatchingEventTypes(java.util.Collection<java.lang.String> matchingEventTypes)
The type of email sending events to publish to the event destination.
Returns a reference to this object so that method calls can be chained together.
matchingEventTypes
- The type of email sending events to publish to the event destination.
public KinesisFirehoseDestination getKinesisFirehoseDestination()
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
public void setKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
kinesisFirehoseDestination
- An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
public EventDestination withKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
Returns a reference to this object so that method calls can be chained together.
kinesisFirehoseDestination
- An object that contains the delivery stream ARN and the IAM role ARN associated with an Amazon Kinesis Firehose event destination.
public CloudWatchDestination getCloudWatchDestination()
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
public void setCloudWatchDestination(CloudWatchDestination cloudWatchDestination)
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
cloudWatchDestination
- An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
public EventDestination withCloudWatchDestination(CloudWatchDestination cloudWatchDestination)
An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
Returns a reference to this object so that method calls can be chained together.
cloudWatchDestination
- An object that contains the names, default values, and sources of the dimensions associated with an Amazon CloudWatch event destination.
public SNSDestination getSNSDestination()
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
public void setSNSDestination(SNSDestination sNSDestination)
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
sNSDestination
- An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
public EventDestination withSNSDestination(SNSDestination sNSDestination)
An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
Returns a reference to this object so that method calls can be chained together.
sNSDestination
- An object that contains the topic ARN associated with an Amazon Simple Notification Service (Amazon SNS) event destination.
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.