/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.simpleemailv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* In the Amazon SES API v2, events include message sends, deliveries, opens, clicks, bounces, complaints and * delivery delays. Event destinations are places that you can send information about these events to. For * example, you can send event data to Amazon SNS to receive notifications when you receive bounces or complaints, or * you can use Amazon Kinesis Data Firehose to stream data to Amazon S3 for long-term storage. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EventDestination implements Serializable, Cloneable, StructuredPojo { /** *

* A name that identifies the event destination. *

*/ private String name; /** *

* 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. *

*/ private Boolean enabled; /** *

* The types of events that Amazon SES sends to the specified event destinations. *

* */ private java.util.List matchingEventTypes; /** *

* 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. *

*/ private KinesisFirehoseDestination kinesisFirehoseDestination; /** *

* 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. *

*/ private CloudWatchDestination cloudWatchDestination; /** *

* An object that defines an Amazon SNS destination for email events. You can use Amazon SNS to send notification * when certain email events occur. *

*/ private SnsDestination snsDestination; /** *

* An object that defines an Amazon Pinpoint project destination for email events. You can send email event data to * a Amazon Pinpoint project to view metrics using the Transactional Messaging dashboards that are built in to * Amazon Pinpoint. For more information, see Transactional * Messaging Charts in the Amazon Pinpoint User Guide. *

*/ private PinpointDestination pinpointDestination; /** *

* A name that identifies the event destination. *

* * @param name * A name that identifies the event destination. */ public void setName(String name) { this.name = name; } /** *

* A name that identifies the event destination. *

* * @return A name that identifies the event destination. */ public String getName() { return this.name; } /** *

* A name that identifies the event destination. *

* * @param name * A name that identifies the event destination. * @return Returns a reference to this object so that method calls can be chained together. */ public EventDestination withName(String name) { setName(name); return this; } /** *

* 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. *

* * @param 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 void setEnabled(Boolean enabled) { this.enabled = 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. *

* * @return 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() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public EventDestination withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** *

* 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. *

* * @return 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() { return this.enabled; } /** *

* The types of events that Amazon SES sends to the specified event destinations. *

* * * @return The types of events that Amazon SES sends to the specified event destinations.

*