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

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

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

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