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

The channel membership preferences for an * AppInstanceUser.

See Also:

AWS * API Reference

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

The push notification configuration of a message.

*/ inline const PushNotificationPreferences& GetPushNotifications() const{ return m_pushNotifications; } /** *

The push notification configuration of a message.

*/ inline bool PushNotificationsHasBeenSet() const { return m_pushNotificationsHasBeenSet; } /** *

The push notification configuration of a message.

*/ inline void SetPushNotifications(const PushNotificationPreferences& value) { m_pushNotificationsHasBeenSet = true; m_pushNotifications = value; } /** *

The push notification configuration of a message.

*/ inline void SetPushNotifications(PushNotificationPreferences&& value) { m_pushNotificationsHasBeenSet = true; m_pushNotifications = std::move(value); } /** *

The push notification configuration of a message.

*/ inline ChannelMembershipPreferences& WithPushNotifications(const PushNotificationPreferences& value) { SetPushNotifications(value); return *this;} /** *

The push notification configuration of a message.

*/ inline ChannelMembershipPreferences& WithPushNotifications(PushNotificationPreferences&& value) { SetPushNotifications(std::move(value)); return *this;} private: PushNotificationPreferences m_pushNotifications; bool m_pushNotificationsHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws