@Generated(value="software.amazon.awssdk:codegen") public final class Event extends Object implements ToCopyableBuilder<Event.Builder,Event>
Represents a single occurrence of something interesting within the system. Some examples of events are creating a cluster, adding or removing a cache 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() |
String |
message()
The text of the event.
|
static Class<? extends Event.Builder> |
serializableBuilderClass() |
String |
sourceIdentifier()
The identifier for the source of the event.
|
SourceType |
sourceType()
Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
|
String |
sourceTypeAsString()
Specifies the origin of this event - a cluster, a parameter group, a security group, 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 sourceIdentifier()
The identifier for the source of the event. For example, if the event occurred at the cluster level, the identifier would be the name of the cluster.
public SourceType sourceType()
Specifies the origin of this event - a cluster, a parameter group, a security group, 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 security group, 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()
The text of 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()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.