public static interface Operation.Builder extends CopyableBuilder<Operation.Builder,Operation>
Modifier and Type | Method and Description |
---|---|
Operation.Builder |
createdAt(Instant createdAt)
The timestamp when the operation was initialized (e.g.,
1479816991.349 ). |
Operation.Builder |
errorCode(String errorCode)
The error code.
|
Operation.Builder |
errorDetails(String errorDetails)
The error details.
|
Operation.Builder |
id(String id)
The ID of the operation.
|
Operation.Builder |
isTerminal(Boolean isTerminal)
A Boolean value indicating whether the operation is terminal.
|
default Operation.Builder |
location(Consumer<ResourceLocation.Builder> location)
The region and Availability Zone.
|
Operation.Builder |
location(ResourceLocation location)
The region and Availability Zone.
|
Operation.Builder |
operationDetails(String operationDetails)
Details about the operation (e.g.,
Debian-1GB-Ohio-1 ). |
Operation.Builder |
operationType(OperationType operationType)
The type of operation.
|
Operation.Builder |
operationType(String operationType)
The type of operation.
|
Operation.Builder |
resourceName(String resourceName)
The resource name.
|
Operation.Builder |
resourceType(ResourceType resourceType)
The resource type.
|
Operation.Builder |
resourceType(String resourceType)
The resource type.
|
Operation.Builder |
status(OperationStatus status)
The status of the operation.
|
Operation.Builder |
status(String status)
The status of the operation.
|
Operation.Builder |
statusChangedAt(Instant statusChangedAt)
The timestamp when the status was changed (e.g.,
1479816991.349 ). |
copy
apply, build
Operation.Builder id(String id)
The ID of the operation.
id
- The ID of the operation.Operation.Builder resourceName(String resourceName)
The resource name.
resourceName
- The resource name.Operation.Builder resourceType(String resourceType)
The resource type.
resourceType
- The resource type.ResourceType
,
ResourceType
Operation.Builder resourceType(ResourceType resourceType)
The resource type.
resourceType
- The resource type.ResourceType
,
ResourceType
Operation.Builder createdAt(Instant createdAt)
The timestamp when the operation was initialized (e.g., 1479816991.349
).
createdAt
- The timestamp when the operation was initialized (e.g., 1479816991.349
).Operation.Builder location(ResourceLocation location)
The region and Availability Zone.
location
- The region and Availability Zone.default Operation.Builder location(Consumer<ResourceLocation.Builder> location)
The region and Availability Zone.
This is a convenience that creates an instance of theResourceLocation.Builder
avoiding the need to
create one manually via ResourceLocation.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to location(ResourceLocation)
.location
- a consumer that will call methods on ResourceLocation.Builder
location(ResourceLocation)
Operation.Builder isTerminal(Boolean isTerminal)
A Boolean value indicating whether the operation is terminal.
isTerminal
- A Boolean value indicating whether the operation is terminal.Operation.Builder operationDetails(String operationDetails)
Details about the operation (e.g., Debian-1GB-Ohio-1
).
operationDetails
- Details about the operation (e.g., Debian-1GB-Ohio-1
).Operation.Builder operationType(String operationType)
The type of operation.
operationType
- The type of operation.OperationType
,
OperationType
Operation.Builder operationType(OperationType operationType)
The type of operation.
operationType
- The type of operation.OperationType
,
OperationType
Operation.Builder status(String status)
The status of the operation.
status
- The status of the operation.OperationStatus
,
OperationStatus
Operation.Builder status(OperationStatus status)
The status of the operation.
status
- The status of the operation.OperationStatus
,
OperationStatus
Operation.Builder statusChangedAt(Instant statusChangedAt)
The timestamp when the status was changed (e.g., 1479816991.349
).
statusChangedAt
- The timestamp when the status was changed (e.g., 1479816991.349
).Operation.Builder errorCode(String errorCode)
The error code.
errorCode
- The error code.Operation.Builder errorDetails(String errorDetails)
The error details.
errorDetails
- The error details.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.