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 interfaceEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Event.Builderbuilder()Instantdate()The date and time when the event occurred.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()The text of the event.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Event.Builder>serializableBuilderClass()StringsourceIdentifier()The identifier for the source of the event.SourceTypesourceType()Specifies the origin of this event - a cluster, a parameter group, a security group, etc.StringsourceTypeAsString()Specifies the origin of this event - a cluster, a parameter group, a security group, etc.Event.BuildertoBuilder()StringtoString()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,
sourceTypewill 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,
sourceTypewill 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-