/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object with the name of the retention configuration and the retention
* period in days. The object stores the configuration for data retention in
* Config.See Also:
AWS
* API Reference
The name of the retention configuration object.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the retention configuration object.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the retention configuration object.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the retention configuration object.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the retention configuration object.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the retention configuration object.
*/ inline RetentionConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the retention configuration object.
*/ inline RetentionConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the retention configuration object.
*/ inline RetentionConfiguration& WithName(const char* value) { SetName(value); return *this;} /** *Number of days Config stores your historical information.
*Currently, only applicable to the configuration item history.
*/ inline int GetRetentionPeriodInDays() const{ return m_retentionPeriodInDays; } /** *Number of days Config stores your historical information.
*Currently, only applicable to the configuration item history.
*/ inline bool RetentionPeriodInDaysHasBeenSet() const { return m_retentionPeriodInDaysHasBeenSet; } /** *Number of days Config stores your historical information.
*Currently, only applicable to the configuration item history.
*/ inline void SetRetentionPeriodInDays(int value) { m_retentionPeriodInDaysHasBeenSet = true; m_retentionPeriodInDays = value; } /** *Number of days Config stores your historical information.
*Currently, only applicable to the configuration item history.
*/ inline RetentionConfiguration& WithRetentionPeriodInDays(int value) { SetRetentionPeriodInDays(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_retentionPeriodInDays; bool m_retentionPeriodInDaysHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws