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

Summary of the membership details of an * AppInstanceUser.

See Also:

AWS * API Reference

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

The type of ChannelMembership.

*/ inline const ChannelMembershipType& GetType() const{ return m_type; } /** *

The type of ChannelMembership.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of ChannelMembership.

*/ inline void SetType(const ChannelMembershipType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of ChannelMembership.

*/ inline void SetType(ChannelMembershipType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of ChannelMembership.

*/ inline AppInstanceUserMembershipSummary& WithType(const ChannelMembershipType& value) { SetType(value); return *this;} /** *

The type of ChannelMembership.

*/ inline AppInstanceUserMembershipSummary& WithType(ChannelMembershipType&& value) { SetType(std::move(value)); return *this;} /** *

The time at which a message was last read.

*/ inline const Aws::Utils::DateTime& GetReadMarkerTimestamp() const{ return m_readMarkerTimestamp; } /** *

The time at which a message was last read.

*/ inline bool ReadMarkerTimestampHasBeenSet() const { return m_readMarkerTimestampHasBeenSet; } /** *

The time at which a message was last read.

*/ inline void SetReadMarkerTimestamp(const Aws::Utils::DateTime& value) { m_readMarkerTimestampHasBeenSet = true; m_readMarkerTimestamp = value; } /** *

The time at which a message was last read.

*/ inline void SetReadMarkerTimestamp(Aws::Utils::DateTime&& value) { m_readMarkerTimestampHasBeenSet = true; m_readMarkerTimestamp = std::move(value); } /** *

The time at which a message was last read.

*/ inline AppInstanceUserMembershipSummary& WithReadMarkerTimestamp(const Aws::Utils::DateTime& value) { SetReadMarkerTimestamp(value); return *this;} /** *

The time at which a message was last read.

*/ inline AppInstanceUserMembershipSummary& WithReadMarkerTimestamp(Aws::Utils::DateTime&& value) { SetReadMarkerTimestamp(std::move(value)); return *this;} private: ChannelMembershipType m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_readMarkerTimestamp; bool m_readMarkerTimestampHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws