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

This object contains the metadata for one LiveTailSessionUpdate * structure. It indicates whether that update includes only a sample of 500 log * events out of a larger number of ingested log events, or if it contains all of * the matching log events ingested during that second of time.

See * Also:

AWS * API Reference

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

If this is true, then more than 500 log events matched the * request for this update, and the sessionResults includes a sample * of 500 of those events.

If this is false, then 500 or fewer * log events matched the request for this update, so no sampling was necessary. In * this case, the sessionResults array includes all log events that * matched your request during this time.

*/ inline bool GetSampled() const{ return m_sampled; } /** *

If this is true, then more than 500 log events matched the * request for this update, and the sessionResults includes a sample * of 500 of those events.

If this is false, then 500 or fewer * log events matched the request for this update, so no sampling was necessary. In * this case, the sessionResults array includes all log events that * matched your request during this time.

*/ inline bool SampledHasBeenSet() const { return m_sampledHasBeenSet; } /** *

If this is true, then more than 500 log events matched the * request for this update, and the sessionResults includes a sample * of 500 of those events.

If this is false, then 500 or fewer * log events matched the request for this update, so no sampling was necessary. In * this case, the sessionResults array includes all log events that * matched your request during this time.

*/ inline void SetSampled(bool value) { m_sampledHasBeenSet = true; m_sampled = value; } /** *

If this is true, then more than 500 log events matched the * request for this update, and the sessionResults includes a sample * of 500 of those events.

If this is false, then 500 or fewer * log events matched the request for this update, so no sampling was necessary. In * this case, the sessionResults array includes all log events that * matched your request during this time.

*/ inline LiveTailSessionMetadata& WithSampled(bool value) { SetSampled(value); return *this;} private: bool m_sampled; bool m_sampledHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws