com.amazonaws.services.datasync.model.DescribeTaskResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-datasync Show documentation
/*
* Copyright 2017-2022 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;
/**
*
* DescribeTaskResponse
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeTaskResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the task that was described.
*
*/
private String taskArn;
/**
*
* The status of the task that was described.
*
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User
* Guide.
*
*/
private String status;
/**
*
* The name of the task that was described.
*
*/
private String name;
/**
*
* The Amazon Resource Name (ARN) of the task execution that is syncing files.
*
*/
private String currentTaskExecutionArn;
/**
*
* The Amazon Resource Name (ARN) of the source file system's location.
*
*/
private String sourceLocationArn;
/**
*
* The Amazon Resource Name (ARN) of the Amazon Web Services storage resource's location.
*
*/
private String destinationLocationArn;
/**
*
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events in the
* task.
*
*
* For more information on these groups, see Working with Log Groups and Log Streams in the Amazon CloudWatch
* User Guide.
*
*/
private String cloudWatchLogGroupArn;
/**
*
* The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for your
* subnet.
*
*/
private java.util.List sourceNetworkInterfaceArns;
/**
*
* The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created for your
* subnet.
*
*/
private java.util.List destinationNetworkInterfaceArns;
/**
*
* The set of configuration options that control the behavior of a single execution of the task that occurs when you
* call StartTaskExecution
. You can configure these options to preserve metadata such as user ID (UID)
* and group (GID), file permissions, data integrity verification, and so on.
*
*
* For each individual task execution, you can override these options by specifying the overriding
* OverrideOptions
value to StartTaskExecution
* operation.
*
*/
private Options options;
/**
*
* 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"
.
*
*
*
*/
private java.util.List excludes;
/**
*
* The schedule used to periodically transfer files from a source to a destination location.
*
*/
private TaskSchedule schedule;
/**
*
* Errors that DataSync encountered during execution of the task. You can use this error code to help troubleshoot
* issues.
*
*/
private String errorCode;
/**
*
* Detailed description of an error that was encountered during the task execution. You can use this information to
* help troubleshoot issues.
*
*/
private String errorDetail;
/**
*
* The time that the task was created.
*
*/
private java.util.Date creationTime;
/**
*
* A list of filter rules that determines which files to include when running a task. The pattern contains a single
* filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2
".
*
*/
private java.util.List includes;
/**
*
* The Amazon Resource Name (ARN) of the task that was described.
*
*
* @param taskArn
* The Amazon Resource Name (ARN) of the task that was described.
*/
public void setTaskArn(String taskArn) {
this.taskArn = taskArn;
}
/**
*
* The Amazon Resource Name (ARN) of the task that was described.
*
*
* @return The Amazon Resource Name (ARN) of the task that was described.
*/
public String getTaskArn() {
return this.taskArn;
}
/**
*
* The Amazon Resource Name (ARN) of the task that was described.
*
*
* @param taskArn
* The Amazon Resource Name (ARN) of the task that was described.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withTaskArn(String taskArn) {
setTaskArn(taskArn);
return this;
}
/**
*
* The status of the task that was described.
*
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User
* Guide.
*
*
* @param status
* The status of the task that was described.
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync
* User Guide.
* @see TaskStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the task that was described.
*
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User
* Guide.
*
*
* @return The status of the task that was described.
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the
* DataSync User Guide.
* @see TaskStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the task that was described.
*
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User
* Guide.
*
*
* @param status
* The status of the task that was described.
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync
* User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskStatus
*/
public DescribeTaskResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the task that was described.
*
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync User
* Guide.
*
*
* @param status
* The status of the task that was described.
*
* For detailed information about task execution statuses, see Understanding Task Statuses in the DataSync
* User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TaskStatus
*/
public DescribeTaskResult withStatus(TaskStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The name of the task that was described.
*
*
* @param name
* The name of the task that was described.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the task that was described.
*
*
* @return The name of the task that was described.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the task that was described.
*
*
* @param name
* The name of the task that was described.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withName(String name) {
setName(name);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the task execution that is syncing files.
*
*
* @param currentTaskExecutionArn
* The Amazon Resource Name (ARN) of the task execution that is syncing files.
*/
public void setCurrentTaskExecutionArn(String currentTaskExecutionArn) {
this.currentTaskExecutionArn = currentTaskExecutionArn;
}
/**
*
* The Amazon Resource Name (ARN) of the task execution that is syncing files.
*
*
* @return The Amazon Resource Name (ARN) of the task execution that is syncing files.
*/
public String getCurrentTaskExecutionArn() {
return this.currentTaskExecutionArn;
}
/**
*
* The Amazon Resource Name (ARN) of the task execution that is syncing files.
*
*
* @param currentTaskExecutionArn
* The Amazon Resource Name (ARN) of the task execution that is syncing files.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withCurrentTaskExecutionArn(String currentTaskExecutionArn) {
setCurrentTaskExecutionArn(currentTaskExecutionArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the source file system's location.
*
*
* @param sourceLocationArn
* The Amazon Resource Name (ARN) of the source file system's location.
*/
public void setSourceLocationArn(String sourceLocationArn) {
this.sourceLocationArn = sourceLocationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the source file system's location.
*
*
* @return The Amazon Resource Name (ARN) of the source file system's location.
*/
public String getSourceLocationArn() {
return this.sourceLocationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the source file system's location.
*
*
* @param sourceLocationArn
* The Amazon Resource Name (ARN) of the source file system's location.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withSourceLocationArn(String sourceLocationArn) {
setSourceLocationArn(sourceLocationArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon Web Services storage resource's location.
*
*
* @param destinationLocationArn
* The Amazon Resource Name (ARN) of the Amazon Web Services storage resource's location.
*/
public void setDestinationLocationArn(String destinationLocationArn) {
this.destinationLocationArn = destinationLocationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon Web Services storage resource's location.
*
*
* @return The Amazon Resource Name (ARN) of the Amazon Web Services storage resource's location.
*/
public String getDestinationLocationArn() {
return this.destinationLocationArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon Web Services storage resource's location.
*
*
* @param destinationLocationArn
* The Amazon Resource Name (ARN) of the Amazon Web Services storage resource's location.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withDestinationLocationArn(String destinationLocationArn) {
setDestinationLocationArn(destinationLocationArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events in the
* task.
*
*
* For more information on these groups, see Working with Log Groups and Log Streams in the Amazon CloudWatch
* User Guide.
*
*
* @param cloudWatchLogGroupArn
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events
* in the task.
*
* For more information on these groups, see Working with Log Groups and Log Streams in the Amazon
* CloudWatch User Guide.
*/
public void setCloudWatchLogGroupArn(String cloudWatchLogGroupArn) {
this.cloudWatchLogGroupArn = cloudWatchLogGroupArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events in the
* task.
*
*
* For more information on these groups, see Working with Log Groups and Log Streams in the Amazon CloudWatch
* User Guide.
*
*
* @return The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events
* in the task.
*
* For more information on these groups, see Working with Log Groups and Log Streams in the Amazon
* CloudWatch User Guide.
*/
public String getCloudWatchLogGroupArn() {
return this.cloudWatchLogGroupArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events in the
* task.
*
*
* For more information on these groups, see Working with Log Groups and Log Streams in the Amazon CloudWatch
* User Guide.
*
*
* @param cloudWatchLogGroupArn
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that was used to monitor and log events
* in the task.
*
* For more information on these groups, see Working with Log Groups and Log Streams in the Amazon
* CloudWatch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withCloudWatchLogGroupArn(String cloudWatchLogGroupArn) {
setCloudWatchLogGroupArn(cloudWatchLogGroupArn);
return this;
}
/**
*
* The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for your
* subnet.
*
*
* @return The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for
* your subnet.
*/
public java.util.List getSourceNetworkInterfaceArns() {
return sourceNetworkInterfaceArns;
}
/**
*
* The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for your
* subnet.
*
*
* @param sourceNetworkInterfaceArns
* The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for
* your subnet.
*/
public void setSourceNetworkInterfaceArns(java.util.Collection sourceNetworkInterfaceArns) {
if (sourceNetworkInterfaceArns == null) {
this.sourceNetworkInterfaceArns = null;
return;
}
this.sourceNetworkInterfaceArns = new java.util.ArrayList(sourceNetworkInterfaceArns);
}
/**
*
* The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for your
* subnet.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSourceNetworkInterfaceArns(java.util.Collection)} or
* {@link #withSourceNetworkInterfaceArns(java.util.Collection)} if you want to override the existing values.
*
*
* @param sourceNetworkInterfaceArns
* The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for
* your subnet.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withSourceNetworkInterfaceArns(String... sourceNetworkInterfaceArns) {
if (this.sourceNetworkInterfaceArns == null) {
setSourceNetworkInterfaceArns(new java.util.ArrayList(sourceNetworkInterfaceArns.length));
}
for (String ele : sourceNetworkInterfaceArns) {
this.sourceNetworkInterfaceArns.add(ele);
}
return this;
}
/**
*
* The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for your
* subnet.
*
*
* @param sourceNetworkInterfaceArns
* The Amazon Resource Names (ARNs) of the source elastic network interfaces (ENIs) that were created for
* your subnet.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withSourceNetworkInterfaceArns(java.util.Collection sourceNetworkInterfaceArns) {
setSourceNetworkInterfaceArns(sourceNetworkInterfaceArns);
return this;
}
/**
*
* The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created for your
* subnet.
*
*
* @return The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created
* for your subnet.
*/
public java.util.List getDestinationNetworkInterfaceArns() {
return destinationNetworkInterfaceArns;
}
/**
*
* The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created for your
* subnet.
*
*
* @param destinationNetworkInterfaceArns
* The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created
* for your subnet.
*/
public void setDestinationNetworkInterfaceArns(java.util.Collection destinationNetworkInterfaceArns) {
if (destinationNetworkInterfaceArns == null) {
this.destinationNetworkInterfaceArns = null;
return;
}
this.destinationNetworkInterfaceArns = new java.util.ArrayList(destinationNetworkInterfaceArns);
}
/**
*
* The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created for your
* subnet.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDestinationNetworkInterfaceArns(java.util.Collection)} or
* {@link #withDestinationNetworkInterfaceArns(java.util.Collection)} if you want to override the existing values.
*
*
* @param destinationNetworkInterfaceArns
* The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created
* for your subnet.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withDestinationNetworkInterfaceArns(String... destinationNetworkInterfaceArns) {
if (this.destinationNetworkInterfaceArns == null) {
setDestinationNetworkInterfaceArns(new java.util.ArrayList(destinationNetworkInterfaceArns.length));
}
for (String ele : destinationNetworkInterfaceArns) {
this.destinationNetworkInterfaceArns.add(ele);
}
return this;
}
/**
*
* The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created for your
* subnet.
*
*
* @param destinationNetworkInterfaceArns
* The Amazon Resource Names (ARNs) of the destination elastic network interfaces (ENIs) that were created
* for your subnet.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withDestinationNetworkInterfaceArns(java.util.Collection destinationNetworkInterfaceArns) {
setDestinationNetworkInterfaceArns(destinationNetworkInterfaceArns);
return this;
}
/**
*
* The set of configuration options that control the behavior of a single execution of the task that occurs when you
* call StartTaskExecution
. You can configure these options to preserve metadata such as user ID (UID)
* and group (GID), file permissions, data integrity verification, and so on.
*
*
* For each individual task execution, you can override these options by specifying the overriding
* OverrideOptions
value to StartTaskExecution
* operation.
*
*
* @param options
* The set of configuration options that control the behavior of a single execution of the task that occurs
* when you call StartTaskExecution
. You can configure these options to preserve metadata such
* as user ID (UID) and group (GID), file permissions, data integrity verification, and so on.
*
* For each individual task execution, you can override these options by specifying the overriding
* OverrideOptions
value to StartTaskExecution operation.
*/
public void setOptions(Options options) {
this.options = options;
}
/**
*
* The set of configuration options that control the behavior of a single execution of the task that occurs when you
* call StartTaskExecution
. You can configure these options to preserve metadata such as user ID (UID)
* and group (GID), file permissions, data integrity verification, and so on.
*
*
* For each individual task execution, you can override these options by specifying the overriding
* OverrideOptions
value to StartTaskExecution
* operation.
*
*
* @return The set of configuration options that control the behavior of a single execution of the task that occurs
* when you call StartTaskExecution
. You can configure these options to preserve metadata such
* as user ID (UID) and group (GID), file permissions, data integrity verification, and so on.
*
* For each individual task execution, you can override these options by specifying the overriding
* OverrideOptions
value to StartTaskExecution operation.
*/
public Options getOptions() {
return this.options;
}
/**
*
* The set of configuration options that control the behavior of a single execution of the task that occurs when you
* call StartTaskExecution
. You can configure these options to preserve metadata such as user ID (UID)
* and group (GID), file permissions, data integrity verification, and so on.
*
*
* For each individual task execution, you can override these options by specifying the overriding
* OverrideOptions
value to StartTaskExecution
* operation.
*
*
* @param options
* The set of configuration options that control the behavior of a single execution of the task that occurs
* when you call StartTaskExecution
. You can configure these options to preserve metadata such
* as user ID (UID) and group (GID), file permissions, data integrity verification, and so on.
*
* For each individual task execution, you can override these options by specifying the overriding
* OverrideOptions
value to StartTaskExecution operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withOptions(Options options) {
setOptions(options);
return this;
}
/**
*
* 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"
.
*
*
*
*
* @return 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"
.
*
*/
public java.util.List getExcludes() {
return 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"
.
*
*
*
*
* @param 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"
.
*
*/
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 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"
.
*
*
*
*
* 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 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"
.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult 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 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"
.
*
*
*
*
* @param 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"
.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withExcludes(java.util.Collection excludes) {
setExcludes(excludes);
return this;
}
/**
*
* The schedule used to periodically transfer files from a source to a destination location.
*
*
* @param schedule
* The schedule used to periodically transfer files from a source to a destination location.
*/
public void setSchedule(TaskSchedule schedule) {
this.schedule = schedule;
}
/**
*
* The schedule used to periodically transfer files from a source to a destination location.
*
*
* @return The schedule used to periodically transfer files from a source to a destination location.
*/
public TaskSchedule getSchedule() {
return this.schedule;
}
/**
*
* The schedule used to periodically transfer files from a source to a destination location.
*
*
* @param schedule
* The schedule used to periodically transfer files from a source to a destination location.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withSchedule(TaskSchedule schedule) {
setSchedule(schedule);
return this;
}
/**
*
* Errors that DataSync encountered during execution of the task. You can use this error code to help troubleshoot
* issues.
*
*
* @param errorCode
* Errors that DataSync encountered during execution of the task. You can use this error code to help
* troubleshoot issues.
*/
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
/**
*
* Errors that DataSync encountered during execution of the task. You can use this error code to help troubleshoot
* issues.
*
*
* @return Errors that DataSync encountered during execution of the task. You can use this error code to help
* troubleshoot issues.
*/
public String getErrorCode() {
return this.errorCode;
}
/**
*
* Errors that DataSync encountered during execution of the task. You can use this error code to help troubleshoot
* issues.
*
*
* @param errorCode
* Errors that DataSync encountered during execution of the task. You can use this error code to help
* troubleshoot issues.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withErrorCode(String errorCode) {
setErrorCode(errorCode);
return this;
}
/**
*
* Detailed description of an error that was encountered during the task execution. You can use this information to
* help troubleshoot issues.
*
*
* @param errorDetail
* Detailed description of an error that was encountered during the task execution. You can use this
* information to help troubleshoot issues.
*/
public void setErrorDetail(String errorDetail) {
this.errorDetail = errorDetail;
}
/**
*
* Detailed description of an error that was encountered during the task execution. You can use this information to
* help troubleshoot issues.
*
*
* @return Detailed description of an error that was encountered during the task execution. You can use this
* information to help troubleshoot issues.
*/
public String getErrorDetail() {
return this.errorDetail;
}
/**
*
* Detailed description of an error that was encountered during the task execution. You can use this information to
* help troubleshoot issues.
*
*
* @param errorDetail
* Detailed description of an error that was encountered during the task execution. You can use this
* information to help troubleshoot issues.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withErrorDetail(String errorDetail) {
setErrorDetail(errorDetail);
return this;
}
/**
*
* The time that the task was created.
*
*
* @param creationTime
* The time that the task was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The time that the task was created.
*
*
* @return The time that the task was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The time that the task was created.
*
*
* @param creationTime
* The time that the task was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* A list of filter rules that determines which files to include when running a task. The pattern contains a single
* filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2
".
*
*
* @return A list of filter rules that determines which files to include when running a task. The pattern contains a
* single filter string that consists of the patterns to include. The patterns are delimited by "|" (that
* is, a pipe), for example, "/folder1|/folder2
".
*/
public java.util.List getIncludes() {
return includes;
}
/**
*
* A list of filter rules that determines which files to include when running a task. The pattern contains a single
* filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2
".
*
*
* @param includes
* A list of filter rules that determines which files to include when running a task. The pattern contains a
* single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is,
* a pipe), for example, "/folder1|/folder2
".
*/
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 determines which files to include when running a task. The pattern contains a single
* filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2
".
*
*
* 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 determines which files to include when running a task. The pattern contains a
* single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is,
* a pipe), for example, "/folder1|/folder2
".
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult 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 determines which files to include when running a task. The pattern contains a single
* filter string that consists of the patterns to include. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2
".
*
*
* @param includes
* A list of filter rules that determines which files to include when running a task. The pattern contains a
* single filter string that consists of the patterns to include. The patterns are delimited by "|" (that is,
* a pipe), for example, "/folder1|/folder2
".
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeTaskResult withIncludes(java.util.Collection includes) {
setIncludes(includes);
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 (getTaskArn() != null)
sb.append("TaskArn: ").append(getTaskArn()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getCurrentTaskExecutionArn() != null)
sb.append("CurrentTaskExecutionArn: ").append(getCurrentTaskExecutionArn()).append(",");
if (getSourceLocationArn() != null)
sb.append("SourceLocationArn: ").append(getSourceLocationArn()).append(",");
if (getDestinationLocationArn() != null)
sb.append("DestinationLocationArn: ").append(getDestinationLocationArn()).append(",");
if (getCloudWatchLogGroupArn() != null)
sb.append("CloudWatchLogGroupArn: ").append(getCloudWatchLogGroupArn()).append(",");
if (getSourceNetworkInterfaceArns() != null)
sb.append("SourceNetworkInterfaceArns: ").append(getSourceNetworkInterfaceArns()).append(",");
if (getDestinationNetworkInterfaceArns() != null)
sb.append("DestinationNetworkInterfaceArns: ").append(getDestinationNetworkInterfaceArns()).append(",");
if (getOptions() != null)
sb.append("Options: ").append(getOptions()).append(",");
if (getExcludes() != null)
sb.append("Excludes: ").append(getExcludes()).append(",");
if (getSchedule() != null)
sb.append("Schedule: ").append(getSchedule()).append(",");
if (getErrorCode() != null)
sb.append("ErrorCode: ").append(getErrorCode()).append(",");
if (getErrorDetail() != null)
sb.append("ErrorDetail: ").append(getErrorDetail()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getIncludes() != null)
sb.append("Includes: ").append(getIncludes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeTaskResult == false)
return false;
DescribeTaskResult other = (DescribeTaskResult) obj;
if (other.getTaskArn() == null ^ this.getTaskArn() == null)
return false;
if (other.getTaskArn() != null && other.getTaskArn().equals(this.getTaskArn()) == 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.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getCurrentTaskExecutionArn() == null ^ this.getCurrentTaskExecutionArn() == null)
return false;
if (other.getCurrentTaskExecutionArn() != null && other.getCurrentTaskExecutionArn().equals(this.getCurrentTaskExecutionArn()) == false)
return false;
if (other.getSourceLocationArn() == null ^ this.getSourceLocationArn() == null)
return false;
if (other.getSourceLocationArn() != null && other.getSourceLocationArn().equals(this.getSourceLocationArn()) == false)
return false;
if (other.getDestinationLocationArn() == null ^ this.getDestinationLocationArn() == null)
return false;
if (other.getDestinationLocationArn() != null && other.getDestinationLocationArn().equals(this.getDestinationLocationArn()) == false)
return false;
if (other.getCloudWatchLogGroupArn() == null ^ this.getCloudWatchLogGroupArn() == null)
return false;
if (other.getCloudWatchLogGroupArn() != null && other.getCloudWatchLogGroupArn().equals(this.getCloudWatchLogGroupArn()) == false)
return false;
if (other.getSourceNetworkInterfaceArns() == null ^ this.getSourceNetworkInterfaceArns() == null)
return false;
if (other.getSourceNetworkInterfaceArns() != null && other.getSourceNetworkInterfaceArns().equals(this.getSourceNetworkInterfaceArns()) == false)
return false;
if (other.getDestinationNetworkInterfaceArns() == null ^ this.getDestinationNetworkInterfaceArns() == null)
return false;
if (other.getDestinationNetworkInterfaceArns() != null
&& other.getDestinationNetworkInterfaceArns().equals(this.getDestinationNetworkInterfaceArns()) == 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.getSchedule() == null ^ this.getSchedule() == null)
return false;
if (other.getSchedule() != null && other.getSchedule().equals(this.getSchedule()) == false)
return false;
if (other.getErrorCode() == null ^ this.getErrorCode() == null)
return false;
if (other.getErrorCode() != null && other.getErrorCode().equals(this.getErrorCode()) == false)
return false;
if (other.getErrorDetail() == null ^ this.getErrorDetail() == null)
return false;
if (other.getErrorDetail() != null && other.getErrorDetail().equals(this.getErrorDetail()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getIncludes() == null ^ this.getIncludes() == null)
return false;
if (other.getIncludes() != null && other.getIncludes().equals(this.getIncludes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getTaskArn() == null) ? 0 : getTaskArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getCurrentTaskExecutionArn() == null) ? 0 : getCurrentTaskExecutionArn().hashCode());
hashCode = prime * hashCode + ((getSourceLocationArn() == null) ? 0 : getSourceLocationArn().hashCode());
hashCode = prime * hashCode + ((getDestinationLocationArn() == null) ? 0 : getDestinationLocationArn().hashCode());
hashCode = prime * hashCode + ((getCloudWatchLogGroupArn() == null) ? 0 : getCloudWatchLogGroupArn().hashCode());
hashCode = prime * hashCode + ((getSourceNetworkInterfaceArns() == null) ? 0 : getSourceNetworkInterfaceArns().hashCode());
hashCode = prime * hashCode + ((getDestinationNetworkInterfaceArns() == null) ? 0 : getDestinationNetworkInterfaceArns().hashCode());
hashCode = prime * hashCode + ((getOptions() == null) ? 0 : getOptions().hashCode());
hashCode = prime * hashCode + ((getExcludes() == null) ? 0 : getExcludes().hashCode());
hashCode = prime * hashCode + ((getSchedule() == null) ? 0 : getSchedule().hashCode());
hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode());
hashCode = prime * hashCode + ((getErrorDetail() == null) ? 0 : getErrorDetail().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getIncludes() == null) ? 0 : getIncludes().hashCode());
return hashCode;
}
@Override
public DescribeTaskResult clone() {
try {
return (DescribeTaskResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}