/* * 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.elasticfilesystem.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 PutLifecycleConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the file system for which you are creating the LifecycleConfiguration
object (String).
*
* An array of LifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS lifecycle
* management and EFS Intelligent-Tiering of the following:
*
* When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the PutLifecycleConfiguration
* API action, Amazon EFS requires that each LifecyclePolicy
object have only a single transition. This
* means that in a request body, LifecyclePolicies
must be structured as an array of
* LifecyclePolicy
objects, one object for each transition, TransitionToIA
,
* TransitionToPrimaryStorageClass
. See the example requests in the following section for more
* information.
*
* The ID of the file system for which you are creating the LifecycleConfiguration
object (String).
*
LifecycleConfiguration
object
* (String).
*/
public void setFileSystemId(String fileSystemId) {
this.fileSystemId = fileSystemId;
}
/**
*
* The ID of the file system for which you are creating the LifecycleConfiguration
object (String).
*
LifecycleConfiguration
object
* (String).
*/
public String getFileSystemId() {
return this.fileSystemId;
}
/**
*
* The ID of the file system for which you are creating the LifecycleConfiguration
object (String).
*
LifecycleConfiguration
object
* (String).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutLifecycleConfigurationRequest withFileSystemId(String fileSystemId) {
setFileSystemId(fileSystemId);
return this;
}
/**
*
* An array of LifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS lifecycle
* management and EFS Intelligent-Tiering of the following:
*
* When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the PutLifecycleConfiguration
* API action, Amazon EFS requires that each LifecyclePolicy
object have only a single transition. This
* means that in a request body, LifecyclePolicies
must be structured as an array of
* LifecyclePolicy
objects, one object for each transition, TransitionToIA
,
* TransitionToPrimaryStorageClass
. See the example requests in the following section for more
* information.
*
LifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS
* lifecycle management and EFS Intelligent-Tiering of the following:
* * When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the
* PutLifecycleConfiguration
API action, Amazon EFS requires that each
* LifecyclePolicy
object have only a single transition. This means that in a request body,
* LifecyclePolicies
must be structured as an array of LifecyclePolicy
objects,
* one object for each transition, TransitionToIA
, TransitionToPrimaryStorageClass
* . See the example requests in the following section for more information.
*
* An array of LifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS lifecycle
* management and EFS Intelligent-Tiering of the following:
*
* When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the PutLifecycleConfiguration
* API action, Amazon EFS requires that each LifecyclePolicy
object have only a single transition. This
* means that in a request body, LifecyclePolicies
must be structured as an array of
* LifecyclePolicy
objects, one object for each transition, TransitionToIA
,
* TransitionToPrimaryStorageClass
. See the example requests in the following section for more
* information.
*
LifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS
* lifecycle management and EFS Intelligent-Tiering of the following:
* * When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the
* PutLifecycleConfiguration
API action, Amazon EFS requires that each
* LifecyclePolicy
object have only a single transition. This means that in a request body,
* LifecyclePolicies
must be structured as an array of LifecyclePolicy
objects, one
* object for each transition, TransitionToIA
, TransitionToPrimaryStorageClass
. See
* the example requests in the following section for more information.
*
* An array of LifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS lifecycle
* management and EFS Intelligent-Tiering of the following:
*
* When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the PutLifecycleConfiguration
* API action, Amazon EFS requires that each LifecyclePolicy
object have only a single transition. This
* means that in a request body, LifecyclePolicies
must be structured as an array of
* LifecyclePolicy
objects, one object for each transition, TransitionToIA
,
* TransitionToPrimaryStorageClass
. See the example requests in the following section for more
* information.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLifecyclePolicies(java.util.Collection)} or {@link #withLifecyclePolicies(java.util.Collection)} if * you want to override the existing values. *
* * @param lifecyclePolicies * An array ofLifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS
* lifecycle management and EFS Intelligent-Tiering of the following:
* * When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the
* PutLifecycleConfiguration
API action, Amazon EFS requires that each
* LifecyclePolicy
object have only a single transition. This means that in a request body,
* LifecyclePolicies
must be structured as an array of LifecyclePolicy
objects, one
* object for each transition, TransitionToIA
, TransitionToPrimaryStorageClass
. See
* the example requests in the following section for more information.
*
* An array of LifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS lifecycle
* management and EFS Intelligent-Tiering of the following:
*
* When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the PutLifecycleConfiguration
* API action, Amazon EFS requires that each LifecyclePolicy
object have only a single transition. This
* means that in a request body, LifecyclePolicies
must be structured as an array of
* LifecyclePolicy
objects, one object for each transition, TransitionToIA
,
* TransitionToPrimaryStorageClass
. See the example requests in the following section for more
* information.
*
LifecyclePolicy
objects that define the file system's
* LifecycleConfiguration
object. A LifecycleConfiguration
object informs EFS
* lifecycle management and EFS Intelligent-Tiering of the following:
* * When to move files in the file system from primary storage to the IA storage class. *
** When to move files that are in IA storage to primary storage. *
*
* When using the put-lifecycle-configuration
CLI command or the
* PutLifecycleConfiguration
API action, Amazon EFS requires that each
* LifecyclePolicy
object have only a single transition. This means that in a request body,
* LifecyclePolicies
must be structured as an array of LifecyclePolicy
objects, one
* object for each transition, TransitionToIA
, TransitionToPrimaryStorageClass
. See
* the example requests in the following section for more information.
*