@Generated(value="software.amazon.awssdk:codegen") public final class DescribeTaskExecutionResponse extends DataSyncResponse implements ToCopyableBuilder<DescribeTaskExecutionResponse.Builder,DescribeTaskExecutionResponse>
DescribeTaskExecutionResponse
| Modifier and Type | Class and Description |
|---|---|
static interface |
DescribeTaskExecutionResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DescribeTaskExecutionResponse.Builder |
builder() |
Long |
bytesCompressed()
The physical number of bytes transferred over the network after compression was applied.
|
Long |
bytesTransferred()
The physical number of bytes transferred over the network.
|
Long |
bytesWritten()
The number of logical bytes written to the destination Amazon Web Services storage resource.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Long |
estimatedBytesToTransfer()
The estimated physical number of bytes that is to be transferred over the network.
|
Long |
estimatedFilesToTransfer()
The expected number of files that is to be transferred over the network.
|
List<FilterRule> |
excludes()
A list of filter rules that determines which files to exclude from a task.
|
Long |
filesTransferred()
The actual number of files that was transferred over the network.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasExcludes()
For responses, this returns true if the service returned a value for the Excludes property.
|
int |
hashCode() |
boolean |
hasIncludes()
For responses, this returns true if the service returned a value for the Includes property.
|
List<FilterRule> |
includes()
A list of filter rules that determines which files to include when running a task.
|
Options |
options()
Returns the value of the Options property for this object.
|
TaskExecutionResultDetail |
result()
The result of the task execution.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribeTaskExecutionResponse.Builder> |
serializableBuilderClass() |
Instant |
startTime()
The time that the task execution was started.
|
TaskExecutionStatus |
status()
The status of the task execution.
|
String |
statusAsString()
The status of the task execution.
|
String |
taskExecutionArn()
The Amazon Resource Name (ARN) of the task execution that was described.
|
DescribeTaskExecutionResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String taskExecutionArn()
The Amazon Resource Name (ARN) of the task execution that was described. TaskExecutionArn is
hierarchical and includes TaskArn for the task that was executed.
For example, a TaskExecution value with the ARN
arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b
executed the task with the ARN arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2.
TaskExecutionArn is
hierarchical and includes TaskArn for the task that was executed.
For example, a TaskExecution value with the ARN
arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2/execution/exec-08ef1e88ec491019b
executed the task with the ARN
arn:aws:datasync:us-east-1:111222333444:task/task-0208075f79cedf4a2.
public final TaskExecutionStatus status()
The status of the task execution.
For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User Guide.
If the service returns an enum value that is not available in the current SDK version, status will
return TaskExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User Guide.
TaskExecutionStatuspublic final String statusAsString()
The status of the task execution.
For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User Guide.
If the service returns an enum value that is not available in the current SDK version, status will
return TaskExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User Guide.
TaskExecutionStatuspublic final Options options()
public final boolean hasExcludes()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<FilterRule> excludes()
A list of filter rules that determines which files to exclude from a task. The list should contain a single
filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for
example: "/folder1|/folder2"
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExcludes() method.
"/folder1|/folder2"public final boolean hasIncludes()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<FilterRule> includes()
A list of filter rules that determines which files to include when running a task. The list should contain a
single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a
pipe), for example: "/folder1|/folder2"
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIncludes() method.
"/folder1|/folder2"public final Instant startTime()
The time that the task execution was started.
public final Long estimatedFilesToTransfer()
The expected number of files that is to be transferred over the network. This value is calculated during the PREPARING phase, before the TRANSFERRING phase. This value is the expected number of files to be transferred. It's calculated based on comparing the content of the source and destination locations and finding the delta that needs to be transferred.
public final Long estimatedBytesToTransfer()
The estimated physical number of bytes that is to be transferred over the network.
public final Long filesTransferred()
The actual number of files that was transferred over the network. This value is calculated and updated on an ongoing basis during the TRANSFERRING phase. It's updated periodically when each file is read from the source and sent over the network.
If failures occur during a transfer, this value can be less than EstimatedFilesToTransfer. This
value can also be greater than EstimatedFilesTransferred in some cases. This element is
implementation-specific for some location types, so don't use it as an indicator for a correct file number or to
monitor your task execution.
If failures occur during a transfer, this value can be less than EstimatedFilesToTransfer.
This value can also be greater than EstimatedFilesTransferred in some cases. This element is
implementation-specific for some location types, so don't use it as an indicator for a correct file
number or to monitor your task execution.
public final Long bytesWritten()
The number of logical bytes written to the destination Amazon Web Services storage resource.
public final Long bytesTransferred()
The physical number of bytes transferred over the network.
public final TaskExecutionResultDetail result()
The result of the task execution.
public final Long bytesCompressed()
The physical number of bytes transferred over the network after compression was applied. In most cases, this
number is less than BytesTransferred.
BytesTransferred.public DescribeTaskExecutionResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DescribeTaskExecutionResponse.Builder,DescribeTaskExecutionResponse>toBuilder in class AwsResponsepublic static DescribeTaskExecutionResponse.Builder builder()
public static Class<? extends DescribeTaskExecutionResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkResponseCopyright © 2022. All rights reserved.