/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Settings that control the interval after which a channel is
* deleted.See Also:
AWS
* API Reference
The period in days after which the system automatically deletes a * channel.
*/ inline int GetExpirationDays() const{ return m_expirationDays; } /** *The period in days after which the system automatically deletes a * channel.
*/ inline bool ExpirationDaysHasBeenSet() const { return m_expirationDaysHasBeenSet; } /** *The period in days after which the system automatically deletes a * channel.
*/ inline void SetExpirationDays(int value) { m_expirationDaysHasBeenSet = true; m_expirationDays = value; } /** *The period in days after which the system automatically deletes a * channel.
*/ inline ExpirationSettings& WithExpirationDays(int value) { SetExpirationDays(value); return *this;} /** *The conditions that must be met for a channel to expire.
*/ inline const ExpirationCriterion& GetExpirationCriterion() const{ return m_expirationCriterion; } /** *The conditions that must be met for a channel to expire.
*/ inline bool ExpirationCriterionHasBeenSet() const { return m_expirationCriterionHasBeenSet; } /** *The conditions that must be met for a channel to expire.
*/ inline void SetExpirationCriterion(const ExpirationCriterion& value) { m_expirationCriterionHasBeenSet = true; m_expirationCriterion = value; } /** *The conditions that must be met for a channel to expire.
*/ inline void SetExpirationCriterion(ExpirationCriterion&& value) { m_expirationCriterionHasBeenSet = true; m_expirationCriterion = std::move(value); } /** *The conditions that must be met for a channel to expire.
*/ inline ExpirationSettings& WithExpirationCriterion(const ExpirationCriterion& value) { SetExpirationCriterion(value); return *this;} /** *The conditions that must be met for a channel to expire.
*/ inline ExpirationSettings& WithExpirationCriterion(ExpirationCriterion&& value) { SetExpirationCriterion(std::move(value)); return *this;} private: int m_expirationDays; bool m_expirationDaysHasBeenSet = false; ExpirationCriterion m_expirationCriterion; bool m_expirationCriterionHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws