All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.datasync.model.DescribeTaskResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS DataSync module holds the client classes that are used for communicating with AWS DataSync Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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;

/**
 * 

* DescribeTaskResponse *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeTaskResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The ARN of your task. *

*/ private String taskArn; /** *

* The status of your task. For information about what each status means, see Task statuses. *

*/ private String status; /** *

* The name of your task. *

*/ private String name; /** *

* The ARN of the most recent task execution. *

*/ private String currentTaskExecutionArn; /** *

* The ARN of your transfer's source location. *

*/ private String sourceLocationArn; /** *

* The ARN of your transfer's destination location. *

*/ private String destinationLocationArn; /** *

* The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. *

*

* For more information, see Monitoring DataSync with * Amazon CloudWatch. *

*/ private String cloudWatchLogGroupArn; /** *

* The ARNs of the network interfaces that DataSync created for your source location. *

*/ private java.util.List sourceNetworkInterfaceArns; /** *

* The ARNs of the network interfaces that DataSync created for your destination location. *

*/ private java.util.List destinationNetworkInterfaceArns; /** *

* The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at the end * of your transfer, bandwidth limits, among other options. *

*/ private Options options; /** *

* The exclude filters that define the files, objects, and folders in your source location that you don't want * DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

*/ private java.util.List excludes; /** *

* The schedule for when you want your task to run. For more information, see Scheduling your task. *

*/ private TaskSchedule schedule; /** *

* If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For more * information, see Troubleshooting issues with DataSync transfers. *

*/ private String errorCode; /** *

* If there's an issue with your task, you can use the error details to help you troubleshoot the problem. For more * information, see Troubleshooting issues with DataSync transfers. *

*/ private String errorDetail; /** *

* The time that the task was created. *

*/ private java.util.Date creationTime; /** *

* The include filters that define the files, objects, and folders in your source location that you want DataSync to * transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

*/ private java.util.List includes; /** *

* The configuration of the manifest that lists the files or objects that you want DataSync to transfer. For more * information, see Specifying what * DataSync transfers by using a manifest. *

*/ private ManifestConfig manifestConfig; /** *

* The configuration of your task report, which provides detailed information about your DataSync transfer. For more * information, see Monitoring * your DataSync transfers with task reports. *

*/ private TaskReportConfig taskReportConfig; /** *

* The details about your task * schedule. *

*/ private TaskScheduleDetails scheduleDetails; /** *

* The ARN of your task. *

* * @param taskArn * The ARN of your task. */ public void setTaskArn(String taskArn) { this.taskArn = taskArn; } /** *

* The ARN of your task. *

* * @return The ARN of your task. */ public String getTaskArn() { return this.taskArn; } /** *

* The ARN of your task. *

* * @param taskArn * The ARN of your task. * @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 your task. For information about what each status means, see Task statuses. *

* * @param status * The status of your task. For information about what each status means, see Task statuses. * @see TaskStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of your task. For information about what each status means, see Task statuses. *

* * @return The status of your task. For information about what each status means, see Task statuses. * @see TaskStatus */ public String getStatus() { return this.status; } /** *

* The status of your task. For information about what each status means, see Task statuses. *

* * @param status * The status of your task. For information about what each status means, see Task statuses. * @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 your task. For information about what each status means, see Task statuses. *

* * @param status * The status of your task. For information about what each status means, see Task statuses. * @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 your task. *

* * @param name * The name of your task. */ public void setName(String name) { this.name = name; } /** *

* The name of your task. *

* * @return The name of your task. */ public String getName() { return this.name; } /** *

* The name of your task. *

* * @param name * The name of your task. * @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 ARN of the most recent task execution. *

* * @param currentTaskExecutionArn * The ARN of the most recent task execution. */ public void setCurrentTaskExecutionArn(String currentTaskExecutionArn) { this.currentTaskExecutionArn = currentTaskExecutionArn; } /** *

* The ARN of the most recent task execution. *

* * @return The ARN of the most recent task execution. */ public String getCurrentTaskExecutionArn() { return this.currentTaskExecutionArn; } /** *

* The ARN of the most recent task execution. *

* * @param currentTaskExecutionArn * The ARN of the most recent task execution. * @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 ARN of your transfer's source location. *

* * @param sourceLocationArn * The ARN of your transfer's source location. */ public void setSourceLocationArn(String sourceLocationArn) { this.sourceLocationArn = sourceLocationArn; } /** *

* The ARN of your transfer's source location. *

* * @return The ARN of your transfer's source location. */ public String getSourceLocationArn() { return this.sourceLocationArn; } /** *

* The ARN of your transfer's source location. *

* * @param sourceLocationArn * The ARN of your transfer's source 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 ARN of your transfer's destination location. *

* * @param destinationLocationArn * The ARN of your transfer's destination location. */ public void setDestinationLocationArn(String destinationLocationArn) { this.destinationLocationArn = destinationLocationArn; } /** *

* The ARN of your transfer's destination location. *

* * @return The ARN of your transfer's destination location. */ public String getDestinationLocationArn() { return this.destinationLocationArn; } /** *

* The ARN of your transfer's destination location. *

* * @param destinationLocationArn * The ARN of your transfer's destination 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 an Amazon CloudWatch log group for monitoring your task. *

*

* For more information, see Monitoring DataSync with * Amazon CloudWatch. *

* * @param cloudWatchLogGroupArn * The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.

*

* For more information, see Monitoring DataSync * with Amazon CloudWatch. */ public void setCloudWatchLogGroupArn(String cloudWatchLogGroupArn) { this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; } /** *

* The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. *

*

* For more information, see Monitoring DataSync with * Amazon CloudWatch. *

* * @return The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.

*

* For more information, see Monitoring DataSync * with Amazon CloudWatch. */ public String getCloudWatchLogGroupArn() { return this.cloudWatchLogGroupArn; } /** *

* The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task. *

*

* For more information, see Monitoring DataSync with * Amazon CloudWatch. *

* * @param cloudWatchLogGroupArn * The Amazon Resource Name (ARN) of an Amazon CloudWatch log group for monitoring your task.

*

* For more information, see Monitoring DataSync * with Amazon CloudWatch. * @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 ARNs of the network interfaces that DataSync created for your source location. *

* * @return The ARNs of the network interfaces that DataSync created for your source location. */ public java.util.List getSourceNetworkInterfaceArns() { return sourceNetworkInterfaceArns; } /** *

* The ARNs of the network interfaces that DataSync created for your source location. *

* * @param sourceNetworkInterfaceArns * The ARNs of the network interfaces that DataSync created for your source location. */ public void setSourceNetworkInterfaceArns(java.util.Collection sourceNetworkInterfaceArns) { if (sourceNetworkInterfaceArns == null) { this.sourceNetworkInterfaceArns = null; return; } this.sourceNetworkInterfaceArns = new java.util.ArrayList(sourceNetworkInterfaceArns); } /** *

* The ARNs of the network interfaces that DataSync created for your source location. *

*

* 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 ARNs of the network interfaces that DataSync created for your source location. * @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 ARNs of the network interfaces that DataSync created for your source location. *

* * @param sourceNetworkInterfaceArns * The ARNs of the network interfaces that DataSync created for your source location. * @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 ARNs of the network interfaces that DataSync created for your destination location. *

* * @return The ARNs of the network interfaces that DataSync created for your destination location. */ public java.util.List getDestinationNetworkInterfaceArns() { return destinationNetworkInterfaceArns; } /** *

* The ARNs of the network interfaces that DataSync created for your destination location. *

* * @param destinationNetworkInterfaceArns * The ARNs of the network interfaces that DataSync created for your destination location. */ public void setDestinationNetworkInterfaceArns(java.util.Collection destinationNetworkInterfaceArns) { if (destinationNetworkInterfaceArns == null) { this.destinationNetworkInterfaceArns = null; return; } this.destinationNetworkInterfaceArns = new java.util.ArrayList(destinationNetworkInterfaceArns); } /** *

* The ARNs of the network interfaces that DataSync created for your destination location. *

*

* 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 ARNs of the network interfaces that DataSync created for your destination location. * @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 ARNs of the network interfaces that DataSync created for your destination location. *

* * @param destinationNetworkInterfaceArns * The ARNs of the network interfaces that DataSync created for your destination location. * @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 task's settings. For example, what file metadata gets preserved, how data integrity gets verified at the end * of your transfer, bandwidth limits, among other options. *

* * @param options * The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at * the end of your transfer, bandwidth limits, among other options. */ public void setOptions(Options options) { this.options = options; } /** *

* The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at the end * of your transfer, bandwidth limits, among other options. *

* * @return The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at * the end of your transfer, bandwidth limits, among other options. */ public Options getOptions() { return this.options; } /** *

* The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at the end * of your transfer, bandwidth limits, among other options. *

* * @param options * The task's settings. For example, what file metadata gets preserved, how data integrity gets verified at * the end of your transfer, bandwidth limits, among other options. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskResult withOptions(Options options) { setOptions(options); return this; } /** *

* The exclude filters that define the files, objects, and folders in your source location that you don't want * DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

* * @return The exclude filters that define the files, objects, and folders in your source location that you don't * want DataSync to transfer. For more information and examples, see Specifying what DataSync * transfers by using filters. */ public java.util.List getExcludes() { return excludes; } /** *

* The exclude filters that define the files, objects, and folders in your source location that you don't want * DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

* * @param excludes * The exclude filters that define the files, objects, and folders in your source location that you don't * want DataSync to transfer. For more information and examples, see Specifying what DataSync * transfers by using filters. */ public void setExcludes(java.util.Collection excludes) { if (excludes == null) { this.excludes = null; return; } this.excludes = new java.util.ArrayList(excludes); } /** *

* The exclude filters that define the files, objects, and folders in your source location that you don't want * DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

*

* 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 * The exclude filters that define the files, objects, and folders in your source location that you don't * want DataSync to transfer. For more information and examples, see Specifying what DataSync * transfers by using filters. * @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; } /** *

* The exclude filters that define the files, objects, and folders in your source location that you don't want * DataSync to transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

* * @param excludes * The exclude filters that define the files, objects, and folders in your source location that you don't * want DataSync to transfer. For more information and examples, see Specifying what DataSync * transfers by using filters. * @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 for when you want your task to run. For more information, see Scheduling your task. *

* * @param schedule * The schedule for when you want your task to run. For more information, see Scheduling your * task. */ public void setSchedule(TaskSchedule schedule) { this.schedule = schedule; } /** *

* The schedule for when you want your task to run. For more information, see Scheduling your task. *

* * @return The schedule for when you want your task to run. For more information, see Scheduling your * task. */ public TaskSchedule getSchedule() { return this.schedule; } /** *

* The schedule for when you want your task to run. For more information, see Scheduling your task. *

* * @param schedule * The schedule for when you want your task to run. For more information, see Scheduling your * task. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskResult withSchedule(TaskSchedule schedule) { setSchedule(schedule); return this; } /** *

* If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For more * information, see Troubleshooting issues with DataSync transfers. *

* * @param errorCode * If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For * more information, see Troubleshooting issues with DataSync transfers. */ public void setErrorCode(String errorCode) { this.errorCode = errorCode; } /** *

* If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For more * information, see Troubleshooting issues with DataSync transfers. *

* * @return If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For * more information, see Troubleshooting issues with DataSync transfers. */ public String getErrorCode() { return this.errorCode; } /** *

* If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For more * information, see Troubleshooting issues with DataSync transfers. *

* * @param errorCode * If there's an issue with your task, you can use the error code to help you troubleshoot the problem. For * more information, see Troubleshooting issues with DataSync transfers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskResult withErrorCode(String errorCode) { setErrorCode(errorCode); return this; } /** *

* If there's an issue with your task, you can use the error details to help you troubleshoot the problem. For more * information, see Troubleshooting issues with DataSync transfers. *

* * @param errorDetail * If there's an issue with your task, you can use the error details to help you troubleshoot the problem. * For more information, see Troubleshooting issues with DataSync transfers. */ public void setErrorDetail(String errorDetail) { this.errorDetail = errorDetail; } /** *

* If there's an issue with your task, you can use the error details to help you troubleshoot the problem. For more * information, see Troubleshooting issues with DataSync transfers. *

* * @return If there's an issue with your task, you can use the error details to help you troubleshoot the problem. * For more information, see Troubleshooting issues with DataSync transfers. */ public String getErrorDetail() { return this.errorDetail; } /** *

* If there's an issue with your task, you can use the error details to help you troubleshoot the problem. For more * information, see Troubleshooting issues with DataSync transfers. *

* * @param errorDetail * If there's an issue with your task, you can use the error details to help you troubleshoot the problem. * For more information, see Troubleshooting issues with DataSync transfers. * @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; } /** *

* The include filters that define the files, objects, and folders in your source location that you want DataSync to * transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

* * @return The include filters that define the files, objects, and folders in your source location that you want * DataSync to transfer. For more information and examples, see Specifying what DataSync * transfers by using filters. */ public java.util.List getIncludes() { return includes; } /** *

* The include filters that define the files, objects, and folders in your source location that you want DataSync to * transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

* * @param includes * The include filters that define the files, objects, and folders in your source location that you want * DataSync to transfer. For more information and examples, see Specifying what DataSync * transfers by using filters. */ public void setIncludes(java.util.Collection includes) { if (includes == null) { this.includes = null; return; } this.includes = new java.util.ArrayList(includes); } /** *

* The include filters that define the files, objects, and folders in your source location that you want DataSync to * transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

*

* 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 * The include filters that define the files, objects, and folders in your source location that you want * DataSync to transfer. For more information and examples, see Specifying what DataSync * transfers by using filters. * @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; } /** *

* The include filters that define the files, objects, and folders in your source location that you want DataSync to * transfer. For more information and examples, see Specifying what DataSync transfers by * using filters. *

* * @param includes * The include filters that define the files, objects, and folders in your source location that you want * DataSync to transfer. For more information and examples, see Specifying what DataSync * transfers by using filters. * @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; } /** *

* The configuration of the manifest that lists the files or objects that you want DataSync 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 that you want DataSync 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 that you want DataSync 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 that you want DataSync 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 that you want DataSync 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 that you want DataSync 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 DescribeTaskResult withManifestConfig(ManifestConfig manifestConfig) { setManifestConfig(manifestConfig); return this; } /** *

* The configuration of your task report, which provides detailed information about your DataSync transfer. For more * information, see Monitoring * your DataSync transfers with task reports. *

* * @param taskReportConfig * The configuration of your task report, which provides detailed information about your DataSync transfer. * For more information, see Monitoring your DataSync * transfers with task reports. */ public void setTaskReportConfig(TaskReportConfig taskReportConfig) { this.taskReportConfig = taskReportConfig; } /** *

* The configuration of your task report, which provides detailed information about your DataSync transfer. For more * information, see Monitoring * your DataSync transfers with task reports. *

* * @return The configuration of your task report, which provides detailed information about your DataSync transfer. * For more information, see Monitoring your DataSync * transfers with task reports. */ public TaskReportConfig getTaskReportConfig() { return this.taskReportConfig; } /** *

* The configuration of your task report, which provides detailed information about your DataSync transfer. For more * information, see Monitoring * your DataSync transfers with task reports. *

* * @param taskReportConfig * The configuration of your task report, which provides detailed information about your DataSync transfer. * For more information, see Monitoring your DataSync * transfers with task reports. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskResult withTaskReportConfig(TaskReportConfig taskReportConfig) { setTaskReportConfig(taskReportConfig); return this; } /** *

* The details about your task * schedule. *

* * @param scheduleDetails * The details about your task schedule. */ public void setScheduleDetails(TaskScheduleDetails scheduleDetails) { this.scheduleDetails = scheduleDetails; } /** *

* The details about your task * schedule. *

* * @return The details about your task schedule. */ public TaskScheduleDetails getScheduleDetails() { return this.scheduleDetails; } /** *

* The details about your task * schedule. *

* * @param scheduleDetails * The details about your task schedule. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTaskResult withScheduleDetails(TaskScheduleDetails scheduleDetails) { setScheduleDetails(scheduleDetails); 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()).append(","); if (getManifestConfig() != null) sb.append("ManifestConfig: ").append(getManifestConfig()).append(","); if (getTaskReportConfig() != null) sb.append("TaskReportConfig: ").append(getTaskReportConfig()).append(","); if (getScheduleDetails() != null) sb.append("ScheduleDetails: ").append(getScheduleDetails()); 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; if (other.getManifestConfig() == null ^ this.getManifestConfig() == null) return false; if (other.getManifestConfig() != null && other.getManifestConfig().equals(this.getManifestConfig()) == 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.getScheduleDetails() == null ^ this.getScheduleDetails() == null) return false; if (other.getScheduleDetails() != null && other.getScheduleDetails().equals(this.getScheduleDetails()) == 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()); hashCode = prime * hashCode + ((getManifestConfig() == null) ? 0 : getManifestConfig().hashCode()); hashCode = prime * hashCode + ((getTaskReportConfig() == null) ? 0 : getTaskReportConfig().hashCode()); hashCode = prime * hashCode + ((getScheduleDetails() == null) ? 0 : getScheduleDetails().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); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy