/** * 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 SageMakerFeatureStoreRuntime { namespace Model { /** *

Time to live duration, where the record is hard deleted after the expiration * time is reached; ExpiresAt = EventTime + * TtlDuration. For information on HardDelete, see the DeleteRecord * API in the Amazon SageMaker API Reference guide.

See Also:

AWS * API Reference

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

TtlDuration time unit.

*/ inline const TtlDurationUnit& GetUnit() const{ return m_unit; } /** *

TtlDuration time unit.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

TtlDuration time unit.

*/ inline void SetUnit(const TtlDurationUnit& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

TtlDuration time unit.

*/ inline void SetUnit(TtlDurationUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

TtlDuration time unit.

*/ inline TtlDuration& WithUnit(const TtlDurationUnit& value) { SetUnit(value); return *this;} /** *

TtlDuration time unit.

*/ inline TtlDuration& WithUnit(TtlDurationUnit&& value) { SetUnit(std::move(value)); return *this;} /** *

TtlDuration time value.

*/ inline int GetValue() const{ return m_value; } /** *

TtlDuration time value.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

TtlDuration time value.

*/ inline void SetValue(int value) { m_valueHasBeenSet = true; m_value = value; } /** *

TtlDuration time value.

*/ inline TtlDuration& WithValue(int value) { SetValue(value); return *this;} private: TtlDurationUnit m_unit; bool m_unitHasBeenSet = false; int m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace SageMakerFeatureStoreRuntime } // namespace Aws