@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OperationEvent extends Object implements Serializable, Cloneable, StructuredPojo
An operation event returns details for an operation, including key milestones which can be used to monitor and track operations in progress.
Operation events contain:
Description string
Resource, including its ARN and type
Status
StatusMessage string
TimeStamp
Operation event examples include StartApplication or StopApplication.
| Constructor and Description |
|---|
OperationEvent() |
| Modifier and Type | Method and Description |
|---|---|
OperationEvent |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
A description of the operation event.
|
Resource |
getResource()
The resource involved in the operations event.
|
String |
getStatus()
The status of the operation event.
|
String |
getStatusMessage()
The status message relating to a specific operation event.
|
Date |
getTimestamp()
The timestamp of the specified operation event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setDescription(String description)
A description of the operation event.
|
void |
setResource(Resource resource)
The resource involved in the operations event.
|
void |
setStatus(String status)
The status of the operation event.
|
void |
setStatusMessage(String statusMessage)
The status message relating to a specific operation event.
|
void |
setTimestamp(Date timestamp)
The timestamp of the specified operation event.
|
String |
toString()
Returns a string representation of this object.
|
OperationEvent |
withDescription(String description)
A description of the operation event.
|
OperationEvent |
withResource(Resource resource)
The resource involved in the operations event.
|
OperationEvent |
withStatus(OperationEventStatus status)
The status of the operation event.
|
OperationEvent |
withStatus(String status)
The status of the operation event.
|
OperationEvent |
withStatusMessage(String statusMessage)
The status message relating to a specific operation event.
|
OperationEvent |
withTimestamp(Date timestamp)
The timestamp of the specified operation event.
|
public void setDescription(String description)
A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".
description - A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".public String getDescription()
A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".
public OperationEvent withDescription(String description)
A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".
description - A description of the operation event. For example, "Stop the EC2 instance i-abcdefgh987654321".public void setResource(Resource resource)
The resource involved in the operations event.
Contains ResourceArn ARN and ResourceType.
resource - The resource involved in the operations event.
Contains ResourceArn ARN and ResourceType.
public Resource getResource()
The resource involved in the operations event.
Contains ResourceArn ARN and ResourceType.
Contains ResourceArn ARN and ResourceType.
public OperationEvent withResource(Resource resource)
The resource involved in the operations event.
Contains ResourceArn ARN and ResourceType.
resource - The resource involved in the operations event.
Contains ResourceArn ARN and ResourceType.
public void setStatus(String status)
The status of the operation event. The possible statuses are: IN_PROGRESS, COMPLETED,
and FAILED.
status - The status of the operation event. The possible statuses are: IN_PROGRESS,
COMPLETED, and FAILED.OperationEventStatuspublic String getStatus()
The status of the operation event. The possible statuses are: IN_PROGRESS, COMPLETED,
and FAILED.
IN_PROGRESS,
COMPLETED, and FAILED.OperationEventStatuspublic OperationEvent withStatus(String status)
The status of the operation event. The possible statuses are: IN_PROGRESS, COMPLETED,
and FAILED.
status - The status of the operation event. The possible statuses are: IN_PROGRESS,
COMPLETED, and FAILED.OperationEventStatuspublic OperationEvent withStatus(OperationEventStatus status)
The status of the operation event. The possible statuses are: IN_PROGRESS, COMPLETED,
and FAILED.
status - The status of the operation event. The possible statuses are: IN_PROGRESS,
COMPLETED, and FAILED.OperationEventStatuspublic void setStatusMessage(String statusMessage)
The status message relating to a specific operation event.
statusMessage - The status message relating to a specific operation event.public String getStatusMessage()
The status message relating to a specific operation event.
public OperationEvent withStatusMessage(String statusMessage)
The status message relating to a specific operation event.
statusMessage - The status message relating to a specific operation event.public void setTimestamp(Date timestamp)
The timestamp of the specified operation event.
timestamp - The timestamp of the specified operation event.public Date getTimestamp()
The timestamp of the specified operation event.
public OperationEvent withTimestamp(Date timestamp)
The timestamp of the specified operation event.
timestamp - The timestamp of the specified operation event.public String toString()
toString in class ObjectObject.toString()public OperationEvent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.