/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { class GetLogRecordResult { public: AWS_CLOUDWATCHLOGS_API GetLogRecordResult(); AWS_CLOUDWATCHLOGS_API GetLogRecordResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHLOGS_API GetLogRecordResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The requested log event, as a JSON string.

*/ inline const Aws::Map& GetLogRecord() const{ return m_logRecord; } /** *

The requested log event, as a JSON string.

*/ inline void SetLogRecord(const Aws::Map& value) { m_logRecord = value; } /** *

The requested log event, as a JSON string.

*/ inline void SetLogRecord(Aws::Map&& value) { m_logRecord = std::move(value); } /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& WithLogRecord(const Aws::Map& value) { SetLogRecord(value); return *this;} /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& WithLogRecord(Aws::Map&& value) { SetLogRecord(std::move(value)); return *this;} /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& AddLogRecord(const Aws::String& key, const Aws::String& value) { m_logRecord.emplace(key, value); return *this; } /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& AddLogRecord(Aws::String&& key, const Aws::String& value) { m_logRecord.emplace(std::move(key), value); return *this; } /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& AddLogRecord(const Aws::String& key, Aws::String&& value) { m_logRecord.emplace(key, std::move(value)); return *this; } /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& AddLogRecord(Aws::String&& key, Aws::String&& value) { m_logRecord.emplace(std::move(key), std::move(value)); return *this; } /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& AddLogRecord(const char* key, Aws::String&& value) { m_logRecord.emplace(key, std::move(value)); return *this; } /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& AddLogRecord(Aws::String&& key, const char* value) { m_logRecord.emplace(std::move(key), value); return *this; } /** *

The requested log event, as a JSON string.

*/ inline GetLogRecordResult& AddLogRecord(const char* key, const char* value) { m_logRecord.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetLogRecordResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetLogRecordResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetLogRecordResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Map m_logRecord; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws