/** * 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 AWS_EFS_API PutLifecycleConfigurationRequest : public EFSRequest { public: 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::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 tells lifecycle management when to * transition files from the Standard storage class to the Infrequent Access * storage class.

*/ 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 tells lifecycle management when to * transition files from the Standard storage class to the Infrequent Access * storage class.

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

An array of LifecyclePolicy objects that define the file * system's LifecycleConfiguration object. A * LifecycleConfiguration object tells lifecycle management when to * transition files from the Standard storage class to the Infrequent Access * storage class.

*/ 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 tells lifecycle management when to * transition files from the Standard storage class to the Infrequent Access * storage class.

*/ 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 tells lifecycle management when to * transition files from the Standard storage class to the Infrequent Access * storage class.

*/ 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 tells lifecycle management when to * transition files from the Standard storage class to the Infrequent Access * storage class.

*/ 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 tells lifecycle management when to * transition files from the Standard storage class to the Infrequent Access * storage class.

*/ 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 tells lifecycle management when to * transition files from the Standard storage class to the Infrequent Access * storage class.

*/ 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; Aws::Vector m_lifecyclePolicies; bool m_lifecyclePoliciesHasBeenSet; }; } // namespace Model } // namespace EFS } // namespace Aws