@Generated(value="software.amazon.awssdk:codegen") public final class Event extends Object implements StructuredPojo, ToCopyableBuilder<Event.Builder,Event>
Summary information about an event, returned by the DescribeEvents operation. The DescribeEventDetails operation also returns this information, as well as the EventDescription and additional event metadata.
Modifier and Type | Class and Description |
---|---|
static interface |
Event.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The unique identifier for the event.
|
String |
availabilityZone()
The AWS Availability Zone of the event.
|
static Event.Builder |
builder() |
Instant |
endTime()
The date and time that the event ended.
|
boolean |
equals(Object obj) |
EventTypeCategory |
eventTypeCategory()
The
|
String |
eventTypeCategoryAsString()
The
|
String |
eventTypeCode()
The unique identifier for the event type.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedTime()
The most recent date and time that the event was updated.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
region()
The AWS region name of the event.
|
static Class<? extends Event.Builder> |
serializableBuilderClass() |
String |
service()
The AWS service that is affected by the event.
|
Instant |
startTime()
The date and time that the event began.
|
EventStatusCode |
statusCode()
The most recent status of the event.
|
String |
statusCodeAsString()
The most recent status of the event.
|
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 arn()
The unique identifier for the event. Format:
arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID
. Example:
arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331
arn:aws:health:event-region::event/EVENT_TYPE_PLUS_ID
. Example:
arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331
public String service()
The AWS service that is affected by the event. For example, EC2
, RDS
.
EC2
, RDS
.public String eventTypeCode()
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
AWS_SERVICE_DESCRIPTION
; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.public EventTypeCategory eventTypeCategory()
The
If the service returns an enum value that is not available in the current SDK version, eventTypeCategory
will return EventTypeCategory.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from eventTypeCategoryAsString()
.
EventTypeCategory
public String eventTypeCategoryAsString()
The
If the service returns an enum value that is not available in the current SDK version, eventTypeCategory
will return EventTypeCategory.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from eventTypeCategoryAsString()
.
EventTypeCategory
public String region()
The AWS region name of the event.
public String availabilityZone()
The AWS Availability Zone of the event. For example, us-east-1a.
public Instant startTime()
The date and time that the event began.
public Instant endTime()
The date and time that the event ended.
public Instant lastUpdatedTime()
The most recent date and time that the event was updated.
public EventStatusCode statusCode()
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
If the service returns an enum value that is not available in the current SDK version, statusCode
will
return EventStatusCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusCodeAsString()
.
open
, closed
, and
upcoming
.EventStatusCode
public String statusCodeAsString()
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
If the service returns an enum value that is not available in the current SDK version, statusCode
will
return EventStatusCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
statusCodeAsString()
.
open
, closed
, and
upcoming
.EventStatusCode
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.