/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Summary of the details of a Channel
.See Also:
* AWS
* API Reference
The name of the channel.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the channel.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the channel.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the channel.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the channel.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the channel.
*/ inline ChannelSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the channel.
*/ inline ChannelSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the channel.
*/ inline ChannelSummary& WithName(const char* value) { SetName(value); return *this;} /** *The ARN of the channel.
*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *The ARN of the channel.
*/ inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; } /** *The ARN of the channel.
*/ inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; } /** *The ARN of the channel.
*/ inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); } /** *The ARN of the channel.
*/ inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); } /** *The ARN of the channel.
*/ inline ChannelSummary& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *The ARN of the channel.
*/ inline ChannelSummary& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *The ARN of the channel.
*/ inline ChannelSummary& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} /** *The mode of the channel.
*/ inline const ChannelMode& GetMode() const{ return m_mode; } /** *The mode of the channel.
*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *The mode of the channel.
*/ inline void SetMode(const ChannelMode& value) { m_modeHasBeenSet = true; m_mode = value; } /** *The mode of the channel.
*/ inline void SetMode(ChannelMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *The mode of the channel.
*/ inline ChannelSummary& WithMode(const ChannelMode& value) { SetMode(value); return *this;} /** *The mode of the channel.
*/ inline ChannelSummary& WithMode(ChannelMode&& value) { SetMode(std::move(value)); return *this;} /** *The privacy setting of the channel.
*/ inline const ChannelPrivacy& GetPrivacy() const{ return m_privacy; } /** *The privacy setting of the channel.
*/ inline bool PrivacyHasBeenSet() const { return m_privacyHasBeenSet; } /** *The privacy setting of the channel.
*/ inline void SetPrivacy(const ChannelPrivacy& value) { m_privacyHasBeenSet = true; m_privacy = value; } /** *The privacy setting of the channel.
*/ inline void SetPrivacy(ChannelPrivacy&& value) { m_privacyHasBeenSet = true; m_privacy = std::move(value); } /** *The privacy setting of the channel.
*/ inline ChannelSummary& WithPrivacy(const ChannelPrivacy& value) { SetPrivacy(value); return *this;} /** *The privacy setting of the channel.
*/ inline ChannelSummary& WithPrivacy(ChannelPrivacy&& value) { SetPrivacy(std::move(value)); return *this;} /** *The metadata of the channel.
*/ inline const Aws::String& GetMetadata() const{ return m_metadata; } /** *The metadata of the channel.
*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *The metadata of the channel.
*/ inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *The metadata of the channel.
*/ inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *The metadata of the channel.
*/ inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); } /** *The metadata of the channel.
*/ inline ChannelSummary& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;} /** *The metadata of the channel.
*/ inline ChannelSummary& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;} /** *The metadata of the channel.
*/ inline ChannelSummary& WithMetadata(const char* value) { SetMetadata(value); return *this;} /** *The time at which the last message in a channel was sent.
*/ inline const Aws::Utils::DateTime& GetLastMessageTimestamp() const{ return m_lastMessageTimestamp; } /** *The time at which the last message in a channel was sent.
*/ inline bool LastMessageTimestampHasBeenSet() const { return m_lastMessageTimestampHasBeenSet; } /** *The time at which the last message in a channel was sent.
*/ inline void SetLastMessageTimestamp(const Aws::Utils::DateTime& value) { m_lastMessageTimestampHasBeenSet = true; m_lastMessageTimestamp = value; } /** *The time at which the last message in a channel was sent.
*/ inline void SetLastMessageTimestamp(Aws::Utils::DateTime&& value) { m_lastMessageTimestampHasBeenSet = true; m_lastMessageTimestamp = std::move(value); } /** *The time at which the last message in a channel was sent.
*/ inline ChannelSummary& WithLastMessageTimestamp(const Aws::Utils::DateTime& value) { SetLastMessageTimestamp(value); return *this;} /** *The time at which the last message in a channel was sent.
*/ inline ChannelSummary& WithLastMessageTimestamp(Aws::Utils::DateTime&& value) { SetLastMessageTimestamp(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; ChannelMode m_mode; bool m_modeHasBeenSet = false; ChannelPrivacy m_privacy; bool m_privacyHasBeenSet = false; Aws::String m_metadata; bool m_metadataHasBeenSet = false; Aws::Utils::DateTime m_lastMessageTimestamp; bool m_lastMessageTimestampHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws