@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Event extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
Event |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The unique identifier for the event.
|
String |
getAvailabilityZone()
The AWS Availability Zone of the event.
|
Date |
getEndTime()
The date and time that the event ended.
|
String |
getEventTypeCategory()
The
|
String |
getEventTypeCode()
The unique identifier for the event type.
|
Date |
getLastUpdatedTime()
The most recent date and time that the event was updated.
|
String |
getRegion()
The AWS region name of the event.
|
String |
getService()
The AWS service that is affected by the event.
|
Date |
getStartTime()
The date and time that the event began.
|
String |
getStatusCode()
The most recent status of the event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The unique identifier for the event.
|
void |
setAvailabilityZone(String availabilityZone)
The AWS Availability Zone of the event.
|
void |
setEndTime(Date endTime)
The date and time that the event ended.
|
void |
setEventTypeCategory(EventTypeCategory eventTypeCategory)
The
|
void |
setEventTypeCategory(String eventTypeCategory)
The
|
void |
setEventTypeCode(String eventTypeCode)
The unique identifier for the event type.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
|
void |
setRegion(String region)
The AWS region name of the event.
|
void |
setService(String service)
The AWS service that is affected by the event.
|
void |
setStartTime(Date startTime)
The date and time that the event began.
|
void |
setStatusCode(EventStatusCode statusCode)
The most recent status of the event.
|
void |
setStatusCode(String statusCode)
The most recent status of the event.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Event |
withArn(String arn)
The unique identifier for the event.
|
Event |
withAvailabilityZone(String availabilityZone)
The AWS Availability Zone of the event.
|
Event |
withEndTime(Date endTime)
The date and time that the event ended.
|
Event |
withEventTypeCategory(EventTypeCategory eventTypeCategory)
The
|
Event |
withEventTypeCategory(String eventTypeCategory)
The
|
Event |
withEventTypeCode(String eventTypeCode)
The unique identifier for the event type.
|
Event |
withLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
|
Event |
withRegion(String region)
The AWS region name of the event.
|
Event |
withService(String service)
The AWS service that is affected by the event.
|
Event |
withStartTime(Date startTime)
The date and time that the event began.
|
Event |
withStatusCode(EventStatusCode statusCode)
The most recent status of the event.
|
Event |
withStatusCode(String statusCode)
The most recent status of the event.
|
public void setArn(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
- 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
public String getArn()
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 Event withArn(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
- 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
public void setService(String service)
The AWS service that is affected by the event. For example, EC2
, RDS
.
service
- The AWS service that is affected by the event. For example, EC2
, RDS
.public String getService()
The AWS service that is affected by the event. For example, EC2
, RDS
.
EC2
, RDS
.public Event withService(String service)
The AWS service that is affected by the event. For example, EC2
, RDS
.
service
- The AWS service that is affected by the event. For example, EC2
, RDS
.public void setEventTypeCode(String eventTypeCode)
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
eventTypeCode
- The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION
; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.public String getEventTypeCode()
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 Event withEventTypeCode(String eventTypeCode)
The unique identifier for the event type. The format is AWS_SERVICE_DESCRIPTION
; for
example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.
eventTypeCode
- The unique identifier for the event type. The format is
AWS_SERVICE_DESCRIPTION
; for example,
AWS_EC2_SYSTEM_MAINTENANCE_EVENT
.public void setEventTypeCategory(String eventTypeCategory)
The
eventTypeCategory
- TheEventTypeCategory
public String getEventTypeCategory()
The
EventTypeCategory
public Event withEventTypeCategory(String eventTypeCategory)
The
eventTypeCategory
- TheEventTypeCategory
public void setEventTypeCategory(EventTypeCategory eventTypeCategory)
The
eventTypeCategory
- TheEventTypeCategory
public Event withEventTypeCategory(EventTypeCategory eventTypeCategory)
The
eventTypeCategory
- TheEventTypeCategory
public void setRegion(String region)
The AWS region name of the event.
region
- The AWS region name of the event.public String getRegion()
The AWS region name of the event.
public Event withRegion(String region)
The AWS region name of the event.
region
- The AWS region name of the event.public void setAvailabilityZone(String availabilityZone)
The AWS Availability Zone of the event. For example, us-east-1a.
availabilityZone
- The AWS Availability Zone of the event. For example, us-east-1a.public String getAvailabilityZone()
The AWS Availability Zone of the event. For example, us-east-1a.
public Event withAvailabilityZone(String availabilityZone)
The AWS Availability Zone of the event. For example, us-east-1a.
availabilityZone
- The AWS Availability Zone of the event. For example, us-east-1a.public void setStartTime(Date startTime)
The date and time that the event began.
startTime
- The date and time that the event began.public Date getStartTime()
The date and time that the event began.
public Event withStartTime(Date startTime)
The date and time that the event began.
startTime
- The date and time that the event began.public void setEndTime(Date endTime)
The date and time that the event ended.
endTime
- The date and time that the event ended.public Date getEndTime()
The date and time that the event ended.
public Event withEndTime(Date endTime)
The date and time that the event ended.
endTime
- The date and time that the event ended.public void setLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
lastUpdatedTime
- The most recent date and time that the event was updated.public Date getLastUpdatedTime()
The most recent date and time that the event was updated.
public Event withLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
lastUpdatedTime
- The most recent date and time that the event was updated.public void setStatusCode(String statusCode)
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
statusCode
- The most recent status of the event. Possible values are open
, closed
, and
upcoming
.EventStatusCode
public String getStatusCode()
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
open
, closed
, and
upcoming
.EventStatusCode
public Event withStatusCode(String statusCode)
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
statusCode
- The most recent status of the event. Possible values are open
, closed
, and
upcoming
.EventStatusCode
public void setStatusCode(EventStatusCode statusCode)
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
statusCode
- The most recent status of the event. Possible values are open
, closed
, and
upcoming
.EventStatusCode
public Event withStatusCode(EventStatusCode statusCode)
The most recent status of the event. Possible values are open
, closed
, and
upcoming
.
statusCode
- The most recent status of the event. Possible values are open
, closed
, and
upcoming
.EventStatusCode
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.