@Generated(value="software.amazon.awssdk:codegen") public class Event extends Object implements ToCopyableBuilder<Event.Builder,Event>
Describes an event.
Modifier and Type | Class and Description |
---|---|
static interface |
Event.Builder |
Modifier and Type | Method and Description |
---|---|
static Event.Builder |
builder() |
Instant |
date()
The date and time of the event.
|
boolean |
equals(Object obj) |
List<String> |
eventCategories()
A list of the event categories.
|
String |
eventId()
The identifier of the event.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
message()
The text of this event.
|
static Class<? extends Event.Builder> |
serializableBuilderClass() |
String |
severity()
The severity of the event.
|
String |
sourceIdentifier()
The identifier for the source of the event.
|
SourceType |
sourceType()
The source type for this event.
|
String |
sourceTypeString()
The source type for this event.
|
Event.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String sourceIdentifier()
The identifier for the source of the event.
public SourceType sourceType()
The source type for this event.
If the service returns an enum value that is not available in the current SDK version, sourceType
will
return SourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
sourceTypeString()
.
SourceType
public String sourceTypeString()
The source type for this event.
If the service returns an enum value that is not available in the current SDK version, sourceType
will
return SourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
sourceTypeString()
.
SourceType
public String message()
The text of this event.
public List<String> eventCategories()
A list of the event categories.
Values: Configuration, Management, Monitoring, Security
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Values: Configuration, Management, Monitoring, Security
public String severity()
The severity of the event.
Values: ERROR, INFO
Values: ERROR, INFO
public Instant date()
The date and time of the event.
public String eventId()
The identifier of the event.
public Event.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Event.Builder,Event>
public static Event.Builder builder()
public static Class<? extends Event.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.