@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventDestinationDefinition extends Object implements Serializable, Cloneable, StructuredPojo
An object that defines the event destination. Specifically, it defines which services receive events from emails sent using the configuration set that the event destination is associated with. Also defines the types of events that are sent to the event destination.
Constructor and Description |
---|
EventDestinationDefinition() |
Modifier and Type | Method and Description |
---|---|
EventDestinationDefinition |
clone() |
boolean |
equals(Object obj) |
CloudWatchDestination |
getCloudWatchDestination()
An object that defines an Amazon CloudWatch destination for email events.
|
Boolean |
getEnabled()
If
true , the event destination is enabled. |
KinesisFirehoseDestination |
getKinesisFirehoseDestination()
An object that defines an Amazon Kinesis Data Firehose destination for email events.
|
List<String> |
getMatchingEventTypes()
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition . |
PinpointDestination |
getPinpointDestination()
An object that defines a Amazon Pinpoint destination for email events.
|
SnsDestination |
getSnsDestination()
An object that defines an Amazon SNS destination for email events.
|
int |
hashCode() |
Boolean |
isEnabled()
If
true , the event destination is enabled. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCloudWatchDestination(CloudWatchDestination cloudWatchDestination)
An object that defines an Amazon CloudWatch destination for email events.
|
void |
setEnabled(Boolean enabled)
If
true , the event destination is enabled. |
void |
setKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that defines an Amazon Kinesis Data Firehose destination for email events.
|
void |
setMatchingEventTypes(Collection<String> matchingEventTypes)
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition . |
void |
setPinpointDestination(PinpointDestination pinpointDestination)
An object that defines a Amazon Pinpoint destination for email events.
|
void |
setSnsDestination(SnsDestination snsDestination)
An object that defines an Amazon SNS destination for email events.
|
String |
toString()
Returns a string representation of this object.
|
EventDestinationDefinition |
withCloudWatchDestination(CloudWatchDestination cloudWatchDestination)
An object that defines an Amazon CloudWatch destination for email events.
|
EventDestinationDefinition |
withEnabled(Boolean enabled)
If
true , the event destination is enabled. |
EventDestinationDefinition |
withKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that defines an Amazon Kinesis Data Firehose destination for email events.
|
EventDestinationDefinition |
withMatchingEventTypes(Collection<String> matchingEventTypes)
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition . |
EventDestinationDefinition |
withMatchingEventTypes(EventType... matchingEventTypes)
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition . |
EventDestinationDefinition |
withMatchingEventTypes(String... matchingEventTypes)
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition . |
EventDestinationDefinition |
withPinpointDestination(PinpointDestination pinpointDestination)
An object that defines a Amazon Pinpoint destination for email events.
|
EventDestinationDefinition |
withSnsDestination(SnsDestination snsDestination)
An object that defines an Amazon SNS destination for email events.
|
public void setEnabled(Boolean enabled)
If true
, the event destination is enabled. When the event destination is enabled, the specified
event types are sent to the destinations in this EventDestinationDefinition
.
If false
, the event destination is disabled. When the event destination is disabled, events aren't
sent to the specified destinations.
enabled
- If true
, the event destination is enabled. When the event destination is enabled, the
specified event types are sent to the destinations in this EventDestinationDefinition
.
If false
, the event destination is disabled. When the event destination is disabled, events
aren't sent to the specified destinations.
public Boolean getEnabled()
If true
, the event destination is enabled. When the event destination is enabled, the specified
event types are sent to the destinations in this EventDestinationDefinition
.
If false
, the event destination is disabled. When the event destination is disabled, events aren't
sent to the specified destinations.
true
, the event destination is enabled. When the event destination is enabled, the
specified event types are sent to the destinations in this EventDestinationDefinition
.
If false
, the event destination is disabled. When the event destination is disabled, events
aren't sent to the specified destinations.
public EventDestinationDefinition withEnabled(Boolean enabled)
If true
, the event destination is enabled. When the event destination is enabled, the specified
event types are sent to the destinations in this EventDestinationDefinition
.
If false
, the event destination is disabled. When the event destination is disabled, events aren't
sent to the specified destinations.
enabled
- If true
, the event destination is enabled. When the event destination is enabled, the
specified event types are sent to the destinations in this EventDestinationDefinition
.
If false
, the event destination is disabled. When the event destination is disabled, events
aren't sent to the specified destinations.
public Boolean isEnabled()
If true
, the event destination is enabled. When the event destination is enabled, the specified
event types are sent to the destinations in this EventDestinationDefinition
.
If false
, the event destination is disabled. When the event destination is disabled, events aren't
sent to the specified destinations.
true
, the event destination is enabled. When the event destination is enabled, the
specified event types are sent to the destinations in this EventDestinationDefinition
.
If false
, the event destination is disabled. When the event destination is disabled, events
aren't sent to the specified destinations.
public List<String> getMatchingEventTypes()
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.
EventDestinationDefinition
.EventType
public void setMatchingEventTypes(Collection<String> matchingEventTypes)
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.
matchingEventTypes
- An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.EventType
public EventDestinationDefinition withMatchingEventTypes(String... matchingEventTypes)
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.
NOTE: This method appends the values to the existing list (if any). Use
setMatchingEventTypes(java.util.Collection)
or withMatchingEventTypes(java.util.Collection)
if
you want to override the existing values.
matchingEventTypes
- An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.EventType
public EventDestinationDefinition withMatchingEventTypes(Collection<String> matchingEventTypes)
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.
matchingEventTypes
- An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.EventType
public EventDestinationDefinition withMatchingEventTypes(EventType... matchingEventTypes)
An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.
matchingEventTypes
- An array that specifies which events Amazon Pinpoint should send to the destinations in this
EventDestinationDefinition
.EventType
public void setKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.
kinesisFirehoseDestination
- An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon
Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.public KinesisFirehoseDestination getKinesisFirehoseDestination()
An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.
public EventDestinationDefinition withKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.
kinesisFirehoseDestination
- An object that defines an Amazon Kinesis Data Firehose destination for email events. You can use Amazon
Kinesis Data Firehose to stream data to other services, such as Amazon S3 and Amazon Redshift.public void setCloudWatchDestination(CloudWatchDestination cloudWatchDestination)
An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.
cloudWatchDestination
- An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to
monitor and gain insights on your email sending metrics.public CloudWatchDestination getCloudWatchDestination()
An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.
public EventDestinationDefinition withCloudWatchDestination(CloudWatchDestination cloudWatchDestination)
An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to monitor and gain insights on your email sending metrics.
cloudWatchDestination
- An object that defines an Amazon CloudWatch destination for email events. You can use Amazon CloudWatch to
monitor and gain insights on your email sending metrics.public void setSnsDestination(SnsDestination snsDestination)
An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.
snsDestination
- An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send
notification when certain email events occur.public SnsDestination getSnsDestination()
An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.
public EventDestinationDefinition withSnsDestination(SnsDestination snsDestination)
An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification when certain email events occur.
snsDestination
- An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send
notification when certain email events occur.public void setPinpointDestination(PinpointDestination pinpointDestination)
An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.
pinpointDestination
- An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events
to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your
campaigns.public PinpointDestination getPinpointDestination()
An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.
public EventDestinationDefinition withPinpointDestination(PinpointDestination pinpointDestination)
An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your campaigns.
pinpointDestination
- An object that defines a Amazon Pinpoint destination for email events. You can use Amazon Pinpoint events
to create attributes in Amazon Pinpoint projects. You can use these attributes to create segments for your
campaigns.public String toString()
toString
in class Object
Object.toString()
public EventDestinationDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.