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

The details of the data-retention settings for an * AppInstance.

See Also:

AWS * API Reference

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

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

*/ inline const ChannelRetentionSettings& GetChannelRetentionSettings() const{ return m_channelRetentionSettings; } /** *

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

*/ inline bool ChannelRetentionSettingsHasBeenSet() const { return m_channelRetentionSettingsHasBeenSet; } /** *

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

*/ inline void SetChannelRetentionSettings(const ChannelRetentionSettings& value) { m_channelRetentionSettingsHasBeenSet = true; m_channelRetentionSettings = value; } /** *

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

*/ inline void SetChannelRetentionSettings(ChannelRetentionSettings&& value) { m_channelRetentionSettingsHasBeenSet = true; m_channelRetentionSettings = std::move(value); } /** *

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

*/ inline AppInstanceRetentionSettings& WithChannelRetentionSettings(const ChannelRetentionSettings& value) { SetChannelRetentionSettings(value); return *this;} /** *

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

*/ inline AppInstanceRetentionSettings& WithChannelRetentionSettings(ChannelRetentionSettings&& value) { SetChannelRetentionSettings(std::move(value)); return *this;} private: ChannelRetentionSettings m_channelRetentionSettings; bool m_channelRetentionSettingsHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKIdentity } // namespace Aws