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

com.amazonaws.services.datasync.model.UpdateTaskRequest 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 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;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* UpdateTaskResponse *

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

* The Amazon Resource Name (ARN) of the resource name of the task to update. *

*/ private String taskArn; 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; /** *

* Specifies a schedule used to periodically transfer files from a source to a destination location. You can * configure your task to execute hourly, daily, weekly or on specific days of the week. You control when in the day * or hour you want the task to execute. The time you specify is UTC time. For more information, see Scheduling your task. *

*/ private TaskSchedule schedule; /** *

* The name of the task to update. *

*/ private String name; /** *

* The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group. *

*/ private String cloudWatchLogGroupArn; /** *

* 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 resource name of the task to update. *

* * @param taskArn * The Amazon Resource Name (ARN) of the resource name of the task to update. */ public void setTaskArn(String taskArn) { this.taskArn = taskArn; } /** *

* The Amazon Resource Name (ARN) of the resource name of the task to update. *

* * @return The Amazon Resource Name (ARN) of the resource name of the task to update. */ public String getTaskArn() { return this.taskArn; } /** *

* The Amazon Resource Name (ARN) of the resource name of the task to update. *

* * @param taskArn * The Amazon Resource Name (ARN) of the resource name of the task to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTaskRequest withTaskArn(String taskArn) { setTaskArn(taskArn); 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 UpdateTaskRequest 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 UpdateTaskRequest 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 UpdateTaskRequest withExcludes(java.util.Collection excludes) { setExcludes(excludes); return this; } /** *

* Specifies a schedule used to periodically transfer files from a source to a destination location. You can * configure your task to execute hourly, daily, weekly or on specific days of the week. You control when in the day * or hour you want the task to execute. The time you specify is UTC time. For more information, see Scheduling your task. *

* * @param schedule * Specifies a schedule used to periodically transfer files from a source to a destination location. You can * configure your task to execute hourly, daily, weekly or on specific days of the week. You control when in * the day or hour you want the task to execute. The time you specify is UTC time. For more information, see * Scheduling your * task. */ public void setSchedule(TaskSchedule schedule) { this.schedule = schedule; } /** *

* Specifies a schedule used to periodically transfer files from a source to a destination location. You can * configure your task to execute hourly, daily, weekly or on specific days of the week. You control when in the day * or hour you want the task to execute. The time you specify is UTC time. For more information, see Scheduling your task. *

* * @return Specifies a schedule used to periodically transfer files from a source to a destination location. You can * configure your task to execute hourly, daily, weekly or on specific days of the week. You control when in * the day or hour you want the task to execute. The time you specify is UTC time. For more information, see * Scheduling your * task. */ public TaskSchedule getSchedule() { return this.schedule; } /** *

* Specifies a schedule used to periodically transfer files from a source to a destination location. You can * configure your task to execute hourly, daily, weekly or on specific days of the week. You control when in the day * or hour you want the task to execute. The time you specify is UTC time. For more information, see Scheduling your task. *

* * @param schedule * Specifies a schedule used to periodically transfer files from a source to a destination location. You can * configure your task to execute hourly, daily, weekly or on specific days of the week. You control when in * the day or hour you want the task to execute. The time you specify is UTC time. For more information, see * Scheduling your * task. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTaskRequest withSchedule(TaskSchedule schedule) { setSchedule(schedule); return this; } /** *

* The name of the task to update. *

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

* The name of the task to update. *

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

* The name of the task to update. *

* * @param name * The name of the task to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTaskRequest withName(String name) { setName(name); return this; } /** *

* The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group. *

* * @param cloudWatchLogGroupArn * The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group. */ public void setCloudWatchLogGroupArn(String cloudWatchLogGroupArn) { this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; } /** *

* The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group. *

* * @return The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group. */ public String getCloudWatchLogGroupArn() { return this.cloudWatchLogGroupArn; } /** *

* The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group. *

* * @param cloudWatchLogGroupArn * The Amazon Resource Name (ARN) of the resource name of the Amazon CloudWatch log group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTaskRequest withCloudWatchLogGroupArn(String cloudWatchLogGroupArn) { setCloudWatchLogGroupArn(cloudWatchLogGroupArn); 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 UpdateTaskRequest 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 UpdateTaskRequest 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 (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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getCloudWatchLogGroupArn() != null) sb.append("CloudWatchLogGroupArn: ").append(getCloudWatchLogGroupArn()).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 UpdateTaskRequest == false) return false; UpdateTaskRequest other = (UpdateTaskRequest) obj; if (other.getTaskArn() == null ^ this.getTaskArn() == null) return false; if (other.getTaskArn() != null && other.getTaskArn().equals(this.getTaskArn()) == 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.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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.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 + ((getOptions() == null) ? 0 : getOptions().hashCode()); hashCode = prime * hashCode + ((getExcludes() == null) ? 0 : getExcludes().hashCode()); hashCode = prime * hashCode + ((getSchedule() == null) ? 0 : getSchedule().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLogGroupArn() == null) ? 0 : getCloudWatchLogGroupArn().hashCode()); hashCode = prime * hashCode + ((getIncludes() == null) ? 0 : getIncludes().hashCode()); return hashCode; } @Override public UpdateTaskRequest clone() { return (UpdateTaskRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy