@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ControlOperation extends Object implements Serializable, Cloneable, StructuredPojo
An operation performed by the control.
Constructor and Description |
---|
ControlOperation() |
Modifier and Type | Method and Description |
---|---|
ControlOperation |
clone() |
boolean |
equals(Object obj) |
Date |
getEndTime()
The time that the operation finished.
|
String |
getOperationType()
One of
ENABLE_CONTROL or DISABLE_CONTROL . |
Date |
getStartTime()
The time that the operation began.
|
String |
getStatus()
One of
IN_PROGRESS , SUCEEDED , or FAILED . |
String |
getStatusMessage()
If the operation result is
FAILED , this string contains a message explaining why the operation
failed. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEndTime(Date endTime)
The time that the operation finished.
|
void |
setOperationType(String operationType)
One of
ENABLE_CONTROL or DISABLE_CONTROL . |
void |
setStartTime(Date startTime)
The time that the operation began.
|
void |
setStatus(String status)
One of
IN_PROGRESS , SUCEEDED , or FAILED . |
void |
setStatusMessage(String statusMessage)
If the operation result is
FAILED , this string contains a message explaining why the operation
failed. |
String |
toString()
Returns a string representation of this object.
|
ControlOperation |
withEndTime(Date endTime)
The time that the operation finished.
|
ControlOperation |
withOperationType(ControlOperationType operationType)
One of
ENABLE_CONTROL or DISABLE_CONTROL . |
ControlOperation |
withOperationType(String operationType)
One of
ENABLE_CONTROL or DISABLE_CONTROL . |
ControlOperation |
withStartTime(Date startTime)
The time that the operation began.
|
ControlOperation |
withStatus(ControlOperationStatus status)
One of
IN_PROGRESS , SUCEEDED , or FAILED . |
ControlOperation |
withStatus(String status)
One of
IN_PROGRESS , SUCEEDED , or FAILED . |
ControlOperation |
withStatusMessage(String statusMessage)
If the operation result is
FAILED , this string contains a message explaining why the operation
failed. |
public void setEndTime(Date endTime)
The time that the operation finished.
endTime
- The time that the operation finished.public Date getEndTime()
The time that the operation finished.
public ControlOperation withEndTime(Date endTime)
The time that the operation finished.
endTime
- The time that the operation finished.public void setOperationType(String operationType)
One of ENABLE_CONTROL
or DISABLE_CONTROL
.
operationType
- One of ENABLE_CONTROL
or DISABLE_CONTROL
.ControlOperationType
public String getOperationType()
One of ENABLE_CONTROL
or DISABLE_CONTROL
.
ENABLE_CONTROL
or DISABLE_CONTROL
.ControlOperationType
public ControlOperation withOperationType(String operationType)
One of ENABLE_CONTROL
or DISABLE_CONTROL
.
operationType
- One of ENABLE_CONTROL
or DISABLE_CONTROL
.ControlOperationType
public ControlOperation withOperationType(ControlOperationType operationType)
One of ENABLE_CONTROL
or DISABLE_CONTROL
.
operationType
- One of ENABLE_CONTROL
or DISABLE_CONTROL
.ControlOperationType
public void setStartTime(Date startTime)
The time that the operation began.
startTime
- The time that the operation began.public Date getStartTime()
The time that the operation began.
public ControlOperation withStartTime(Date startTime)
The time that the operation began.
startTime
- The time that the operation began.public void setStatus(String status)
One of IN_PROGRESS
, SUCEEDED
, or FAILED
.
status
- One of IN_PROGRESS
, SUCEEDED
, or FAILED
.ControlOperationStatus
public String getStatus()
One of IN_PROGRESS
, SUCEEDED
, or FAILED
.
IN_PROGRESS
, SUCEEDED
, or FAILED
.ControlOperationStatus
public ControlOperation withStatus(String status)
One of IN_PROGRESS
, SUCEEDED
, or FAILED
.
status
- One of IN_PROGRESS
, SUCEEDED
, or FAILED
.ControlOperationStatus
public ControlOperation withStatus(ControlOperationStatus status)
One of IN_PROGRESS
, SUCEEDED
, or FAILED
.
status
- One of IN_PROGRESS
, SUCEEDED
, or FAILED
.ControlOperationStatus
public void setStatusMessage(String statusMessage)
If the operation result is FAILED
, this string contains a message explaining why the operation
failed.
statusMessage
- If the operation result is FAILED
, this string contains a message explaining why the
operation failed.public String getStatusMessage()
If the operation result is FAILED
, this string contains a message explaining why the operation
failed.
FAILED
, this string contains a message explaining why the
operation failed.public ControlOperation withStatusMessage(String statusMessage)
If the operation result is FAILED
, this string contains a message explaining why the operation
failed.
statusMessage
- If the operation result is FAILED
, this string contains a message explaining why the
operation failed.public String toString()
toString
in class Object
Object.toString()
public ControlOperation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.