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

com.amazonaws.services.fsx.model.CreateDataRepositoryTaskRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon FSx module holds the client classes that are used for communicating with Amazon FSx Service

The newest version!
/*
 * Copyright 2019-2024 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. *

*
    *
  • *

    * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked data * repository. *

    *
  • *
  • *

    * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your Amazon * FSx for Lustre file system. *

    *
  • *
  • *

    * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system that have * been exported to a linked S3 bucket and that meet your specified release criteria. *

    *
  • *
  • *

    * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

    *
  • *
*/ 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. If you don't provide paths, the default behavior is to export all files to S3 (for export * tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed * time criteria (for release tasks). *

*
    *
  • *

    * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are exported to * the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be * relative to the mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want to export, then the path to * provide is path1. *

    *
  • *
  • *

    * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported * to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

    *
  • *
  • *

    * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to * release exported files. If a directory is specified, files within the directory are released. If a file path is * specified, only that file is released. To release all exported files in the file system, specify a forward slash * (/) as the path. *

    * *

    * A file must also meet the last accessed time criteria specified in for the file to be released. *

    *
  • *
*/ 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; /** *

* The configuration that specifies the last accessed time criteria for files that will be released from an Amazon * FSx for Lustre file system. *

*/ private ReleaseConfiguration releaseConfiguration; /** *

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

*
    *
  • *

    * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked data * repository. *

    *
  • *
  • *

    * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your Amazon * FSx for Lustre file system. *

    *
  • *
  • *

    * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system that have * been exported to a linked S3 bucket and that meet your specified release criteria. *

    *
  • *
  • *

    * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

    *
  • *
* * @param type * Specifies the type of data repository task to create.

*
    *
  • *

    * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked * data repository. *

    *
  • *
  • *

    * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your * Amazon FSx for Lustre file system. *

    *
  • *
  • *

    * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system * that have been exported to a linked S3 bucket and that meet your specified release criteria. *

    *
  • *
  • *

    * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

    *
  • * @see DataRepositoryTaskType */ public void setType(String type) { this.type = type; } /** *

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

    *
      *
    • *

      * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked data * repository. *

      *
    • *
    • *

      * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your Amazon * FSx for Lustre file system. *

      *
    • *
    • *

      * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system that have * been exported to a linked S3 bucket and that meet your specified release criteria. *

      *
    • *
    • *

      * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

      *
    • *
    * * @return Specifies the type of data repository task to create.

    *
      *
    • *

      * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked * data repository. *

      *
    • *
    • *

      * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to * your Amazon FSx for Lustre file system. *

      *
    • *
    • *

      * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system * that have been exported to a linked S3 bucket and that meet your specified release criteria. *

      *
    • *
    • *

      * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

      *
    • * @see DataRepositoryTaskType */ public String getType() { return this.type; } /** *

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

      *
        *
      • *

        * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked data * repository. *

        *
      • *
      • *

        * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your Amazon * FSx for Lustre file system. *

        *
      • *
      • *

        * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system that have * been exported to a linked S3 bucket and that meet your specified release criteria. *

        *
      • *
      • *

        * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

        *
      • *
      * * @param type * Specifies the type of data repository task to create.

      *
        *
      • *

        * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked * data repository. *

        *
      • *
      • *

        * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your * Amazon FSx for Lustre file system. *

        *
      • *
      • *

        * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system * that have been exported to a linked S3 bucket and that meet your specified release criteria. *

        *
      • *
      • *

        * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

        *
      • * @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. *

        *
          *
        • *

          * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked data * repository. *

          *
        • *
        • *

          * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your Amazon * FSx for Lustre file system. *

          *
        • *
        • *

          * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system that have * been exported to a linked S3 bucket and that meet your specified release criteria. *

          *
        • *
        • *

          * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

          *
        • *
        * * @param type * Specifies the type of data repository task to create.

        *
          *
        • *

          * EXPORT_TO_REPOSITORY tasks export from your Amazon FSx for Lustre file system to a linked * data repository. *

          *
        • *
        • *

          * IMPORT_METADATA_FROM_REPOSITORY tasks import metadata changes from a linked S3 bucket to your * Amazon FSx for Lustre file system. *

          *
        • *
        • *

          * RELEASE_DATA_FROM_FILESYSTEM tasks release files in your Amazon FSx for Lustre file system * that have been exported to a linked S3 bucket and that meet your specified release criteria. *

          *
        • *
        • *

          * AUTO_RELEASE_DATA tasks automatically release files from an Amazon File Cache resource. *

          *
        • * @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. If you don't provide paths, the default behavior is to export all files to S3 (for export * tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed * time criteria (for release tasks). *

          *
            *
          • *

            * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are exported to * the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be * relative to the mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want to export, then the path to * provide is path1. *

            *
          • *
          • *

            * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported * to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

            *
          • *
          • *

            * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to * release exported files. If a directory is specified, files within the directory are released. If a file path is * specified, only that file is released. To release all exported files in the file system, specify a forward slash * (/) as the path. *

            * *

            * A file must also meet the last accessed time criteria specified in for the file to be released. *

            *
          • *
          * * @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. If you don't provide paths, the default behavior is to export all * files to S3 (for export tasks), import all files from S3 (for import tasks), or release all exported * files that meet the last accessed time criteria (for release tasks).

          *
            *
          • *

            * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are * exported to the Amazon S3 bucket. The default path is the file system root directory. The paths you * provide need to be relative to the mount point of the file system. If the mount point is * /mnt/fsx and /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1. *

            *
          • *
          • *

            * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are * imported to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

            *
          • *
          • *

            * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which * to release exported files. If a directory is specified, files within the directory are released. If a * file path is specified, only that file is released. To release all exported files in the file system, * specify a forward slash (/) as the path. *

            * *

            * A file must also meet the last accessed time criteria specified in for the file to be released. *

            *
          • */ public java.util.List getPaths() { return paths; } /** *

            * 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. If you don't provide paths, the default behavior is to export all files to S3 (for export * tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed * time criteria (for release tasks). *

            *
              *
            • *

              * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are exported to * the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be * relative to the mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want to export, then the path to * provide is path1. *

              *
            • *
            • *

              * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported * to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

              *
            • *
            • *

              * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to * release exported files. If a directory is specified, files within the directory are released. If a file path is * specified, only that file is released. To release all exported files in the file system, specify a forward slash * (/) as the path. *

              * *

              * A file must also meet the last accessed time criteria specified in for the file to be released. *

              *
            • *
            * * @param paths * 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. If you don't provide paths, the default behavior is to export all files to S3 * (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet * the last accessed time criteria (for release tasks).

            *
              *
            • *

              * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are * exported to the Amazon S3 bucket. The default path is the file system root directory. The paths you * provide need to be relative to the mount point of the file system. If the mount point is * /mnt/fsx and /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1. *

              *
            • *
            • *

              * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are * imported to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

              *
            • *
            • *

              * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which * to release exported files. If a directory is specified, files within the directory are released. If a file * path is specified, only that file is released. To release all exported files in the file system, specify a * forward slash (/) as the path. *

              * *

              * A file must also meet the last accessed time criteria specified in for the file to be released. *

              *
            • */ public void setPaths(java.util.Collection paths) { if (paths == null) { this.paths = null; return; } this.paths = new java.util.ArrayList(paths); } /** *

              * 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. If you don't provide paths, the default behavior is to export all files to S3 (for export * tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed * time criteria (for release tasks). *

              *
                *
              • *

                * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are exported to * the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be * relative to the mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want to export, then the path to * provide is path1. *

                *
              • *
              • *

                * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported * to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

                *
              • *
              • *

                * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to * release exported files. If a directory is specified, files within the directory are released. If a file path is * specified, only that file is released. To release all exported files in the file system, specify a forward slash * (/) as the path. *

                * *

                * A file must also meet the last accessed time criteria specified in for the file to be released. *

                *
              • *
              *

              * NOTE: This method appends the values to the existing list (if any). Use * {@link #setPaths(java.util.Collection)} or {@link #withPaths(java.util.Collection)} if you want to override the * existing values. *

              * * @param paths * 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. If you don't provide paths, the default behavior is to export all files to S3 * (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet * the last accessed time criteria (for release tasks).

              *
                *
              • *

                * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are * exported to the Amazon S3 bucket. The default path is the file system root directory. The paths you * provide need to be relative to the mount point of the file system. If the mount point is * /mnt/fsx and /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1. *

                *
              • *
              • *

                * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are * imported to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

                *
              • *
              • *

                * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which * to release exported files. If a directory is specified, files within the directory are released. If a file * path is specified, only that file is released. To release all exported files in the file system, specify a * forward slash (/) as the path. *

                * *

                * A file must also meet the last accessed time criteria specified in for the file to be released. *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withPaths(String... paths) { if (this.paths == null) { setPaths(new java.util.ArrayList(paths.length)); } for (String ele : paths) { this.paths.add(ele); } 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. If you don't provide paths, the default behavior is to export all files to S3 (for export * tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed * time criteria (for release tasks). *

                *
                  *
                • *

                  * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are exported to * the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be * relative to the mount point of the file system. If the mount point is /mnt/fsx and * /mnt/fsx/path1 is a directory or file on the file system you want to export, then the path to * provide is path1. *

                  *
                • *
                • *

                  * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported * to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

                  *
                • *
                • *

                  * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to * release exported files. If a directory is specified, files within the directory are released. If a file path is * specified, only that file is released. To release all exported files in the file system, specify a forward slash * (/) as the path. *

                  * *

                  * A file must also meet the last accessed time criteria specified in for the file to be released. *

                  *
                • *
                * * @param paths * 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. If you don't provide paths, the default behavior is to export all files to S3 * (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet * the last accessed time criteria (for release tasks).

                *
                  *
                • *

                  * For export tasks, the list contains paths on the FSx for Lustre file system from which the files are * exported to the Amazon S3 bucket. The default path is the file system root directory. The paths you * provide need to be relative to the mount point of the file system. If the mount point is * /mnt/fsx and /mnt/fsx/path1 is a directory or file on the file system you want * to export, then the path to provide is path1. *

                  *
                • *
                • *

                  * For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are * imported to the FSx for Lustre file system. The path can be an S3 bucket or prefix in the format * s3://myBucket/myPrefix (where myPrefix is optional). *

                  *
                • *
                • *

                  * For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which * to release exported files. If a directory is specified, files within the directory are released. If a file * path is specified, only that file is released. To release all exported files in the file system, specify a * forward slash (/) as the path. *

                  * *

                  * A file must also meet the last accessed time criteria specified in for the file to be released. *

                  *
                • * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withPaths(java.util.Collection paths) { setPaths(paths); return this; } /** * @param fileSystemId */ public void setFileSystemId(String fileSystemId) { this.fileSystemId = fileSystemId; } /** * @return */ public String getFileSystemId() { return this.fileSystemId; } /** * @param fileSystemId * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withFileSystemId(String fileSystemId) { setFileSystemId(fileSystemId); return this; } /** *

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

                  * * @param report * 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. */ public void setReport(CompletionReport report) { this.report = report; } /** *

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

                  * * @return 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. */ public CompletionReport getReport() { return this.report; } /** *

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

                  * * @param report * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withReport(CompletionReport report) { setReport(report); return this; } /** * @param clientRequestToken */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** * @return */ public String getClientRequestToken() { return this.clientRequestToken; } /** * @param clientRequestToken * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** * @return */ public java.util.List getTags() { return tags; } /** * @param tags */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

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

                  * * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** * @param tags * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

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

                  * * @param capacityToRelease * 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. */ public void setCapacityToRelease(Long capacityToRelease) { this.capacityToRelease = capacityToRelease; } /** *

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

                  * * @return 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. */ public Long getCapacityToRelease() { return this.capacityToRelease; } /** *

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

                  * * @param capacityToRelease * 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withCapacityToRelease(Long capacityToRelease) { setCapacityToRelease(capacityToRelease); return this; } /** *

                  * The configuration that specifies the last accessed time criteria for files that will be released from an Amazon * FSx for Lustre file system. *

                  * * @param releaseConfiguration * The configuration that specifies the last accessed time criteria for files that will be released from an * Amazon FSx for Lustre file system. */ public void setReleaseConfiguration(ReleaseConfiguration releaseConfiguration) { this.releaseConfiguration = releaseConfiguration; } /** *

                  * The configuration that specifies the last accessed time criteria for files that will be released from an Amazon * FSx for Lustre file system. *

                  * * @return The configuration that specifies the last accessed time criteria for files that will be released from an * Amazon FSx for Lustre file system. */ public ReleaseConfiguration getReleaseConfiguration() { return this.releaseConfiguration; } /** *

                  * The configuration that specifies the last accessed time criteria for files that will be released from an Amazon * FSx for Lustre file system. *

                  * * @param releaseConfiguration * The configuration that specifies the last accessed time criteria for files that will be released from an * Amazon FSx for Lustre file system. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataRepositoryTaskRequest withReleaseConfiguration(ReleaseConfiguration releaseConfiguration) { setReleaseConfiguration(releaseConfiguration); 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 (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getPaths() != null) sb.append("Paths: ").append(getPaths()).append(","); if (getFileSystemId() != null) sb.append("FileSystemId: ").append(getFileSystemId()).append(","); if (getReport() != null) sb.append("Report: ").append(getReport()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getCapacityToRelease() != null) sb.append("CapacityToRelease: ").append(getCapacityToRelease()).append(","); if (getReleaseConfiguration() != null) sb.append("ReleaseConfiguration: ").append(getReleaseConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDataRepositoryTaskRequest == false) return false; CreateDataRepositoryTaskRequest other = (CreateDataRepositoryTaskRequest) obj; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getPaths() == null ^ this.getPaths() == null) return false; if (other.getPaths() != null && other.getPaths().equals(this.getPaths()) == false) return false; if (other.getFileSystemId() == null ^ this.getFileSystemId() == null) return false; if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == false) return false; if (other.getReport() == null ^ this.getReport() == null) return false; if (other.getReport() != null && other.getReport().equals(this.getReport()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getCapacityToRelease() == null ^ this.getCapacityToRelease() == null) return false; if (other.getCapacityToRelease() != null && other.getCapacityToRelease().equals(this.getCapacityToRelease()) == false) return false; if (other.getReleaseConfiguration() == null ^ this.getReleaseConfiguration() == null) return false; if (other.getReleaseConfiguration() != null && other.getReleaseConfiguration().equals(this.getReleaseConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getPaths() == null) ? 0 : getPaths().hashCode()); hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode()); hashCode = prime * hashCode + ((getReport() == null) ? 0 : getReport().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getCapacityToRelease() == null) ? 0 : getCapacityToRelease().hashCode()); hashCode = prime * hashCode + ((getReleaseConfiguration() == null) ? 0 : getReleaseConfiguration().hashCode()); return hashCode; } @Override public CreateDataRepositoryTaskRequest clone() { return (CreateDataRepositoryTaskRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy