This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/RetentionPolicy.h

92 lines
3.1 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/model/RetentionType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SageMaker
{
namespace Model
{
/**
* <p>The retention policy for data stored on an Amazon Elastic File System (EFS)
* volume.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/RetentionPolicy">AWS
* API Reference</a></p>
*/
class AWS_SAGEMAKER_API RetentionPolicy
{
public:
RetentionPolicy();
RetentionPolicy(Aws::Utils::Json::JsonView jsonValue);
RetentionPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The default is <code>Retain</code>, which specifies to keep the data stored
* on the EFS volume.</p> <p>Specify <code>Delete</code> to delete the data stored
* on the EFS volume.</p>
*/
inline const RetentionType& GetHomeEfsFileSystem() const{ return m_homeEfsFileSystem; }
/**
* <p>The default is <code>Retain</code>, which specifies to keep the data stored
* on the EFS volume.</p> <p>Specify <code>Delete</code> to delete the data stored
* on the EFS volume.</p>
*/
inline bool HomeEfsFileSystemHasBeenSet() const { return m_homeEfsFileSystemHasBeenSet; }
/**
* <p>The default is <code>Retain</code>, which specifies to keep the data stored
* on the EFS volume.</p> <p>Specify <code>Delete</code> to delete the data stored
* on the EFS volume.</p>
*/
inline void SetHomeEfsFileSystem(const RetentionType& value) { m_homeEfsFileSystemHasBeenSet = true; m_homeEfsFileSystem = value; }
/**
* <p>The default is <code>Retain</code>, which specifies to keep the data stored
* on the EFS volume.</p> <p>Specify <code>Delete</code> to delete the data stored
* on the EFS volume.</p>
*/
inline void SetHomeEfsFileSystem(RetentionType&& value) { m_homeEfsFileSystemHasBeenSet = true; m_homeEfsFileSystem = std::move(value); }
/**
* <p>The default is <code>Retain</code>, which specifies to keep the data stored
* on the EFS volume.</p> <p>Specify <code>Delete</code> to delete the data stored
* on the EFS volume.</p>
*/
inline RetentionPolicy& WithHomeEfsFileSystem(const RetentionType& value) { SetHomeEfsFileSystem(value); return *this;}
/**
* <p>The default is <code>Retain</code>, which specifies to keep the data stored
* on the EFS volume.</p> <p>Specify <code>Delete</code> to delete the data stored
* on the EFS volume.</p>
*/
inline RetentionPolicy& WithHomeEfsFileSystem(RetentionType&& value) { SetHomeEfsFileSystem(std::move(value)); return *this;}
private:
RetentionType m_homeEfsFileSystem;
bool m_homeEfsFileSystemHasBeenSet;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws