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

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

/**
 * 

* StartTaskExecutionRequest *

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

* The Amazon Resource Name (ARN) of the task to start. *

*/ private String taskArn; private Options overrideOptions; /** *

* 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". *

*

*

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

* 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". *

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

* The Amazon Resource Name (ARN) of the task to start. *

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

* The Amazon Resource Name (ARN) of the task to start. *

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

* The Amazon Resource Name (ARN) of the task to start. *

* * @param taskArn * The Amazon Resource Name (ARN) of the task 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; } /** *

* 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 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".

*

*/ public java.util.List getIncludes() { return includes; } /** *

* 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". *

*

*

* * @param includes * 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".

*

*/ 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 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 * 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(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 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". *

*

*

* * @param includes * 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(java.util.Collection includes) { setIncludes(includes); return this; } /** *

* 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 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". */ public java.util.List getExcludes() { return excludes; } /** *

* 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". *

* * @param excludes * 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". */ 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 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 * 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(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 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". *

* * @param excludes * 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(java.util.Collection excludes) { setExcludes(excludes); 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 (getOverrideOptions() != null) sb.append("OverrideOptions: ").append(getOverrideOptions()).append(","); if (getIncludes() != null) sb.append("Includes: ").append(getIncludes()).append(","); if (getExcludes() != null) sb.append("Excludes: ").append(getExcludes()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartTaskExecutionRequest == false) return false; StartTaskExecutionRequest other = (StartTaskExecutionRequest) obj; if (other.getTaskArn() == null ^ this.getTaskArn() == null) return false; if (other.getTaskArn() != null && other.getTaskArn().equals(this.getTaskArn()) == false) return false; if (other.getOverrideOptions() == null ^ this.getOverrideOptions() == null) return false; if (other.getOverrideOptions() != null && other.getOverrideOptions().equals(this.getOverrideOptions()) == 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.getExcludes() == null ^ this.getExcludes() == null) return false; if (other.getExcludes() != null && other.getExcludes().equals(this.getExcludes()) == 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 + ((getOverrideOptions() == null) ? 0 : getOverrideOptions().hashCode()); hashCode = prime * hashCode + ((getIncludes() == null) ? 0 : getIncludes().hashCode()); hashCode = prime * hashCode + ((getExcludes() == null) ? 0 : getExcludes().hashCode()); return hashCode; } @Override public StartTaskExecutionRequest clone() { return (StartTaskExecutionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy