/* * 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; /** *
* StartTaskExecutionRequest *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StartTaskExecutionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** Specifies the Amazon Resource Name (ARN) of the task that you want to start. *
*/ private String taskArn; private Options overrideOptions; /** *
* Specifies a list of filter rules that determines which files to include when running a task. The pattern should
* contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that
* is, a pipe), for example, "/folder1|/folder2"
.
*
* Specifies a list of filter rules that determines which files to exclude from a task. The list contains a single
* filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2"
.
*
* Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution. *
** Tags are key-value pairs that help you manage, filter, and search for your DataSync resources. *
*/ private java.util.List* Specifies the Amazon Resource Name (ARN) of the task that you want to start. *
* * @param taskArn * Specifies the Amazon Resource Name (ARN) of the task that you want to start. */ public void setTaskArn(String taskArn) { this.taskArn = taskArn; } /** ** Specifies the Amazon Resource Name (ARN) of the task that you want to start. *
* * @return Specifies the Amazon Resource Name (ARN) of the task that you want to start. */ public String getTaskArn() { return this.taskArn; } /** ** Specifies the Amazon Resource Name (ARN) of the task that you want to start. *
* * @param taskArn * Specifies the Amazon Resource Name (ARN) of the task that you want to start. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTaskExecutionRequest withTaskArn(String taskArn) { setTaskArn(taskArn); return this; } /** * @param overrideOptions */ public void setOverrideOptions(Options overrideOptions) { this.overrideOptions = overrideOptions; } /** * @return */ public Options getOverrideOptions() { return this.overrideOptions; } /** * @param overrideOptions * @return Returns a reference to this object so that method calls can be chained together. */ public StartTaskExecutionRequest withOverrideOptions(Options overrideOptions) { setOverrideOptions(overrideOptions); return this; } /** *
* Specifies a list of filter rules that determines which files to include when running a task. The pattern should
* contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that
* is, a pipe), for example, "/folder1|/folder2"
.
*
"/folder1|/folder2"
.
*/
public java.util.List
* Specifies a list of filter rules that determines which files to include when running a task. The pattern should
* contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that
* is, a pipe), for example, "/folder1|/folder2"
.
*
"/folder1|/folder2"
.
*/
public void setIncludes(java.util.Collection
* Specifies a list of filter rules that determines which files to include when running a task. The pattern should
* contain 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 * Specifies a list of filter rules that determines which files to include when running a task. The pattern * should contain 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 StartTaskExecutionRequest withIncludes(FilterRule... includes) {
if (this.includes == null) {
setIncludes(new java.util.ArrayList
* Specifies a list of filter rules that determines which files to include when running a task. The pattern should
* contain a single filter string that consists of the patterns to include. The patterns are delimited by "|" (that
* is, a pipe), for example, "/folder1|/folder2"
.
*
"/folder1|/folder2"
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartTaskExecutionRequest withIncludes(java.util.Collection
* Specifies a list of filter rules that determines which files to exclude from a task. The list contains a single
* filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2"
.
*
"/folder1|/folder2"
.
*/
public java.util.List
* Specifies a list of filter rules that determines which files to exclude from a task. The list contains a single
* filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2"
.
*
"/folder1|/folder2"
.
*/
public void setExcludes(java.util.Collection
* Specifies a list of filter rules that determines which files to exclude from a task. The list contains 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 * Specifies a list of filter rules that determines which files to exclude from a task. The list contains 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 StartTaskExecutionRequest withExcludes(FilterRule... excludes) {
if (this.excludes == null) {
setExcludes(new java.util.ArrayList
* Specifies a list of filter rules that determines which files to exclude from a task. The list contains a single
* filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for
* example, "/folder1|/folder2"
.
*
"/folder1|/folder2"
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartTaskExecutionRequest withExcludes(java.util.Collection* Specifies the tags that you want to apply to the Amazon Resource Name (ARN) representing the task execution. *
** 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 * execution. *
* 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 execution.
*
* 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 execution.
*
* 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 StartTaskExecutionRequest 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 execution.
*
* 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 StartTaskExecutionRequest withTags(java.util.Collection