/* * Copyright 2018-2023 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; /** ** Specifies a list of filter rules that exclude specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
*/ private java.util.List* 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; /** ** Specifies a list of filter rules that include specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
*/ private java.util.List* 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; } /** ** Specifies a list of filter rules that exclude specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
* * @return Specifies a list of filter rules that exclude specific data during your transfer. For more information * and examples, see Filtering data transferred by * DataSync. */ public java.util.List* Specifies a list of filter rules that exclude specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
* * @param excludes * Specifies a list of filter rules that exclude specific data during your transfer. For more information and * examples, see Filtering * data transferred by DataSync. */ public void setExcludes(java.util.Collection* Specifies a list of filter rules that exclude specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setExcludes(java.util.Collection)} or {@link #withExcludes(java.util.Collection)} if you want to override * the existing values. *
* * @param excludes * Specifies a list of filter rules that exclude specific data during your transfer. For more information and * examples, see Filtering * data transferred by DataSync. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTaskRequest withExcludes(FilterRule... excludes) { if (this.excludes == null) { setExcludes(new java.util.ArrayList* Specifies a list of filter rules that exclude specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
* * @param excludes * Specifies a list of filter rules that exclude specific data during your transfer. For more information and * examples, see Filtering * data transferred by DataSync. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTaskRequest withExcludes(java.util.Collection* 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; } /** ** Specifies a list of filter rules that include specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
* * @return Specifies a list of filter rules that include specific data during your transfer. For more information * and examples, see Filtering data transferred by * DataSync. */ public java.util.List* Specifies a list of filter rules that include specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
* * @param includes * Specifies a list of filter rules that include specific data during your transfer. For more information and * examples, see Filtering * data transferred by DataSync. */ public void setIncludes(java.util.Collection* Specifies a list of filter rules that include specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIncludes(java.util.Collection)} or {@link #withIncludes(java.util.Collection)} if you want to override * the existing values. *
* * @param includes * Specifies a list of filter rules that include specific data during your transfer. For more information and * examples, see Filtering * data transferred by DataSync. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTaskRequest withIncludes(FilterRule... includes) { if (this.includes == null) { setIncludes(new java.util.ArrayList* Specifies a list of filter rules that include specific data during your transfer. For more information and * examples, see Filtering data * transferred by DataSync. *
* * @param includes * Specifies a list of filter rules that include specific data during your transfer. For more information and * examples, see Filtering * data transferred by DataSync. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateTaskRequest withIncludes(java.util.Collection