Class Event
- java.lang.Object
-
- software.amazon.awssdk.services.elasticache.model.Event
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Event.Builder,Event>
@Generated("software.amazon.awssdk:codegen") public final class Event extends Object implements SdkPojo, Serializable, 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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Event.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Event.Builder
builder()
Instant
date()
The date and time when the event occurred.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
message()
The text of the event.List<SdkField<?>>
sdkFields()
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()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
sourceIdentifier
public final 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.
- Returns:
- 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.
-
sourceType
public final 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 returnSourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsourceTypeAsString()
.- Returns:
- Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
- See Also:
SourceType
-
sourceTypeAsString
public final 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 returnSourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromsourceTypeAsString()
.- Returns:
- Specifies the origin of this event - a cluster, a parameter group, a security group, etc.
- See Also:
SourceType
-
message
public final String message()
The text of the event.
- Returns:
- The text of the event.
-
date
public final Instant date()
The date and time when the event occurred.
- Returns:
- The date and time when the event occurred.
-
toBuilder
public Event.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<Event.Builder,Event>
-
builder
public static Event.Builder builder()
-
serializableBuilderClass
public static Class<? extends Event.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-