/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the settings used to enable or disable Time to Live (TTL) for the
* specified table.See Also:
AWS
* API Reference
Indicates whether TTL is to be enabled (true) or disabled (false) on the * table.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Indicates whether TTL is to be enabled (true) or disabled (false) on the * table.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Indicates whether TTL is to be enabled (true) or disabled (false) on the * table.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Indicates whether TTL is to be enabled (true) or disabled (false) on the * table.
*/ inline TimeToLiveSpecification& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The name of the TTL attribute used to store the expiration time for items in * the table.
*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *The name of the TTL attribute used to store the expiration time for items in * the table.
*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *The name of the TTL attribute used to store the expiration time for items in * the table.
*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *The name of the TTL attribute used to store the expiration time for items in * the table.
*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *The name of the TTL attribute used to store the expiration time for items in * the table.
*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *The name of the TTL attribute used to store the expiration time for items in * the table.
*/ inline TimeToLiveSpecification& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *The name of the TTL attribute used to store the expiration time for items in * the table.
*/ inline TimeToLiveSpecification& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *The name of the TTL attribute used to store the expiration time for items in * the table.
*/ inline TimeToLiveSpecification& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws