@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Operation extends Object implements Serializable, Cloneable, StructuredPojo
A complex type that contains information about a specified operation.
Constructor and Description |
---|
Operation() |
Modifier and Type | Method and Description |
---|---|
Operation |
addTargetsEntry(String key,
String value)
Add a single Targets entry
|
Operation |
clearTargetsEntries()
Removes all the entries added into Targets.
|
Operation |
clone() |
boolean |
equals(Object obj) |
Date |
getCreateDate()
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC).
|
String |
getErrorCode()
The code associated with
ErrorMessage . |
String |
getErrorMessage()
If the value of
Status is FAIL , the reason that the operation failed. |
String |
getId()
The ID of the operation that you want to get information about.
|
String |
getStatus()
The status of the operation.
|
Map<String,String> |
getTargets()
The name of the target entity that's associated with the operation:
|
String |
getType()
The name of the operation that's associated with the specified ID.
|
Date |
getUpdateDate()
The date and time that the value of
Status changed to the current value, in Unix date/time format
and Coordinated Universal Time (UTC). |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreateDate(Date createDate)
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC).
|
void |
setErrorCode(String errorCode)
The code associated with
ErrorMessage . |
void |
setErrorMessage(String errorMessage)
If the value of
Status is FAIL , the reason that the operation failed. |
void |
setId(String id)
The ID of the operation that you want to get information about.
|
void |
setStatus(String status)
The status of the operation.
|
void |
setTargets(Map<String,String> targets)
The name of the target entity that's associated with the operation:
|
void |
setType(String type)
The name of the operation that's associated with the specified ID.
|
void |
setUpdateDate(Date updateDate)
The date and time that the value of
Status changed to the current value, in Unix date/time format
and Coordinated Universal Time (UTC). |
String |
toString()
Returns a string representation of this object.
|
Operation |
withCreateDate(Date createDate)
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC).
|
Operation |
withErrorCode(String errorCode)
The code associated with
ErrorMessage . |
Operation |
withErrorMessage(String errorMessage)
If the value of
Status is FAIL , the reason that the operation failed. |
Operation |
withId(String id)
The ID of the operation that you want to get information about.
|
Operation |
withStatus(OperationStatus status)
The status of the operation.
|
Operation |
withStatus(String status)
The status of the operation.
|
Operation |
withTargets(Map<String,String> targets)
The name of the target entity that's associated with the operation:
|
Operation |
withType(OperationType type)
The name of the operation that's associated with the specified ID.
|
Operation |
withType(String type)
The name of the operation that's associated with the specified ID.
|
Operation |
withUpdateDate(Date updateDate)
The date and time that the value of
Status changed to the current value, in Unix date/time format
and Coordinated Universal Time (UTC). |
public void setId(String id)
The ID of the operation that you want to get information about.
id
- The ID of the operation that you want to get information about.public String getId()
The ID of the operation that you want to get information about.
public Operation withId(String id)
The ID of the operation that you want to get information about.
id
- The ID of the operation that you want to get information about.public void setType(String type)
The name of the operation that's associated with the specified ID.
type
- The name of the operation that's associated with the specified ID.OperationType
public String getType()
The name of the operation that's associated with the specified ID.
OperationType
public Operation withType(String type)
The name of the operation that's associated with the specified ID.
type
- The name of the operation that's associated with the specified ID.OperationType
public Operation withType(OperationType type)
The name of the operation that's associated with the specified ID.
type
- The name of the operation that's associated with the specified ID.OperationType
public void setStatus(String status)
The status of the operation. Values include the following:
This is the initial state that occurs immediately after you submit a request.
Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage
.
status
- The status of the operation. Values include the following:
This is the initial state that occurs immediately after you submit a request.
Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage
.
OperationStatus
public String getStatus()
The status of the operation. Values include the following:
This is the initial state that occurs immediately after you submit a request.
Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage
.
This is the initial state that occurs immediately after you submit a request.
Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage
.
OperationStatus
public Operation withStatus(String status)
The status of the operation. Values include the following:
This is the initial state that occurs immediately after you submit a request.
Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage
.
status
- The status of the operation. Values include the following:
This is the initial state that occurs immediately after you submit a request.
Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage
.
OperationStatus
public Operation withStatus(OperationStatus status)
The status of the operation. Values include the following:
This is the initial state that occurs immediately after you submit a request.
Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage
.
status
- The status of the operation. Values include the following:
This is the initial state that occurs immediately after you submit a request.
Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage
.
OperationStatus
public void setErrorMessage(String errorMessage)
If the value of Status
is FAIL
, the reason that the operation failed.
errorMessage
- If the value of Status
is FAIL
, the reason that the operation failed.public String getErrorMessage()
If the value of Status
is FAIL
, the reason that the operation failed.
Status
is FAIL
, the reason that the operation failed.public Operation withErrorMessage(String errorMessage)
If the value of Status
is FAIL
, the reason that the operation failed.
errorMessage
- If the value of Status
is FAIL
, the reason that the operation failed.public void setErrorCode(String errorCode)
The code associated with ErrorMessage
. Values for ErrorCode
include the following:
ACCESS_DENIED
CANNOT_CREATE_HOSTED_ZONE
EXPIRED_TOKEN
HOSTED_ZONE_NOT_FOUND
INTERNAL_FAILURE
INVALID_CHANGE_BATCH
THROTTLED_REQUEST
errorCode
- The code associated with ErrorMessage
. Values for ErrorCode
include the
following:
ACCESS_DENIED
CANNOT_CREATE_HOSTED_ZONE
EXPIRED_TOKEN
HOSTED_ZONE_NOT_FOUND
INTERNAL_FAILURE
INVALID_CHANGE_BATCH
THROTTLED_REQUEST
public String getErrorCode()
The code associated with ErrorMessage
. Values for ErrorCode
include the following:
ACCESS_DENIED
CANNOT_CREATE_HOSTED_ZONE
EXPIRED_TOKEN
HOSTED_ZONE_NOT_FOUND
INTERNAL_FAILURE
INVALID_CHANGE_BATCH
THROTTLED_REQUEST
ErrorMessage
. Values for ErrorCode
include the
following:
ACCESS_DENIED
CANNOT_CREATE_HOSTED_ZONE
EXPIRED_TOKEN
HOSTED_ZONE_NOT_FOUND
INTERNAL_FAILURE
INVALID_CHANGE_BATCH
THROTTLED_REQUEST
public Operation withErrorCode(String errorCode)
The code associated with ErrorMessage
. Values for ErrorCode
include the following:
ACCESS_DENIED
CANNOT_CREATE_HOSTED_ZONE
EXPIRED_TOKEN
HOSTED_ZONE_NOT_FOUND
INTERNAL_FAILURE
INVALID_CHANGE_BATCH
THROTTLED_REQUEST
errorCode
- The code associated with ErrorMessage
. Values for ErrorCode
include the
following:
ACCESS_DENIED
CANNOT_CREATE_HOSTED_ZONE
EXPIRED_TOKEN
HOSTED_ZONE_NOT_FOUND
INTERNAL_FAILURE
INVALID_CHANGE_BATCH
THROTTLED_REQUEST
public void setCreateDate(Date createDate)
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC).
The value of CreateDate
is accurate to milliseconds. For example, the value
1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
createDate
- The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time
(UTC). The value of CreateDate
is accurate to milliseconds. For example, the value
1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.public Date getCreateDate()
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC).
The value of CreateDate
is accurate to milliseconds. For example, the value
1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
CreateDate
is accurate to milliseconds. For example, the value
1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.public Operation withCreateDate(Date createDate)
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC).
The value of CreateDate
is accurate to milliseconds. For example, the value
1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
createDate
- The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time
(UTC). The value of CreateDate
is accurate to milliseconds. For example, the value
1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.public void setUpdateDate(Date updateDate)
The date and time that the value of Status
changed to the current value, in Unix date/time format
and Coordinated Universal Time (UTC). The value of UpdateDate
is accurate to milliseconds. For
example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
updateDate
- The date and time that the value of Status
changed to the current value, in Unix date/time
format and Coordinated Universal Time (UTC). The value of UpdateDate
is accurate to
milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018
12:11:30.087 AM.public Date getUpdateDate()
The date and time that the value of Status
changed to the current value, in Unix date/time format
and Coordinated Universal Time (UTC). The value of UpdateDate
is accurate to milliseconds. For
example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
Status
changed to the current value, in Unix date/time
format and Coordinated Universal Time (UTC). The value of UpdateDate
is accurate to
milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018
12:11:30.087 AM.public Operation withUpdateDate(Date updateDate)
The date and time that the value of Status
changed to the current value, in Unix date/time format
and Coordinated Universal Time (UTC). The value of UpdateDate
is accurate to milliseconds. For
example, the value 1516925490.087
represents Friday, January 26, 2018 12:11:30.087 AM.
updateDate
- The date and time that the value of Status
changed to the current value, in Unix date/time
format and Coordinated Universal Time (UTC). The value of UpdateDate
is accurate to
milliseconds. For example, the value 1516925490.087
represents Friday, January 26, 2018
12:11:30.087 AM.public Map<String,String> getTargets()
The name of the target entity that's associated with the operation:
The namespace ID is returned in the ResourceId
property.
The service ID is returned in the ResourceId
property.
The instance ID is returned in the ResourceId
property.
The namespace ID is returned in the ResourceId
property.
The service ID is returned in the ResourceId
property.
The instance ID is returned in the ResourceId
property.
public void setTargets(Map<String,String> targets)
The name of the target entity that's associated with the operation:
The namespace ID is returned in the ResourceId
property.
The service ID is returned in the ResourceId
property.
The instance ID is returned in the ResourceId
property.
targets
- The name of the target entity that's associated with the operation:
The namespace ID is returned in the ResourceId
property.
The service ID is returned in the ResourceId
property.
The instance ID is returned in the ResourceId
property.
public Operation withTargets(Map<String,String> targets)
The name of the target entity that's associated with the operation:
The namespace ID is returned in the ResourceId
property.
The service ID is returned in the ResourceId
property.
The instance ID is returned in the ResourceId
property.
targets
- The name of the target entity that's associated with the operation:
The namespace ID is returned in the ResourceId
property.
The service ID is returned in the ResourceId
property.
The instance ID is returned in the ResourceId
property.
public Operation addTargetsEntry(String key, String value)
public Operation clearTargetsEntries()
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.