/* * 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.fsx.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateDataRepositoryTaskRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* Specifies the type of data repository task to create. *

*/ private String type; /** *

* A list of paths for the data repository task to use when the task is processed. If a path that you provide isn't * valid, the task fails. *

* */ private java.util.List paths; private String fileSystemId; /** *

* Defines whether or not Amazon FSx provides a CompletionReport once the task has completed. A CompletionReport * provides a detailed report on the files that Amazon FSx processed that meet the criteria specified by the * Scope parameter. For more information, see Working with Task * Completion Reports. *

*/ private CompletionReport report; private String clientRequestToken; private java.util.List tags; /** *

* Specifies the amount of data to release, in GiB, by an Amazon File Cache AUTO_RELEASE_DATA task that * automatically releases files from the cache. *

*/ private Long capacityToRelease; /** *

* Specifies the type of data repository task to create. *

* * @param type * Specifies the type of data repository task to create. * @see DataRepositoryTaskType */ public void setType(String type) { this.type = type; } /** *

* Specifies the type of data repository task to create. *

* * @return Specifies the type of data repository task to create. * @see DataRepositoryTaskType */ public String getType() { return this.type; } /** *

* Specifies the type of data repository task to create. *

* * @param type * Specifies the type of data repository task to create. * @return Returns a reference to this object so that method calls can be chained together. * @see DataRepositoryTaskType */ public CreateDataRepositoryTaskRequest withType(String type) { setType(type); return this; } /** *

* Specifies the type of data repository task to create. *

* * @param type * Specifies the type of data repository task to create. * @return Returns a reference to this object so that method calls can be chained together. * @see DataRepositoryTaskType */ public CreateDataRepositoryTaskRequest withType(DataRepositoryTaskType type) { this.type = type.toString(); return this; } /** *

* A list of paths for the data repository task to use when the task is processed. If a path that you provide isn't * valid, the task fails. *

* * * @return A list of paths for the data repository task to use when the task is processed. If a path that you * provide isn't valid, the task fails.

*