@Generated(value="software.amazon.awssdk:codegen") public final class Event extends Object implements SdkPojo, Serializable, 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) |
boolean |
equalsBySdkFields(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) |
boolean |
hasEventCategories()
Returns true if the EventCategories property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
String |
message()
The text of this event.
|
List<SdkField<?>> |
sdkFields() |
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 |
sourceTypeAsString()
The source type for this event.
|
Event.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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
sourceTypeAsString().
SourceTypepublic String sourceTypeAsString()
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
sourceTypeAsString().
SourceTypepublic String message()
The text of this event.
public boolean hasEventCategories()
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.
You can use hasEventCategories() to see if a value was sent in this field.
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()
toBuilder in interface ToCopyableBuilder<Event.Builder,Event>public static Event.Builder builder()
public static Class<? extends Event.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.