@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventDestination extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about an event destination.
Event destinations are associated with configuration sets, which enable you to publish message sending events to Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS.
Constructor and Description |
---|
EventDestination() |
Modifier and Type | Method and Description |
---|---|
EventDestination |
clone() |
boolean |
equals(Object obj) |
CloudWatchLogsDestination |
getCloudWatchLogsDestination()
An object that contains information about an event destination that sends logging events to Amazon CloudWatch
logs.
|
Boolean |
getEnabled()
When set to true events will be logged.
|
String |
getEventDestinationName()
The name of the EventDestination.
|
KinesisFirehoseDestination |
getKinesisFirehoseDestination()
An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.
|
List<String> |
getMatchingEventTypes()
An array of event types that determine which events to log.
|
SnsDestination |
getSnsDestination()
An object that contains information about an event destination that sends logging events to Amazon SNS.
|
int |
hashCode() |
Boolean |
isEnabled()
When set to true events will be logged.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCloudWatchLogsDestination(CloudWatchLogsDestination cloudWatchLogsDestination)
An object that contains information about an event destination that sends logging events to Amazon CloudWatch
logs.
|
void |
setEnabled(Boolean enabled)
When set to true events will be logged.
|
void |
setEventDestinationName(String eventDestinationName)
The name of the EventDestination.
|
void |
setKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.
|
void |
setMatchingEventTypes(Collection<String> matchingEventTypes)
An array of event types that determine which events to log.
|
void |
setSnsDestination(SnsDestination snsDestination)
An object that contains information about an event destination that sends logging events to Amazon SNS.
|
String |
toString()
Returns a string representation of this object.
|
EventDestination |
withCloudWatchLogsDestination(CloudWatchLogsDestination cloudWatchLogsDestination)
An object that contains information about an event destination that sends logging events to Amazon CloudWatch
logs.
|
EventDestination |
withEnabled(Boolean enabled)
When set to true events will be logged.
|
EventDestination |
withEventDestinationName(String eventDestinationName)
The name of the EventDestination.
|
EventDestination |
withKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.
|
EventDestination |
withMatchingEventTypes(Collection<String> matchingEventTypes)
An array of event types that determine which events to log.
|
EventDestination |
withMatchingEventTypes(EventType... matchingEventTypes)
An array of event types that determine which events to log.
|
EventDestination |
withMatchingEventTypes(String... matchingEventTypes)
An array of event types that determine which events to log.
|
EventDestination |
withSnsDestination(SnsDestination snsDestination)
An object that contains information about an event destination that sends logging events to Amazon SNS.
|
public void setEventDestinationName(String eventDestinationName)
The name of the EventDestination.
eventDestinationName
- The name of the EventDestination.public String getEventDestinationName()
The name of the EventDestination.
public EventDestination withEventDestinationName(String eventDestinationName)
The name of the EventDestination.
eventDestinationName
- The name of the EventDestination.public void setEnabled(Boolean enabled)
When set to true events will be logged.
enabled
- When set to true events will be logged.public Boolean getEnabled()
When set to true events will be logged.
public EventDestination withEnabled(Boolean enabled)
When set to true events will be logged.
enabled
- When set to true events will be logged.public Boolean isEnabled()
When set to true events will be logged.
public List<String> getMatchingEventTypes()
An array of event types that determine which events to log.
EventType
public void setMatchingEventTypes(Collection<String> matchingEventTypes)
An array of event types that determine which events to log.
matchingEventTypes
- An array of event types that determine which events to log.EventType
public EventDestination withMatchingEventTypes(String... matchingEventTypes)
An array of event types that determine which events to log.
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 of event types that determine which events to log.EventType
public EventDestination withMatchingEventTypes(Collection<String> matchingEventTypes)
An array of event types that determine which events to log.
matchingEventTypes
- An array of event types that determine which events to log.EventType
public EventDestination withMatchingEventTypes(EventType... matchingEventTypes)
An array of event types that determine which events to log.
matchingEventTypes
- An array of event types that determine which events to log.EventType
public void setCloudWatchLogsDestination(CloudWatchLogsDestination cloudWatchLogsDestination)
An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.
cloudWatchLogsDestination
- An object that contains information about an event destination that sends logging events to Amazon
CloudWatch logs.public CloudWatchLogsDestination getCloudWatchLogsDestination()
An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.
public EventDestination withCloudWatchLogsDestination(CloudWatchLogsDestination cloudWatchLogsDestination)
An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.
cloudWatchLogsDestination
- An object that contains information about an event destination that sends logging events to Amazon
CloudWatch logs.public void setKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.
kinesisFirehoseDestination
- An object that contains information about an event destination for logging to Amazon Kinesis Data
Firehose.public KinesisFirehoseDestination getKinesisFirehoseDestination()
An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.
public EventDestination withKinesisFirehoseDestination(KinesisFirehoseDestination kinesisFirehoseDestination)
An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.
kinesisFirehoseDestination
- An object that contains information about an event destination for logging to Amazon Kinesis Data
Firehose.public void setSnsDestination(SnsDestination snsDestination)
An object that contains information about an event destination that sends logging events to Amazon SNS.
snsDestination
- An object that contains information about an event destination that sends logging events to Amazon SNS.public SnsDestination getSnsDestination()
An object that contains information about an event destination that sends logging events to Amazon SNS.
public EventDestination withSnsDestination(SnsDestination snsDestination)
An object that contains information about an event destination that sends logging events to Amazon SNS.
snsDestination
- An object that contains information about an event destination that sends logging events to Amazon SNS.public String toString()
toString
in class Object
Object.toString()
public EventDestination clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.