@Generated(value="software.amazon.awssdk:codegen") public class Operation extends Object implements StructuredPojo, ToCopyableBuilder<Operation.Builder,Operation>
Describes the API operation.
Modifier and Type | Class and Description |
---|---|
static interface |
Operation.Builder |
Modifier and Type | Method and Description |
---|---|
static Operation.Builder |
builder() |
Instant |
createdAt()
The timestamp when the operation was initialized (e.g.,
1479816991.349 ). |
boolean |
equals(Object obj) |
String |
errorCode()
The error code.
|
String |
errorDetails()
The error details.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the operation.
|
Boolean |
isTerminal()
A Boolean value indicating whether the operation is terminal.
|
ResourceLocation |
location()
The region and Availability Zone.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
operationDetails()
Details about the operation (e.g.,
Debian-1GB-Ohio-1 ). |
OperationType |
operationType()
The type of operation.
|
String |
operationTypeAsString()
The type of operation.
|
String |
resourceName()
The resource name.
|
ResourceType |
resourceType()
The resource type.
|
String |
resourceTypeAsString()
The resource type.
|
static Class<? extends Operation.Builder> |
serializableBuilderClass() |
OperationStatus |
status()
The status of the operation.
|
String |
statusAsString()
The status of the operation.
|
Instant |
statusChangedAt()
The timestamp when the status was changed (e.g.,
1479816991.349 ). |
Operation.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The ID of the operation.
public String resourceName()
The resource name.
public ResourceType resourceType()
The resource type.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeAsString()
.
ResourceType
public String resourceTypeAsString()
The resource type.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeAsString()
.
ResourceType
public Instant createdAt()
The timestamp when the operation was initialized (e.g., 1479816991.349
).
1479816991.349
).public ResourceLocation location()
The region and Availability Zone.
public Boolean isTerminal()
A Boolean value indicating whether the operation is terminal.
public String operationDetails()
Details about the operation (e.g., Debian-1GB-Ohio-1
).
Debian-1GB-Ohio-1
).public OperationType operationType()
The type of operation.
If the service returns an enum value that is not available in the current SDK version, operationType
will return OperationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
operationTypeAsString()
.
OperationType
public String operationTypeAsString()
The type of operation.
If the service returns an enum value that is not available in the current SDK version, operationType
will return OperationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
operationTypeAsString()
.
OperationType
public OperationStatus status()
The status of the operation.
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()
.
OperationStatus
public String statusAsString()
The status of the operation.
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()
.
OperationStatus
public Instant statusChangedAt()
The timestamp when the status was changed (e.g., 1479816991.349
).
1479816991.349
).public String errorCode()
The error code.
public String errorDetails()
The error details.
public Operation.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Operation.Builder,Operation>
public static Operation.Builder builder()
public static Class<? extends Operation.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.