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

A summary of information about a channel.

See Also:

AWS * API Reference

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

The name of the channel.

*/ inline const Aws::String& GetChannelName() const{ return m_channelName; } /** *

The name of the channel.

*/ inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } /** *

The name of the channel.

*/ inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } /** *

The name of the channel.

*/ inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } /** *

The name of the channel.

*/ inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } /** *

The name of the channel.

*/ inline ChannelSummary& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

The name of the channel.

*/ inline ChannelSummary& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} /** *

The name of the channel.

*/ inline ChannelSummary& WithChannelName(const char* value) { SetChannelName(value); return *this;} /** *

Where channel data is stored.

*/ inline const ChannelStorageSummary& GetChannelStorage() const{ return m_channelStorage; } /** *

Where channel data is stored.

*/ inline bool ChannelStorageHasBeenSet() const { return m_channelStorageHasBeenSet; } /** *

Where channel data is stored.

*/ inline void SetChannelStorage(const ChannelStorageSummary& value) { m_channelStorageHasBeenSet = true; m_channelStorage = value; } /** *

Where channel data is stored.

*/ inline void SetChannelStorage(ChannelStorageSummary&& value) { m_channelStorageHasBeenSet = true; m_channelStorage = std::move(value); } /** *

Where channel data is stored.

*/ inline ChannelSummary& WithChannelStorage(const ChannelStorageSummary& value) { SetChannelStorage(value); return *this;} /** *

Where channel data is stored.

*/ inline ChannelSummary& WithChannelStorage(ChannelStorageSummary&& value) { SetChannelStorage(std::move(value)); return *this;} /** *

The status of the channel.

*/ inline const ChannelStatus& GetStatus() const{ return m_status; } /** *

The status of the channel.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the channel.

*/ inline void SetStatus(const ChannelStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the channel.

*/ inline void SetStatus(ChannelStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the channel.

*/ inline ChannelSummary& WithStatus(const ChannelStatus& value) { SetStatus(value); return *this;} /** *

The status of the channel.

*/ inline ChannelSummary& WithStatus(ChannelStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

When the channel was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

When the channel was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the channel was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

When the channel was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

When the channel was created.

*/ inline ChannelSummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

When the channel was created.

*/ inline ChannelSummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The last time the channel was updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The last time the channel was updated.

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The last time the channel was updated.

*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The last time the channel was updated.

*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The last time the channel was updated.

*/ inline ChannelSummary& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *

The last time the channel was updated.

*/ inline ChannelSummary& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} /** *

The last time when a new message arrived in the channel.

IoT Analytics * updates this value at most once per minute for one channel. Hence, the * lastMessageArrivalTime value is an approximation.

This * feature only applies to messages that arrived in the data store after October * 23, 2020.

*/ inline const Aws::Utils::DateTime& GetLastMessageArrivalTime() const{ return m_lastMessageArrivalTime; } /** *

The last time when a new message arrived in the channel.

IoT Analytics * updates this value at most once per minute for one channel. Hence, the * lastMessageArrivalTime value is an approximation.

This * feature only applies to messages that arrived in the data store after October * 23, 2020.

*/ inline bool LastMessageArrivalTimeHasBeenSet() const { return m_lastMessageArrivalTimeHasBeenSet; } /** *

The last time when a new message arrived in the channel.

IoT Analytics * updates this value at most once per minute for one channel. Hence, the * lastMessageArrivalTime value is an approximation.

This * feature only applies to messages that arrived in the data store after October * 23, 2020.

*/ inline void SetLastMessageArrivalTime(const Aws::Utils::DateTime& value) { m_lastMessageArrivalTimeHasBeenSet = true; m_lastMessageArrivalTime = value; } /** *

The last time when a new message arrived in the channel.

IoT Analytics * updates this value at most once per minute for one channel. Hence, the * lastMessageArrivalTime value is an approximation.

This * feature only applies to messages that arrived in the data store after October * 23, 2020.

*/ inline void SetLastMessageArrivalTime(Aws::Utils::DateTime&& value) { m_lastMessageArrivalTimeHasBeenSet = true; m_lastMessageArrivalTime = std::move(value); } /** *

The last time when a new message arrived in the channel.

IoT Analytics * updates this value at most once per minute for one channel. Hence, the * lastMessageArrivalTime value is an approximation.

This * feature only applies to messages that arrived in the data store after October * 23, 2020.

*/ inline ChannelSummary& WithLastMessageArrivalTime(const Aws::Utils::DateTime& value) { SetLastMessageArrivalTime(value); return *this;} /** *

The last time when a new message arrived in the channel.

IoT Analytics * updates this value at most once per minute for one channel. Hence, the * lastMessageArrivalTime value is an approximation.

This * feature only applies to messages that arrived in the data store after October * 23, 2020.

*/ inline ChannelSummary& WithLastMessageArrivalTime(Aws::Utils::DateTime&& value) { SetLastMessageArrivalTime(std::move(value)); return *this;} private: Aws::String m_channelName; bool m_channelNameHasBeenSet = false; ChannelStorageSummary m_channelStorage; bool m_channelStorageHasBeenSet = false; ChannelStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; Aws::Utils::DateTime m_lastMessageArrivalTime; bool m_lastMessageArrivalTimeHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws