/* * 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; /** *
* CreateTaskRequest *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateTaskRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The Amazon Resource Name (ARN) of the source location for the task. *
*/ private String sourceLocationArn; /** ** The Amazon Resource Name (ARN) of an Amazon Web Services storage resource's location. *
*/ private String destinationLocationArn; /** ** The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the * task. *
*/ private String cloudWatchLogGroupArn; /** ** The name of a task. This value is a text reference that is used to identify the task in the console. *
*/ private String name; /** ** Specifies the configuration options for a task. Some options include preserving file or object metadata and * verifying data integrity. *
** You can also override these options before starting an individual run of a task (also known as a task * execution). For more information, see StartTaskExecution. *
*/ 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. The schedule * should be specified in UTC time. For more information, see Scheduling your task. *
*/ private TaskSchedule schedule; /** ** Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task. *
** Tags are key-value pairs that help you manage, filter, and search for your DataSync resources. *
*/ private 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. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the source location for the task. *
* * @param sourceLocationArn * The Amazon Resource Name (ARN) of the source location for the task. */ public void setSourceLocationArn(String sourceLocationArn) { this.sourceLocationArn = sourceLocationArn; } /** ** The Amazon Resource Name (ARN) of the source location for the task. *
* * @return The Amazon Resource Name (ARN) of the source location for the task. */ public String getSourceLocationArn() { return this.sourceLocationArn; } /** ** The Amazon Resource Name (ARN) of the source location for the task. *
* * @param sourceLocationArn * The Amazon Resource Name (ARN) of the source location for the task. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTaskRequest withSourceLocationArn(String sourceLocationArn) { setSourceLocationArn(sourceLocationArn); return this; } /** ** The Amazon Resource Name (ARN) of an Amazon Web Services storage resource's location. *
* * @param destinationLocationArn * The Amazon Resource Name (ARN) of an Amazon Web Services storage resource's location. */ public void setDestinationLocationArn(String destinationLocationArn) { this.destinationLocationArn = destinationLocationArn; } /** ** The Amazon Resource Name (ARN) of an Amazon Web Services storage resource's location. *
* * @return The Amazon Resource Name (ARN) of an Amazon Web Services storage resource's location. */ public String getDestinationLocationArn() { return this.destinationLocationArn; } /** ** The Amazon Resource Name (ARN) of an Amazon Web Services storage resource's location. *
* * @param destinationLocationArn * The Amazon Resource Name (ARN) of an Amazon Web Services storage resource's location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTaskRequest withDestinationLocationArn(String destinationLocationArn) { setDestinationLocationArn(destinationLocationArn); return this; } /** ** The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the * task. *
* * @param cloudWatchLogGroupArn * The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events * in the task. */ public void setCloudWatchLogGroupArn(String cloudWatchLogGroupArn) { this.cloudWatchLogGroupArn = cloudWatchLogGroupArn; } /** ** The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the * task. *
* * @return The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events * in the task. */ public String getCloudWatchLogGroupArn() { return this.cloudWatchLogGroupArn; } /** ** The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events in the * task. *
* * @param cloudWatchLogGroupArn * The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor and log events * in the task. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTaskRequest withCloudWatchLogGroupArn(String cloudWatchLogGroupArn) { setCloudWatchLogGroupArn(cloudWatchLogGroupArn); return this; } /** ** The name of a task. This value is a text reference that is used to identify the task in the console. *
* * @param name * The name of a task. This value is a text reference that is used to identify the task in the console. */ public void setName(String name) { this.name = name; } /** ** The name of a task. This value is a text reference that is used to identify the task in the console. *
* * @return The name of a task. This value is a text reference that is used to identify the task in the console. */ public String getName() { return this.name; } /** ** The name of a task. This value is a text reference that is used to identify the task in the console. *
* * @param name * The name of a task. This value is a text reference that is used to identify the task in the console. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTaskRequest withName(String name) { setName(name); return this; } /** ** Specifies the configuration options for a task. Some options include preserving file or object metadata and * verifying data integrity. *
** You can also override these options before starting an individual run of a task (also known as a task * execution). For more information, see StartTaskExecution. *
* * @param options * Specifies the configuration options for a task. Some options include preserving file or object metadata * and verifying data integrity. ** You can also override these options before starting an individual run of a task (also known as a task * execution). For more information, see StartTaskExecution. */ public void setOptions(Options options) { this.options = options; } /** *
* Specifies the configuration options for a task. Some options include preserving file or object metadata and * verifying data integrity. *
** You can also override these options before starting an individual run of a task (also known as a task * execution). For more information, see StartTaskExecution. *
* * @return Specifies the configuration options for a task. Some options include preserving file or object metadata * and verifying data integrity. ** You can also override these options before starting an individual run of a task (also known as a task * execution). For more information, see StartTaskExecution. */ public Options getOptions() { return this.options; } /** *
* Specifies the configuration options for a task. Some options include preserving file or object metadata and * verifying data integrity. *
** You can also override these options before starting an individual run of a task (also known as a task * execution). For more information, see StartTaskExecution. *
* * @param options * Specifies the configuration options for a task. Some options include preserving file or object metadata * and verifying data integrity. ** You can also override these options before starting an individual run of a task (also known as a task * execution). For more information, see StartTaskExecution. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateTaskRequest 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 CreateTaskRequest 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 CreateTaskRequest withExcludes(java.util.Collection* Specifies a schedule used to periodically transfer files from a source to a destination location. The schedule * should be specified in 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. The * schedule should be specified in 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. The schedule * should be specified in 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. The * schedule should be specified in 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. The schedule * should be specified in 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. The * schedule should be specified in 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 CreateTaskRequest withSchedule(TaskSchedule schedule) { setSchedule(schedule); return this; } /** ** Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task. *
** Tags are key-value pairs that help you manage, filter, and search for your DataSync resources. *
* * @return Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task. *
* Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
*/
public java.util.List
* Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.
*
* Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
*
* Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
*/
public void setTags(java.util.Collection
* Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.
*
* Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
* Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateTaskRequest withTags(TagListEntry... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList
* Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task.
*
* Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
*
* Tags are key-value pairs that help you manage, filter, and search for your DataSync resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateTaskRequest withTags(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.
*
* Specifies a list of filter rules that include specific data during your transfer. For more information and
* examples, see Filtering data
* transferred by DataSync.
*
* 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.
*
* Specifies a list of filter rules that include specific data during your transfer. For more information and
* examples, see Filtering data
* transferred by DataSync.
*