/** * 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 moderator.

See Also:

AWS * API Reference

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

The moderator's data.

*/ inline const Identity& GetModerator() const{ return m_moderator; } /** *

The moderator's data.

*/ inline bool ModeratorHasBeenSet() const { return m_moderatorHasBeenSet; } /** *

The moderator's data.

*/ inline void SetModerator(const Identity& value) { m_moderatorHasBeenSet = true; m_moderator = value; } /** *

The moderator's data.

*/ inline void SetModerator(Identity&& value) { m_moderatorHasBeenSet = true; m_moderator = std::move(value); } /** *

The moderator's data.

*/ inline ChannelModerator& WithModerator(const Identity& value) { SetModerator(value); return *this;} /** *

The moderator's data.

*/ inline ChannelModerator& WithModerator(Identity&& value) { SetModerator(std::move(value)); return *this;} /** *

The ARN of the moderator's channel.

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

The ARN of the moderator's channel.

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

The ARN of the moderator's channel.

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

The ARN of the moderator's channel.

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

The ARN of the moderator's channel.

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

The ARN of the moderator's channel.

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

The ARN of the moderator's channel.

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

The ARN of the moderator's channel.

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

The time at which the moderator was created.

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

The time at which the moderator was created.

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

The time at which the moderator was created.

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

The time at which the moderator was created.

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

The time at which the moderator was created.

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

The time at which the moderator was created.

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

The AppInstanceUser who created the moderator.

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

The AppInstanceUser who created the moderator.

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

The AppInstanceUser who created the moderator.

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

The AppInstanceUser who created the moderator.

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

The AppInstanceUser who created the moderator.

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

The AppInstanceUser who created the moderator.

*/ inline ChannelModerator& WithCreatedBy(Identity&& value) { SetCreatedBy(std::move(value)); return *this;} private: Identity m_moderator; bool m_moderatorHasBeenSet = 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