/** * 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 CloudWatchLogs { namespace Model { /** *

This object contains the log events and metadata for a Live Tail * session.

See Also:

AWS * API Reference

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

This object contains the session metadata for a Live Tail session.

*/ inline const LiveTailSessionMetadata& GetSessionMetadata() const{ return m_sessionMetadata; } /** *

This object contains the session metadata for a Live Tail session.

*/ inline bool SessionMetadataHasBeenSet() const { return m_sessionMetadataHasBeenSet; } /** *

This object contains the session metadata for a Live Tail session.

*/ inline void SetSessionMetadata(const LiveTailSessionMetadata& value) { m_sessionMetadataHasBeenSet = true; m_sessionMetadata = value; } /** *

This object contains the session metadata for a Live Tail session.

*/ inline void SetSessionMetadata(LiveTailSessionMetadata&& value) { m_sessionMetadataHasBeenSet = true; m_sessionMetadata = std::move(value); } /** *

This object contains the session metadata for a Live Tail session.

*/ inline LiveTailSessionUpdate& WithSessionMetadata(const LiveTailSessionMetadata& value) { SetSessionMetadata(value); return *this;} /** *

This object contains the session metadata for a Live Tail session.

*/ inline LiveTailSessionUpdate& WithSessionMetadata(LiveTailSessionMetadata&& value) { SetSessionMetadata(std::move(value)); return *this;} /** *

An array, where each member of the array includes the information for one log * event in the Live Tail session.

A sessionResults array can * include as many as 500 log events. If the number of log events matching the * request exceeds 500 per second, the log events are sampled down to 500 log * events to be included in each sessionUpdate structure.

*/ inline const Aws::Vector& GetSessionResults() const{ return m_sessionResults; } /** *

An array, where each member of the array includes the information for one log * event in the Live Tail session.

A sessionResults array can * include as many as 500 log events. If the number of log events matching the * request exceeds 500 per second, the log events are sampled down to 500 log * events to be included in each sessionUpdate structure.

*/ inline bool SessionResultsHasBeenSet() const { return m_sessionResultsHasBeenSet; } /** *

An array, where each member of the array includes the information for one log * event in the Live Tail session.

A sessionResults array can * include as many as 500 log events. If the number of log events matching the * request exceeds 500 per second, the log events are sampled down to 500 log * events to be included in each sessionUpdate structure.

*/ inline void SetSessionResults(const Aws::Vector& value) { m_sessionResultsHasBeenSet = true; m_sessionResults = value; } /** *

An array, where each member of the array includes the information for one log * event in the Live Tail session.

A sessionResults array can * include as many as 500 log events. If the number of log events matching the * request exceeds 500 per second, the log events are sampled down to 500 log * events to be included in each sessionUpdate structure.

*/ inline void SetSessionResults(Aws::Vector&& value) { m_sessionResultsHasBeenSet = true; m_sessionResults = std::move(value); } /** *

An array, where each member of the array includes the information for one log * event in the Live Tail session.

A sessionResults array can * include as many as 500 log events. If the number of log events matching the * request exceeds 500 per second, the log events are sampled down to 500 log * events to be included in each sessionUpdate structure.

*/ inline LiveTailSessionUpdate& WithSessionResults(const Aws::Vector& value) { SetSessionResults(value); return *this;} /** *

An array, where each member of the array includes the information for one log * event in the Live Tail session.

A sessionResults array can * include as many as 500 log events. If the number of log events matching the * request exceeds 500 per second, the log events are sampled down to 500 log * events to be included in each sessionUpdate structure.

*/ inline LiveTailSessionUpdate& WithSessionResults(Aws::Vector&& value) { SetSessionResults(std::move(value)); return *this;} /** *

An array, where each member of the array includes the information for one log * event in the Live Tail session.

A sessionResults array can * include as many as 500 log events. If the number of log events matching the * request exceeds 500 per second, the log events are sampled down to 500 log * events to be included in each sessionUpdate structure.

*/ inline LiveTailSessionUpdate& AddSessionResults(const LiveTailSessionLogEvent& value) { m_sessionResultsHasBeenSet = true; m_sessionResults.push_back(value); return *this; } /** *

An array, where each member of the array includes the information for one log * event in the Live Tail session.

A sessionResults array can * include as many as 500 log events. If the number of log events matching the * request exceeds 500 per second, the log events are sampled down to 500 log * events to be included in each sessionUpdate structure.

*/ inline LiveTailSessionUpdate& AddSessionResults(LiveTailSessionLogEvent&& value) { m_sessionResultsHasBeenSet = true; m_sessionResults.push_back(std::move(value)); return *this; } private: LiveTailSessionMetadata m_sessionMetadata; bool m_sessionMetadataHasBeenSet = false; Aws::Vector m_sessionResults; bool m_sessionResultsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws