/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EFS { namespace Model { /** */ class PutLifecycleConfigurationRequest : public EFSRequest { public: AWS_EFS_API PutLifecycleConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "PutLifecycleConfiguration"; } AWS_EFS_API Aws::String SerializePayload() const override; /** *

The ID of the file system for which you are creating the * LifecycleConfiguration object (String).

*/ inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } /** *

The ID of the file system for which you are creating the * LifecycleConfiguration object (String).

*/ inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } /** *

The ID of the file system for which you are creating the * LifecycleConfiguration object (String).

*/ inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } /** *

The ID of the file system for which you are creating the * LifecycleConfiguration object (String).

*/ inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } /** *

The ID of the file system for which you are creating the * LifecycleConfiguration object (String).

*/ inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } /** *

The ID of the file system for which you are creating the * LifecycleConfiguration object (String).

*/ inline PutLifecycleConfigurationRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} /** *

The ID of the file system for which you are creating the * LifecycleConfiguration object (String).

*/ inline PutLifecycleConfigurationRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} /** *

The ID of the file system for which you are creating the * LifecycleConfiguration object (String).

*/ inline PutLifecycleConfigurationRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); 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.

*/ inline const Aws::Vector& GetLifecyclePolicies() const{ return m_lifecyclePolicies; } /** *

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.

*/ inline bool LifecyclePoliciesHasBeenSet() const { return m_lifecyclePoliciesHasBeenSet; } /** *

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.

*/ inline void SetLifecyclePolicies(const Aws::Vector& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies = value; } /** *

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.

*/ inline void SetLifecyclePolicies(Aws::Vector&& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies = std::move(value); } /** *

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.

*/ inline PutLifecycleConfigurationRequest& WithLifecyclePolicies(const Aws::Vector& value) { SetLifecyclePolicies(value); 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.

*/ inline PutLifecycleConfigurationRequest& WithLifecyclePolicies(Aws::Vector&& value) { SetLifecyclePolicies(std::move(value)); 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.

*/ inline PutLifecycleConfigurationRequest& AddLifecyclePolicies(const LifecyclePolicy& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies.push_back(value); 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.

*/ inline PutLifecycleConfigurationRequest& AddLifecyclePolicies(LifecyclePolicy&& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies.push_back(std::move(value)); return *this; } private: Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; Aws::Vector m_lifecyclePolicies; bool m_lifecyclePoliciesHasBeenSet = false; }; } // namespace Model } // namespace EFS } // namespace Aws