/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ChimeSDKIdentity { namespace Model { /** *

The details of the retention settings for a channel.

See Also:

* AWS * API Reference

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

The time in days to retain the messages in a channel.

*/ inline int GetRetentionDays() const{ return m_retentionDays; } /** *

The time in days to retain the messages in a channel.

*/ inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; } /** *

The time in days to retain the messages in a channel.

*/ inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; } /** *

The time in days to retain the messages in a channel.

*/ inline ChannelRetentionSettings& WithRetentionDays(int value) { SetRetentionDays(value); return *this;} private: int m_retentionDays; bool m_retentionDaysHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKIdentity } // namespace Aws