@Generated(value="software.amazon.awssdk:codegen") public final class Event extends Object implements StructuredPojo, ToCopyableBuilder<Event.Builder,Event>
Represents a single occurrence of something interesting within the system. Some examples of events are creating a DAX cluster, adding or removing a node, or rebooting a node.
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 when the event occurred.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
message()
A user-defined message associated with the event.
|
static Class<? extends Event.Builder> |
serializableBuilderClass() |
String |
sourceName()
The source of the event.
|
SourceType |
sourceType()
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
|
String |
sourceTypeAsString()
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
|
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 sourceName()
The source of the event. For example, if the event occurred at the node level, the source would be the node ID.
public SourceType sourceType()
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
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()
.
SourceType
public String sourceTypeAsString()
Specifies the origin of this event - a cluster, a parameter group, a node ID, etc.
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()
.
SourceType
public String message()
A user-defined message associated with the event.
public Instant date()
The date and time when the event occurred.
public Event.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Event.Builder,Event>
public static Event.Builder builder()
public static Class<? extends Event.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.