@Generated(value="software.amazon.awssdk:codegen") public final class Operation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Operation.Builder,Operation>
A complex type that contains information about a specified operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Operation.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Operation.Builder |
builder() |
Instant |
createDate()
The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC).
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
errorCode()
The code associated with
ErrorMessage. |
String |
errorMessage()
If the value of
Status is FAIL, the reason that the operation failed. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTargets()
Returns true if the Targets property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
String |
id()
The ID of the operation that you want to get information about.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Operation.Builder> |
serializableBuilderClass() |
OperationStatus |
status()
The status of the operation.
|
String |
statusAsString()
The status of the operation.
|
Map<OperationTargetType,String> |
targets()
The name of the target entity that is associated with the operation:
|
Map<String,String> |
targetsAsStrings()
The name of the target entity that is associated with the operation:
|
Operation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
OperationType |
type()
The name of the operation that is associated with the specified ID.
|
String |
typeAsString()
The name of the operation that is associated with the specified ID.
|
Instant |
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). |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The ID of the operation that you want to get information about.
public final OperationType type()
The name of the operation that is associated with the specified ID.
If the service returns an enum value that is not available in the current SDK version, type will return
OperationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
OperationTypepublic final String typeAsString()
The name of the operation that is associated with the specified ID.
If the service returns an enum value that is not available in the current SDK version, type will return
OperationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
OperationTypepublic final OperationStatus status()
The status of the operation. Values include the following:
This is the initial state immediately after you submit a request.
AWS Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage.
If the service returns an enum value that is not available in the current SDK version, status will
return OperationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
This is the initial state immediately after you submit a request.
AWS Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage.
OperationStatuspublic final String statusAsString()
The status of the operation. Values include the following:
This is the initial state immediately after you submit a request.
AWS Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage.
If the service returns an enum value that is not available in the current SDK version, status will
return OperationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
This is the initial state immediately after you submit a request.
AWS Cloud Map is performing the operation.
The operation succeeded.
The operation failed. For the failure reason, see ErrorMessage.
OperationStatuspublic final String errorMessage()
If the value of Status is FAIL, the reason that the operation failed.
Status is FAIL, the reason that the operation failed.public final 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
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 final Instant 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 is accurate to milliseconds. For example, the value
1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.public final Instant 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.
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 final Map<OperationTargetType,String> targets()
The name of the target entity that is 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTargets() to see if a value was sent in this field.
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 final boolean hasTargets()
public final Map<String,String> targetsAsStrings()
The name of the target entity that is 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTargets() to see if a value was sent in this field.
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Operation.Builder,Operation>public static Operation.Builder builder()
public static Class<? extends Operation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.