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

Represents the search status of a log stream.

See Also:

AWS * API Reference

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

The name of the log stream.

*/ inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; } /** *

The name of the log stream.

*/ inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; } /** *

The name of the log stream.

*/ inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; } /** *

The name of the log stream.

*/ inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); } /** *

The name of the log stream.

*/ inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); } /** *

The name of the log stream.

*/ inline SearchedLogStream& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;} /** *

The name of the log stream.

*/ inline SearchedLogStream& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;} /** *

The name of the log stream.

*/ inline SearchedLogStream& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;} /** *

Indicates whether all the events in this log stream were searched.

*/ inline bool GetSearchedCompletely() const{ return m_searchedCompletely; } /** *

Indicates whether all the events in this log stream were searched.

*/ inline bool SearchedCompletelyHasBeenSet() const { return m_searchedCompletelyHasBeenSet; } /** *

Indicates whether all the events in this log stream were searched.

*/ inline void SetSearchedCompletely(bool value) { m_searchedCompletelyHasBeenSet = true; m_searchedCompletely = value; } /** *

Indicates whether all the events in this log stream were searched.

*/ inline SearchedLogStream& WithSearchedCompletely(bool value) { SetSearchedCompletely(value); return *this;} private: Aws::String m_logStreamName; bool m_logStreamNameHasBeenSet = false; bool m_searchedCompletely; bool m_searchedCompletelyHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws