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

The details of a channel ban.

See Also:

AWS * API Reference

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

The member being banned from the channel.

*/ inline const Identity& GetMember() const{ return m_member; } /** *

The member being banned from the channel.

*/ inline bool MemberHasBeenSet() const { return m_memberHasBeenSet; } /** *

The member being banned from the channel.

*/ inline void SetMember(const Identity& value) { m_memberHasBeenSet = true; m_member = value; } /** *

The member being banned from the channel.

*/ inline void SetMember(Identity&& value) { m_memberHasBeenSet = true; m_member = std::move(value); } /** *

The member being banned from the channel.

*/ inline ChannelBan& WithMember(const Identity& value) { SetMember(value); return *this;} /** *

The member being banned from the channel.

*/ inline ChannelBan& WithMember(Identity&& value) { SetMember(std::move(value)); return *this;} /** *

The ARN of the channel from which a member is being banned.

*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *

The ARN of the channel from which a member is being banned.

*/ inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; } /** *

The ARN of the channel from which a member is being banned.

*/ inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; } /** *

The ARN of the channel from which a member is being banned.

*/ inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); } /** *

The ARN of the channel from which a member is being banned.

*/ inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); } /** *

The ARN of the channel from which a member is being banned.

*/ inline ChannelBan& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *

The ARN of the channel from which a member is being banned.

*/ inline ChannelBan& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *

The ARN of the channel from which a member is being banned.

*/ inline ChannelBan& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} /** *

The time at which the ban was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The time at which the ban was created.

*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *

The time at which the ban was created.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *

The time at which the ban was created.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *

The time at which the ban was created.

*/ inline ChannelBan& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The time at which the ban was created.

*/ inline ChannelBan& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The AppInstanceUser who created the ban.

*/ inline const Identity& GetCreatedBy() const{ return m_createdBy; } /** *

The AppInstanceUser who created the ban.

*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *

The AppInstanceUser who created the ban.

*/ inline void SetCreatedBy(const Identity& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *

The AppInstanceUser who created the ban.

*/ inline void SetCreatedBy(Identity&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *

The AppInstanceUser who created the ban.

*/ inline ChannelBan& WithCreatedBy(const Identity& value) { SetCreatedBy(value); return *this;} /** *

The AppInstanceUser who created the ban.

*/ inline ChannelBan& WithCreatedBy(Identity&& value) { SetCreatedBy(std::move(value)); return *this;} private: Identity m_member; bool m_memberHasBeenSet = false; Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; Identity m_createdBy; bool m_createdByHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws