/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

The retention policy for data stored on an Amazon Elastic File System (EFS) * volume.

See Also:

AWS * API Reference

*/ class RetentionPolicy { public: AWS_SAGEMAKER_API RetentionPolicy(); AWS_SAGEMAKER_API RetentionPolicy(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API RetentionPolicy& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The default is Retain, which specifies to keep the data stored * on the EFS volume.

Specify Delete to delete the data stored * on the EFS volume.

*/ inline const RetentionType& GetHomeEfsFileSystem() const{ return m_homeEfsFileSystem; } /** *

The default is Retain, which specifies to keep the data stored * on the EFS volume.

Specify Delete to delete the data stored * on the EFS volume.

*/ inline bool HomeEfsFileSystemHasBeenSet() const { return m_homeEfsFileSystemHasBeenSet; } /** *

The default is Retain, which specifies to keep the data stored * on the EFS volume.

Specify Delete to delete the data stored * on the EFS volume.

*/ inline void SetHomeEfsFileSystem(const RetentionType& value) { m_homeEfsFileSystemHasBeenSet = true; m_homeEfsFileSystem = value; } /** *

The default is Retain, which specifies to keep the data stored * on the EFS volume.

Specify Delete to delete the data stored * on the EFS volume.

*/ inline void SetHomeEfsFileSystem(RetentionType&& value) { m_homeEfsFileSystemHasBeenSet = true; m_homeEfsFileSystem = std::move(value); } /** *

The default is Retain, which specifies to keep the data stored * on the EFS volume.

Specify Delete to delete the data stored * on the EFS volume.

*/ inline RetentionPolicy& WithHomeEfsFileSystem(const RetentionType& value) { SetHomeEfsFileSystem(value); return *this;} /** *

The default is Retain, which specifies to keep the data stored * on the EFS volume.

Specify Delete to delete the data stored * on the EFS volume.

*/ inline RetentionPolicy& WithHomeEfsFileSystem(RetentionType&& value) { SetHomeEfsFileSystem(std::move(value)); return *this;} private: RetentionType m_homeEfsFileSystem; bool m_homeEfsFileSystemHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws