@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable
This data type is used as a response element in the DescribeEvents action.
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(Object obj) |
Date |
getDate()
Specifies the date and time of the event.
|
List<String> |
getEventCategories()
Specifies the category for the event.
|
String |
getMessage()
Provides the text of this event.
|
String |
getSourceArn()
The Amazon Resource Name (ARN) for the event.
|
String |
getSourceIdentifier()
Provides the identifier for the source of the event.
|
String |
getSourceType()
Specifies the source type for this event.
|
int |
hashCode() |
void |
setDate(Date date)
Specifies the date and time of the event.
|
void |
setEventCategories(Collection<String> eventCategories)
Specifies the category for the event.
|
void |
setMessage(String message)
Provides the text of this event.
|
void |
setSourceArn(String sourceArn)
The Amazon Resource Name (ARN) for the event.
|
void |
setSourceIdentifier(String sourceIdentifier)
Provides the identifier for the source of the event.
|
void |
setSourceType(SourceType sourceType)
Specifies the source type for this event.
|
void |
setSourceType(String sourceType)
Specifies the source type for this event.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Event |
withDate(Date date)
Specifies the date and time of the event.
|
Event |
withEventCategories(Collection<String> eventCategories)
Specifies the category for the event.
|
Event |
withEventCategories(String... eventCategories)
Specifies the category for the event.
|
Event |
withMessage(String message)
Provides the text of this event.
|
Event |
withSourceArn(String sourceArn)
The Amazon Resource Name (ARN) for the event.
|
Event |
withSourceIdentifier(String sourceIdentifier)
Provides the identifier for the source of the event.
|
Event |
withSourceType(SourceType sourceType)
Specifies the source type for this event.
|
Event |
withSourceType(String sourceType)
Specifies the source type for this event.
|
public void setSourceIdentifier(String sourceIdentifier)
Provides the identifier for the source of the event.
sourceIdentifier
- Provides the identifier for the source of the event.public String getSourceIdentifier()
Provides the identifier for the source of the event.
public Event withSourceIdentifier(String sourceIdentifier)
Provides the identifier for the source of the event.
sourceIdentifier
- Provides the identifier for the source of the event.public void setSourceType(String sourceType)
Specifies the source type for this event.
sourceType
- Specifies the source type for this event.SourceType
public String getSourceType()
Specifies the source type for this event.
SourceType
public Event withSourceType(String sourceType)
Specifies the source type for this event.
sourceType
- Specifies the source type for this event.SourceType
public void setSourceType(SourceType sourceType)
Specifies the source type for this event.
sourceType
- Specifies the source type for this event.SourceType
public Event withSourceType(SourceType sourceType)
Specifies the source type for this event.
sourceType
- Specifies the source type for this event.SourceType
public void setMessage(String message)
Provides the text of this event.
message
- Provides the text of this event.public String getMessage()
Provides the text of this event.
public Event withMessage(String message)
Provides the text of this event.
message
- Provides the text of this event.public List<String> getEventCategories()
Specifies the category for the event.
public void setEventCategories(Collection<String> eventCategories)
Specifies the category for the event.
eventCategories
- Specifies the category for the event.public Event withEventCategories(String... eventCategories)
Specifies the category for the event.
NOTE: This method appends the values to the existing list (if any). Use
setEventCategories(java.util.Collection)
or withEventCategories(java.util.Collection)
if you
want to override the existing values.
eventCategories
- Specifies the category for the event.public Event withEventCategories(Collection<String> eventCategories)
Specifies the category for the event.
eventCategories
- Specifies the category for the event.public void setDate(Date date)
Specifies the date and time of the event.
date
- Specifies the date and time of the event.public Date getDate()
Specifies the date and time of the event.
public Event withDate(Date date)
Specifies the date and time of the event.
date
- Specifies the date and time of the event.public void setSourceArn(String sourceArn)
The Amazon Resource Name (ARN) for the event.
sourceArn
- The Amazon Resource Name (ARN) for the event.public String getSourceArn()
The Amazon Resource Name (ARN) for the event.
public Event withSourceArn(String sourceArn)
The Amazon Resource Name (ARN) for the event.
sourceArn
- The Amazon Resource Name (ARN) for the event.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.