Class InstanceStatusEvent
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InstanceStatusEvent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceStatusEvent.Builder,InstanceStatusEvent>
@Generated("software.amazon.awssdk:codegen") public final class InstanceStatusEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceStatusEvent.Builder,InstanceStatusEvent>
Describes a scheduled event for an instance.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceStatusEvent.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceStatusEvent.Builderbuilder()EventCodecode()The event code.StringcodeAsString()The event code.Stringdescription()A description of the event.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceEventId()The ID of the event.InstantnotAfter()The latest scheduled end time for the event.InstantnotBefore()The earliest scheduled start time for the event.InstantnotBeforeDeadline()The deadline for starting the event.List<SdkField<?>>sdkFields()static Class<? extends InstanceStatusEvent.Builder>serializableBuilderClass()InstanceStatusEvent.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
-
instanceEventId
public final String instanceEventId()
The ID of the event.
- Returns:
- The ID of the event.
-
code
public final EventCode code()
The event code.
If the service returns an enum value that is not available in the current SDK version,
codewill returnEventCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The event code.
- See Also:
EventCode
-
codeAsString
public final String codeAsString()
The event code.
If the service returns an enum value that is not available in the current SDK version,
codewill returnEventCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The event code.
- See Also:
EventCode
-
description
public final String description()
A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
- Returns:
- A description of the event.
After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].
-
notAfter
public final Instant notAfter()
The latest scheduled end time for the event.
- Returns:
- The latest scheduled end time for the event.
-
notBefore
public final Instant notBefore()
The earliest scheduled start time for the event.
- Returns:
- The earliest scheduled start time for the event.
-
notBeforeDeadline
public final Instant notBeforeDeadline()
The deadline for starting the event.
- Returns:
- The deadline for starting the event.
-
toBuilder
public InstanceStatusEvent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceStatusEvent.Builder,InstanceStatusEvent>
-
builder
public static InstanceStatusEvent.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceStatusEvent.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.
-
-