com.amazonaws.services.datasync.model.DescribeTaskExecutionResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-datasync Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.datasync.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* DescribeTaskExecutionResponse
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeTaskExecutionResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The ARN of the task execution that you wanted information about. 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
.
*
*/
private String taskExecutionArn;
/**
*
* The status of the task execution.
*
*/
private String status;
private Options options;
/**
*
* A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*/
private java.util.List excludes;
/**
*
* A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*/
private java.util.List includes;
/**
*
* The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what
* DataSync transfers by using a manifest.
*
*/
private ManifestConfig manifestConfig;
/**
*
* The time when the task execution started.
*
*/
private java.util.Date startTime;
/**
*
* The expected number of files, objects, and directories that DataSync will transfer over the network. This value
* is calculated during the task execution's PREPARING
phase before the TRANSFERRING
* phase. The calculation is based on comparing the content of the source and destination locations and finding the
* difference that needs to be transferred.
*
*/
private Long estimatedFilesToTransfer;
/**
*
* The estimated physical number of bytes that will transfer over the network.
*
*/
private Long estimatedBytesToTransfer;
/**
*
* The actual number of files, objects, and directories that DataSync transferred over the network. This value is
* updated periodically during the task execution's TRANSFERRING
phase when something is read from the
* source and sent over the network.
*
*
* If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer
. In
* some cases, this value can also be greater than EstimatedFilesToTransfer
. This element is
* implementation-specific for some location types, so don't use it as an exact indication of what transferred or to
* monitor your task execution.
*
*/
private Long filesTransferred;
/**
*
* The number of logical bytes written to the destination location.
*
*/
private Long bytesWritten;
/**
*
* The total number of bytes that are involved in the transfer. For the number of bytes sent over the network, see
* BytesCompressed
.
*
*/
private Long bytesTransferred;
/**
*
* The physical number of bytes transferred over the network after compression was applied. In most cases, this
* number is less than BytesTransferred
unless the data isn't compressible.
*
*/
private Long bytesCompressed;
/**
*
* The result of the task execution.
*
*/
private TaskExecutionResultDetail result;
/**
*
* The configuration of your task report, which provides detailed information about for your DataSync transfer. For
* more information, see Creating
* a task report.
*
*/
private TaskReportConfig taskReportConfig;
/**
*
* The number of files, objects, and directories that DataSync deleted in your destination location. If you don't configure your task to
* delete data in the destination that isn't in the source, the value is always 0
.
*
*/
private Long filesDeleted;
/**
*
* The number of files, objects, and directories that DataSync skipped during your transfer.
*
*/
private Long filesSkipped;
/**
*
* The number of files, objects, and directories that DataSync verified during your transfer.
*
*
*
* When you configure your task to verify only
* the data that's transferred, DataSync doesn't verify directories in some situations or files that fail to
* transfer.
*
*
*/
private Long filesVerified;
/**
*
* Indicates whether DataSync generated a complete task report for your transfer.
*
*/
private ReportResult reportResult;
/**
*
* The expected number of files, objects, and directories that DataSync will delete in your destination location. If
* you don't configure your
* task to delete data in the destination that isn't in the source, the value is always 0
.
*
*/
private Long estimatedFilesToDelete;
/**
*
* The ARN of the task execution that you wanted information about. 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
.
*
*
* @param taskExecutionArn
* The ARN of the task execution that you wanted information about. 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 void setTaskExecutionArn(String taskExecutionArn) {
this.taskExecutionArn = taskExecutionArn;
}
/**
*
* The ARN of the task execution that you wanted information about. 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
.
*
*
* @return The ARN of the task execution that you wanted information about. 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 String getTaskExecutionArn() {
return this.taskExecutionArn;
}
/**
*
* The ARN of the task execution that you wanted information about. 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
.
*
*
* @param taskExecutionArn
* The ARN of the task execution that you wanted information about. 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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withTaskExecutionArn(String taskExecutionArn) {
setTaskExecutionArn(taskExecutionArn);
return this;
}
/**
*
* The status of the task execution.
*
*
* @param status
* The status of the task execution.
* @see TaskExecutionStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the task execution.
*
*
* @return The status of the task execution.
* @see TaskExecutionStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the task execution.
*
*
* @param status
* The status of the task execution.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskExecutionStatus
*/
public DescribeTaskExecutionResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the task execution.
*
*
* @param status
* The status of the task execution.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskExecutionStatus
*/
public DescribeTaskExecutionResult withStatus(TaskExecutionStatus status) {
this.status = status.toString();
return this;
}
/**
* @param options
*/
public void setOptions(Options options) {
this.options = options;
}
/**
* @return
*/
public Options getOptions() {
return this.options;
}
/**
* @param options
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withOptions(Options options) {
setOptions(options);
return this;
}
/**
*
* A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*
* @return A list of filter rules that exclude specific data during your transfer. For more information and
* examples, see Filtering
* data transferred by DataSync.
*/
public java.util.List getExcludes() {
return excludes;
}
/**
*
* A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*
* @param excludes
* A list of filter rules that exclude specific data during your transfer. For more information and examples,
* see Filtering data
* transferred by DataSync.
*/
public void setExcludes(java.util.Collection excludes) {
if (excludes == null) {
this.excludes = null;
return;
}
this.excludes = new java.util.ArrayList(excludes);
}
/**
*
* A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setExcludes(java.util.Collection)} or {@link #withExcludes(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param excludes
* A list of filter rules that exclude specific data during your transfer. For more information and examples,
* see Filtering data
* transferred by DataSync.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withExcludes(FilterRule... excludes) {
if (this.excludes == null) {
setExcludes(new java.util.ArrayList(excludes.length));
}
for (FilterRule ele : excludes) {
this.excludes.add(ele);
}
return this;
}
/**
*
* A list of filter rules that exclude specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*
* @param excludes
* A list of filter rules that exclude specific data during your transfer. For more information and examples,
* see Filtering data
* transferred by DataSync.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withExcludes(java.util.Collection excludes) {
setExcludes(excludes);
return this;
}
/**
*
* A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*
* @return A list of filter rules that include specific data during your transfer. For more information and
* examples, see Filtering
* data transferred by DataSync.
*/
public java.util.List getIncludes() {
return includes;
}
/**
*
* A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*
* @param includes
* A list of filter rules that include specific data during your transfer. For more information and examples,
* see Filtering data
* transferred by DataSync.
*/
public void setIncludes(java.util.Collection includes) {
if (includes == null) {
this.includes = null;
return;
}
this.includes = new java.util.ArrayList(includes);
}
/**
*
* A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setIncludes(java.util.Collection)} or {@link #withIncludes(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param includes
* A list of filter rules that include specific data during your transfer. For more information and examples,
* see Filtering data
* transferred by DataSync.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withIncludes(FilterRule... includes) {
if (this.includes == null) {
setIncludes(new java.util.ArrayList(includes.length));
}
for (FilterRule ele : includes) {
this.includes.add(ele);
}
return this;
}
/**
*
* A list of filter rules that include specific data during your transfer. For more information and examples, see Filtering data transferred by
* DataSync.
*
*
* @param includes
* A list of filter rules that include specific data during your transfer. For more information and examples,
* see Filtering data
* transferred by DataSync.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withIncludes(java.util.Collection includes) {
setIncludes(includes);
return this;
}
/**
*
* The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what
* DataSync transfers by using a manifest.
*
*
* @param manifestConfig
* The configuration of the manifest that lists the files or objects to transfer. For more information, see
* Specifying
* what DataSync transfers by using a manifest.
*/
public void setManifestConfig(ManifestConfig manifestConfig) {
this.manifestConfig = manifestConfig;
}
/**
*
* The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what
* DataSync transfers by using a manifest.
*
*
* @return The configuration of the manifest that lists the files or objects to transfer. For more information, see
* Specifying
* what DataSync transfers by using a manifest.
*/
public ManifestConfig getManifestConfig() {
return this.manifestConfig;
}
/**
*
* The configuration of the manifest that lists the files or objects to transfer. For more information, see Specifying what
* DataSync transfers by using a manifest.
*
*
* @param manifestConfig
* The configuration of the manifest that lists the files or objects to transfer. For more information, see
* Specifying
* what DataSync transfers by using a manifest.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withManifestConfig(ManifestConfig manifestConfig) {
setManifestConfig(manifestConfig);
return this;
}
/**
*
* The time when the task execution started.
*
*
* @param startTime
* The time when the task execution started.
*/
public void setStartTime(java.util.Date startTime) {
this.startTime = startTime;
}
/**
*
* The time when the task execution started.
*
*
* @return The time when the task execution started.
*/
public java.util.Date getStartTime() {
return this.startTime;
}
/**
*
* The time when the task execution started.
*
*
* @param startTime
* The time when the task execution started.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withStartTime(java.util.Date startTime) {
setStartTime(startTime);
return this;
}
/**
*
* The expected number of files, objects, and directories that DataSync will transfer over the network. This value
* is calculated during the task execution's PREPARING
phase before the TRANSFERRING
* phase. The calculation is based on comparing the content of the source and destination locations and finding the
* difference that needs to be transferred.
*
*
* @param estimatedFilesToTransfer
* The expected number of files, objects, and directories that DataSync will transfer over the network. This
* value is calculated during the task execution's PREPARING
phase before the
* TRANSFERRING
phase. The calculation is based on comparing the content of the source and
* destination locations and finding the difference that needs to be transferred.
*/
public void setEstimatedFilesToTransfer(Long estimatedFilesToTransfer) {
this.estimatedFilesToTransfer = estimatedFilesToTransfer;
}
/**
*
* The expected number of files, objects, and directories that DataSync will transfer over the network. This value
* is calculated during the task execution's PREPARING
phase before the TRANSFERRING
* phase. The calculation is based on comparing the content of the source and destination locations and finding the
* difference that needs to be transferred.
*
*
* @return The expected number of files, objects, and directories that DataSync will transfer over the network. This
* value is calculated during the task execution's PREPARING
phase before the
* TRANSFERRING
phase. The calculation is based on comparing the content of the source and
* destination locations and finding the difference that needs to be transferred.
*/
public Long getEstimatedFilesToTransfer() {
return this.estimatedFilesToTransfer;
}
/**
*
* The expected number of files, objects, and directories that DataSync will transfer over the network. This value
* is calculated during the task execution's PREPARING
phase before the TRANSFERRING
* phase. The calculation is based on comparing the content of the source and destination locations and finding the
* difference that needs to be transferred.
*
*
* @param estimatedFilesToTransfer
* The expected number of files, objects, and directories that DataSync will transfer over the network. This
* value is calculated during the task execution's PREPARING
phase before the
* TRANSFERRING
phase. The calculation is based on comparing the content of the source and
* destination locations and finding the difference that needs to be transferred.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withEstimatedFilesToTransfer(Long estimatedFilesToTransfer) {
setEstimatedFilesToTransfer(estimatedFilesToTransfer);
return this;
}
/**
*
* The estimated physical number of bytes that will transfer over the network.
*
*
* @param estimatedBytesToTransfer
* The estimated physical number of bytes that will transfer over the network.
*/
public void setEstimatedBytesToTransfer(Long estimatedBytesToTransfer) {
this.estimatedBytesToTransfer = estimatedBytesToTransfer;
}
/**
*
* The estimated physical number of bytes that will transfer over the network.
*
*
* @return The estimated physical number of bytes that will transfer over the network.
*/
public Long getEstimatedBytesToTransfer() {
return this.estimatedBytesToTransfer;
}
/**
*
* The estimated physical number of bytes that will transfer over the network.
*
*
* @param estimatedBytesToTransfer
* The estimated physical number of bytes that will transfer over the network.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withEstimatedBytesToTransfer(Long estimatedBytesToTransfer) {
setEstimatedBytesToTransfer(estimatedBytesToTransfer);
return this;
}
/**
*
* The actual number of files, objects, and directories that DataSync transferred over the network. This value is
* updated periodically during the task execution's TRANSFERRING
phase when something is read from the
* source and sent over the network.
*
*
* If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer
. In
* some cases, this value can also be greater than EstimatedFilesToTransfer
. This element is
* implementation-specific for some location types, so don't use it as an exact indication of what transferred or to
* monitor your task execution.
*
*
* @param filesTransferred
* The actual number of files, objects, and directories that DataSync transferred over the network. This
* value is updated periodically during the task execution's TRANSFERRING
phase when something
* is read from the source and sent over the network.
*
* If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer
* . In some cases, this value can also be greater than EstimatedFilesToTransfer
. This element
* is implementation-specific for some location types, so don't use it as an exact indication of what
* transferred or to monitor your task execution.
*/
public void setFilesTransferred(Long filesTransferred) {
this.filesTransferred = filesTransferred;
}
/**
*
* The actual number of files, objects, and directories that DataSync transferred over the network. This value is
* updated periodically during the task execution's TRANSFERRING
phase when something is read from the
* source and sent over the network.
*
*
* If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer
. In
* some cases, this value can also be greater than EstimatedFilesToTransfer
. This element is
* implementation-specific for some location types, so don't use it as an exact indication of what transferred or to
* monitor your task execution.
*
*
* @return The actual number of files, objects, and directories that DataSync transferred over the network. This
* value is updated periodically during the task execution's TRANSFERRING
phase when something
* is read from the source and sent over the network.
*
* If DataSync fails to transfer something, this value can be less than
* EstimatedFilesToTransfer
. In some cases, this value can also be greater than
* EstimatedFilesToTransfer
. This element is implementation-specific for some location types,
* so don't use it as an exact indication of what transferred or to monitor your task execution.
*/
public Long getFilesTransferred() {
return this.filesTransferred;
}
/**
*
* The actual number of files, objects, and directories that DataSync transferred over the network. This value is
* updated periodically during the task execution's TRANSFERRING
phase when something is read from the
* source and sent over the network.
*
*
* If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer
. In
* some cases, this value can also be greater than EstimatedFilesToTransfer
. This element is
* implementation-specific for some location types, so don't use it as an exact indication of what transferred or to
* monitor your task execution.
*
*
* @param filesTransferred
* The actual number of files, objects, and directories that DataSync transferred over the network. This
* value is updated periodically during the task execution's TRANSFERRING
phase when something
* is read from the source and sent over the network.
*
* If DataSync fails to transfer something, this value can be less than EstimatedFilesToTransfer
* . In some cases, this value can also be greater than EstimatedFilesToTransfer
. This element
* is implementation-specific for some location types, so don't use it as an exact indication of what
* transferred or to monitor your task execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withFilesTransferred(Long filesTransferred) {
setFilesTransferred(filesTransferred);
return this;
}
/**
*
* The number of logical bytes written to the destination location.
*
*
* @param bytesWritten
* The number of logical bytes written to the destination location.
*/
public void setBytesWritten(Long bytesWritten) {
this.bytesWritten = bytesWritten;
}
/**
*
* The number of logical bytes written to the destination location.
*
*
* @return The number of logical bytes written to the destination location.
*/
public Long getBytesWritten() {
return this.bytesWritten;
}
/**
*
* The number of logical bytes written to the destination location.
*
*
* @param bytesWritten
* The number of logical bytes written to the destination location.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withBytesWritten(Long bytesWritten) {
setBytesWritten(bytesWritten);
return this;
}
/**
*
* The total number of bytes that are involved in the transfer. For the number of bytes sent over the network, see
* BytesCompressed
.
*
*
* @param bytesTransferred
* The total number of bytes that are involved in the transfer. For the number of bytes sent over the
* network, see BytesCompressed
.
*/
public void setBytesTransferred(Long bytesTransferred) {
this.bytesTransferred = bytesTransferred;
}
/**
*
* The total number of bytes that are involved in the transfer. For the number of bytes sent over the network, see
* BytesCompressed
.
*
*
* @return The total number of bytes that are involved in the transfer. For the number of bytes sent over the
* network, see BytesCompressed
.
*/
public Long getBytesTransferred() {
return this.bytesTransferred;
}
/**
*
* The total number of bytes that are involved in the transfer. For the number of bytes sent over the network, see
* BytesCompressed
.
*
*
* @param bytesTransferred
* The total number of bytes that are involved in the transfer. For the number of bytes sent over the
* network, see BytesCompressed
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withBytesTransferred(Long bytesTransferred) {
setBytesTransferred(bytesTransferred);
return this;
}
/**
*
* The physical number of bytes transferred over the network after compression was applied. In most cases, this
* number is less than BytesTransferred
unless the data isn't compressible.
*
*
* @param bytesCompressed
* The physical number of bytes transferred over the network after compression was applied. In most cases,
* this number is less than BytesTransferred
unless the data isn't compressible.
*/
public void setBytesCompressed(Long bytesCompressed) {
this.bytesCompressed = bytesCompressed;
}
/**
*
* The physical number of bytes transferred over the network after compression was applied. In most cases, this
* number is less than BytesTransferred
unless the data isn't compressible.
*
*
* @return The physical number of bytes transferred over the network after compression was applied. In most cases,
* this number is less than BytesTransferred
unless the data isn't compressible.
*/
public Long getBytesCompressed() {
return this.bytesCompressed;
}
/**
*
* The physical number of bytes transferred over the network after compression was applied. In most cases, this
* number is less than BytesTransferred
unless the data isn't compressible.
*
*
* @param bytesCompressed
* The physical number of bytes transferred over the network after compression was applied. In most cases,
* this number is less than BytesTransferred
unless the data isn't compressible.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withBytesCompressed(Long bytesCompressed) {
setBytesCompressed(bytesCompressed);
return this;
}
/**
*
* The result of the task execution.
*
*
* @param result
* The result of the task execution.
*/
public void setResult(TaskExecutionResultDetail result) {
this.result = result;
}
/**
*
* The result of the task execution.
*
*
* @return The result of the task execution.
*/
public TaskExecutionResultDetail getResult() {
return this.result;
}
/**
*
* The result of the task execution.
*
*
* @param result
* The result of the task execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withResult(TaskExecutionResultDetail result) {
setResult(result);
return this;
}
/**
*
* The configuration of your task report, which provides detailed information about for your DataSync transfer. For
* more information, see Creating
* a task report.
*
*
* @param taskReportConfig
* The configuration of your task report, which provides detailed information about for your DataSync
* transfer. For more information, see Creating a task report.
*/
public void setTaskReportConfig(TaskReportConfig taskReportConfig) {
this.taskReportConfig = taskReportConfig;
}
/**
*
* The configuration of your task report, which provides detailed information about for your DataSync transfer. For
* more information, see Creating
* a task report.
*
*
* @return The configuration of your task report, which provides detailed information about for your DataSync
* transfer. For more information, see Creating a task
* report.
*/
public TaskReportConfig getTaskReportConfig() {
return this.taskReportConfig;
}
/**
*
* The configuration of your task report, which provides detailed information about for your DataSync transfer. For
* more information, see Creating
* a task report.
*
*
* @param taskReportConfig
* The configuration of your task report, which provides detailed information about for your DataSync
* transfer. For more information, see Creating a task report.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withTaskReportConfig(TaskReportConfig taskReportConfig) {
setTaskReportConfig(taskReportConfig);
return this;
}
/**
*
* The number of files, objects, and directories that DataSync deleted in your destination location. If you don't configure your task to
* delete data in the destination that isn't in the source, the value is always 0
.
*
*
* @param filesDeleted
* The number of files, objects, and directories that DataSync deleted in your destination location. If you
* don't configure
* your task to delete data in the destination that isn't in the source, the value is always
* 0
.
*/
public void setFilesDeleted(Long filesDeleted) {
this.filesDeleted = filesDeleted;
}
/**
*
* The number of files, objects, and directories that DataSync deleted in your destination location. If you don't configure your task to
* delete data in the destination that isn't in the source, the value is always 0
.
*
*
* @return The number of files, objects, and directories that DataSync deleted in your destination location. If you
* don't configure
* your task to delete data in the destination that isn't in the source, the value is always
* 0
.
*/
public Long getFilesDeleted() {
return this.filesDeleted;
}
/**
*
* The number of files, objects, and directories that DataSync deleted in your destination location. If you don't configure your task to
* delete data in the destination that isn't in the source, the value is always 0
.
*
*
* @param filesDeleted
* The number of files, objects, and directories that DataSync deleted in your destination location. If you
* don't configure
* your task to delete data in the destination that isn't in the source, the value is always
* 0
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withFilesDeleted(Long filesDeleted) {
setFilesDeleted(filesDeleted);
return this;
}
/**
*
* The number of files, objects, and directories that DataSync skipped during your transfer.
*
*
* @param filesSkipped
* The number of files, objects, and directories that DataSync skipped during your transfer.
*/
public void setFilesSkipped(Long filesSkipped) {
this.filesSkipped = filesSkipped;
}
/**
*
* The number of files, objects, and directories that DataSync skipped during your transfer.
*
*
* @return The number of files, objects, and directories that DataSync skipped during your transfer.
*/
public Long getFilesSkipped() {
return this.filesSkipped;
}
/**
*
* The number of files, objects, and directories that DataSync skipped during your transfer.
*
*
* @param filesSkipped
* The number of files, objects, and directories that DataSync skipped during your transfer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withFilesSkipped(Long filesSkipped) {
setFilesSkipped(filesSkipped);
return this;
}
/**
*
* The number of files, objects, and directories that DataSync verified during your transfer.
*
*
*
* When you configure your task to verify only
* the data that's transferred, DataSync doesn't verify directories in some situations or files that fail to
* transfer.
*
*
*
* @param filesVerified
* The number of files, objects, and directories that DataSync verified during your transfer.
*
* When you configure your task to verify only the data that's transferred, DataSync doesn't verify directories in some situations or
* files that fail to transfer.
*
*/
public void setFilesVerified(Long filesVerified) {
this.filesVerified = filesVerified;
}
/**
*
* The number of files, objects, and directories that DataSync verified during your transfer.
*
*
*
* When you configure your task to verify only
* the data that's transferred, DataSync doesn't verify directories in some situations or files that fail to
* transfer.
*
*
*
* @return The number of files, objects, and directories that DataSync verified during your transfer.
*
* When you configure your task to verify only the data that's transferred, DataSync doesn't verify directories in some situations or
* files that fail to transfer.
*
*/
public Long getFilesVerified() {
return this.filesVerified;
}
/**
*
* The number of files, objects, and directories that DataSync verified during your transfer.
*
*
*
* When you configure your task to verify only
* the data that's transferred, DataSync doesn't verify directories in some situations or files that fail to
* transfer.
*
*
*
* @param filesVerified
* The number of files, objects, and directories that DataSync verified during your transfer.
*
* When you configure your task to verify only the data that's transferred, DataSync doesn't verify directories in some situations or
* files that fail to transfer.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withFilesVerified(Long filesVerified) {
setFilesVerified(filesVerified);
return this;
}
/**
*
* Indicates whether DataSync generated a complete task report for your transfer.
*
*
* @param reportResult
* Indicates whether DataSync generated a complete task report for your
* transfer.
*/
public void setReportResult(ReportResult reportResult) {
this.reportResult = reportResult;
}
/**
*
* Indicates whether DataSync generated a complete task report for your transfer.
*
*
* @return Indicates whether DataSync generated a complete task report for your
* transfer.
*/
public ReportResult getReportResult() {
return this.reportResult;
}
/**
*
* Indicates whether DataSync generated a complete task report for your transfer.
*
*
* @param reportResult
* Indicates whether DataSync generated a complete task report for your
* transfer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withReportResult(ReportResult reportResult) {
setReportResult(reportResult);
return this;
}
/**
*
* The expected number of files, objects, and directories that DataSync will delete in your destination location. If
* you don't configure your
* task to delete data in the destination that isn't in the source, the value is always 0
.
*
*
* @param estimatedFilesToDelete
* The expected number of files, objects, and directories that DataSync will delete in your destination
* location. If you don't configure your
* task to delete data in the destination that isn't in the source, the value is always 0
.
*/
public void setEstimatedFilesToDelete(Long estimatedFilesToDelete) {
this.estimatedFilesToDelete = estimatedFilesToDelete;
}
/**
*
* The expected number of files, objects, and directories that DataSync will delete in your destination location. If
* you don't configure your
* task to delete data in the destination that isn't in the source, the value is always 0
.
*
*
* @return The expected number of files, objects, and directories that DataSync will delete in your destination
* location. If you don't configure your
* task to delete data in the destination that isn't in the source, the value is always 0
.
*/
public Long getEstimatedFilesToDelete() {
return this.estimatedFilesToDelete;
}
/**
*
* The expected number of files, objects, and directories that DataSync will delete in your destination location. If
* you don't configure your
* task to delete data in the destination that isn't in the source, the value is always 0
.
*
*
* @param estimatedFilesToDelete
* The expected number of files, objects, and directories that DataSync will delete in your destination
* location. If you don't configure your
* task to delete data in the destination that isn't in the source, the value is always 0
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskExecutionResult withEstimatedFilesToDelete(Long estimatedFilesToDelete) {
setEstimatedFilesToDelete(estimatedFilesToDelete);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getTaskExecutionArn() != null)
sb.append("TaskExecutionArn: ").append(getTaskExecutionArn()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getOptions() != null)
sb.append("Options: ").append(getOptions()).append(",");
if (getExcludes() != null)
sb.append("Excludes: ").append(getExcludes()).append(",");
if (getIncludes() != null)
sb.append("Includes: ").append(getIncludes()).append(",");
if (getManifestConfig() != null)
sb.append("ManifestConfig: ").append(getManifestConfig()).append(",");
if (getStartTime() != null)
sb.append("StartTime: ").append(getStartTime()).append(",");
if (getEstimatedFilesToTransfer() != null)
sb.append("EstimatedFilesToTransfer: ").append(getEstimatedFilesToTransfer()).append(",");
if (getEstimatedBytesToTransfer() != null)
sb.append("EstimatedBytesToTransfer: ").append(getEstimatedBytesToTransfer()).append(",");
if (getFilesTransferred() != null)
sb.append("FilesTransferred: ").append(getFilesTransferred()).append(",");
if (getBytesWritten() != null)
sb.append("BytesWritten: ").append(getBytesWritten()).append(",");
if (getBytesTransferred() != null)
sb.append("BytesTransferred: ").append(getBytesTransferred()).append(",");
if (getBytesCompressed() != null)
sb.append("BytesCompressed: ").append(getBytesCompressed()).append(",");
if (getResult() != null)
sb.append("Result: ").append(getResult()).append(",");
if (getTaskReportConfig() != null)
sb.append("TaskReportConfig: ").append(getTaskReportConfig()).append(",");
if (getFilesDeleted() != null)
sb.append("FilesDeleted: ").append(getFilesDeleted()).append(",");
if (getFilesSkipped() != null)
sb.append("FilesSkipped: ").append(getFilesSkipped()).append(",");
if (getFilesVerified() != null)
sb.append("FilesVerified: ").append(getFilesVerified()).append(",");
if (getReportResult() != null)
sb.append("ReportResult: ").append(getReportResult()).append(",");
if (getEstimatedFilesToDelete() != null)
sb.append("EstimatedFilesToDelete: ").append(getEstimatedFilesToDelete());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeTaskExecutionResult == false)
return false;
DescribeTaskExecutionResult other = (DescribeTaskExecutionResult) obj;
if (other.getTaskExecutionArn() == null ^ this.getTaskExecutionArn() == null)
return false;
if (other.getTaskExecutionArn() != null && other.getTaskExecutionArn().equals(this.getTaskExecutionArn()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getOptions() == null ^ this.getOptions() == null)
return false;
if (other.getOptions() != null && other.getOptions().equals(this.getOptions()) == false)
return false;
if (other.getExcludes() == null ^ this.getExcludes() == null)
return false;
if (other.getExcludes() != null && other.getExcludes().equals(this.getExcludes()) == false)
return false;
if (other.getIncludes() == null ^ this.getIncludes() == null)
return false;
if (other.getIncludes() != null && other.getIncludes().equals(this.getIncludes()) == false)
return false;
if (other.getManifestConfig() == null ^ this.getManifestConfig() == null)
return false;
if (other.getManifestConfig() != null && other.getManifestConfig().equals(this.getManifestConfig()) == false)
return false;
if (other.getStartTime() == null ^ this.getStartTime() == null)
return false;
if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false)
return false;
if (other.getEstimatedFilesToTransfer() == null ^ this.getEstimatedFilesToTransfer() == null)
return false;
if (other.getEstimatedFilesToTransfer() != null && other.getEstimatedFilesToTransfer().equals(this.getEstimatedFilesToTransfer()) == false)
return false;
if (other.getEstimatedBytesToTransfer() == null ^ this.getEstimatedBytesToTransfer() == null)
return false;
if (other.getEstimatedBytesToTransfer() != null && other.getEstimatedBytesToTransfer().equals(this.getEstimatedBytesToTransfer()) == false)
return false;
if (other.getFilesTransferred() == null ^ this.getFilesTransferred() == null)
return false;
if (other.getFilesTransferred() != null && other.getFilesTransferred().equals(this.getFilesTransferred()) == false)
return false;
if (other.getBytesWritten() == null ^ this.getBytesWritten() == null)
return false;
if (other.getBytesWritten() != null && other.getBytesWritten().equals(this.getBytesWritten()) == false)
return false;
if (other.getBytesTransferred() == null ^ this.getBytesTransferred() == null)
return false;
if (other.getBytesTransferred() != null && other.getBytesTransferred().equals(this.getBytesTransferred()) == false)
return false;
if (other.getBytesCompressed() == null ^ this.getBytesCompressed() == null)
return false;
if (other.getBytesCompressed() != null && other.getBytesCompressed().equals(this.getBytesCompressed()) == false)
return false;
if (other.getResult() == null ^ this.getResult() == null)
return false;
if (other.getResult() != null && other.getResult().equals(this.getResult()) == false)
return false;
if (other.getTaskReportConfig() == null ^ this.getTaskReportConfig() == null)
return false;
if (other.getTaskReportConfig() != null && other.getTaskReportConfig().equals(this.getTaskReportConfig()) == false)
return false;
if (other.getFilesDeleted() == null ^ this.getFilesDeleted() == null)
return false;
if (other.getFilesDeleted() != null && other.getFilesDeleted().equals(this.getFilesDeleted()) == false)
return false;
if (other.getFilesSkipped() == null ^ this.getFilesSkipped() == null)
return false;
if (other.getFilesSkipped() != null && other.getFilesSkipped().equals(this.getFilesSkipped()) == false)
return false;
if (other.getFilesVerified() == null ^ this.getFilesVerified() == null)
return false;
if (other.getFilesVerified() != null && other.getFilesVerified().equals(this.getFilesVerified()) == false)
return false;
if (other.getReportResult() == null ^ this.getReportResult() == null)
return false;
if (other.getReportResult() != null && other.getReportResult().equals(this.getReportResult()) == false)
return false;
if (other.getEstimatedFilesToDelete() == null ^ this.getEstimatedFilesToDelete() == null)
return false;
if (other.getEstimatedFilesToDelete() != null && other.getEstimatedFilesToDelete().equals(this.getEstimatedFilesToDelete()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getTaskExecutionArn() == null) ? 0 : getTaskExecutionArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getOptions() == null) ? 0 : getOptions().hashCode());
hashCode = prime * hashCode + ((getExcludes() == null) ? 0 : getExcludes().hashCode());
hashCode = prime * hashCode + ((getIncludes() == null) ? 0 : getIncludes().hashCode());
hashCode = prime * hashCode + ((getManifestConfig() == null) ? 0 : getManifestConfig().hashCode());
hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
hashCode = prime * hashCode + ((getEstimatedFilesToTransfer() == null) ? 0 : getEstimatedFilesToTransfer().hashCode());
hashCode = prime * hashCode + ((getEstimatedBytesToTransfer() == null) ? 0 : getEstimatedBytesToTransfer().hashCode());
hashCode = prime * hashCode + ((getFilesTransferred() == null) ? 0 : getFilesTransferred().hashCode());
hashCode = prime * hashCode + ((getBytesWritten() == null) ? 0 : getBytesWritten().hashCode());
hashCode = prime * hashCode + ((getBytesTransferred() == null) ? 0 : getBytesTransferred().hashCode());
hashCode = prime * hashCode + ((getBytesCompressed() == null) ? 0 : getBytesCompressed().hashCode());
hashCode = prime * hashCode + ((getResult() == null) ? 0 : getResult().hashCode());
hashCode = prime * hashCode + ((getTaskReportConfig() == null) ? 0 : getTaskReportConfig().hashCode());
hashCode = prime * hashCode + ((getFilesDeleted() == null) ? 0 : getFilesDeleted().hashCode());
hashCode = prime * hashCode + ((getFilesSkipped() == null) ? 0 : getFilesSkipped().hashCode());
hashCode = prime * hashCode + ((getFilesVerified() == null) ? 0 : getFilesVerified().hashCode());
hashCode = prime * hashCode + ((getReportResult() == null) ? 0 : getReportResult().hashCode());
hashCode = prime * hashCode + ((getEstimatedFilesToDelete() == null) ? 0 : getEstimatedFilesToDelete().hashCode());
return hashCode;
}
@Override
public DescribeTaskExecutionResult clone() {
try {
return (DescribeTaskExecutionResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}