@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OrganizationEvent extends Object implements Serializable, Cloneable, StructuredPojo
Summary information about an event, returned by the DescribeEventsForOrganization operation.
Constructor and Description |
---|
OrganizationEvent() |
Modifier and Type | Method and Description |
---|---|
OrganizationEvent |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The unique identifier for the event.
|
Date |
getEndTime()
The date and time that the event ended.
|
String |
getEventTypeCategory()
The category of the event type.
|
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 |
setEndTime(Date endTime)
The date and time that the event ended.
|
void |
setEventTypeCategory(String eventTypeCategory)
The category of the event type.
|
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(String statusCode)
The most recent status of the event.
|
String |
toString()
Returns a string representation of this object.
|
OrganizationEvent |
withArn(String arn)
The unique identifier for the event.
|
OrganizationEvent |
withEndTime(Date endTime)
The date and time that the event ended.
|
OrganizationEvent |
withEventTypeCategory(EventTypeCategory eventTypeCategory)
The category of the event type.
|
OrganizationEvent |
withEventTypeCategory(String eventTypeCategory)
The category of the event type.
|
OrganizationEvent |
withEventTypeCode(String eventTypeCode)
The unique identifier for the event type.
|
OrganizationEvent |
withLastUpdatedTime(Date lastUpdatedTime)
The most recent date and time that the event was updated.
|
OrganizationEvent |
withRegion(String region)
The AWS Region name of the event.
|
OrganizationEvent |
withService(String service)
The AWS service that is affected by the event.
|
OrganizationEvent |
withStartTime(Date startTime)
The date and time that the event began.
|
OrganizationEvent |
withStatusCode(EventStatusCode statusCode)
The most recent status of the event.
|
OrganizationEvent |
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/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
arn
- The unique identifier for the event. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
public String getArn()
The unique identifier for the event. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
public OrganizationEvent withArn(String arn)
The unique identifier for the event. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
arn
- The unique identifier for the event. Format:
arn:aws:health:event-region::event/SERVICE/EVENT_TYPE_CODE/EVENT_TYPE_PLUS_ID
. Example:
Example: arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456
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.
public OrganizationEvent 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 OrganizationEvent 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 category of the event type.
eventTypeCategory
- The category of the event type.EventTypeCategory
public String getEventTypeCategory()
The category of the event type.
EventTypeCategory
public OrganizationEvent withEventTypeCategory(String eventTypeCategory)
The category of the event type.
eventTypeCategory
- The category of the event type.EventTypeCategory
public OrganizationEvent withEventTypeCategory(EventTypeCategory eventTypeCategory)
The category of the event type.
eventTypeCategory
- The category of the event type.EventTypeCategory
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 OrganizationEvent withRegion(String region)
The AWS Region name of the event.
region
- The AWS Region name of the event.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 OrganizationEvent 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 OrganizationEvent 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 OrganizationEvent 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 OrganizationEvent 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 OrganizationEvent 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 OrganizationEvent clone()
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.