/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class GetLogRecordRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API GetLogRecordRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetLogRecord"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The pointer corresponding to the log event record you want to retrieve. You * get this from the response of a GetQueryResults operation. In that * response, the value of the @ptr field for a log event is the value * to use as logRecordPointer to retrieve that complete log event * record.

*/ inline const Aws::String& GetLogRecordPointer() const{ return m_logRecordPointer; } /** *

The pointer corresponding to the log event record you want to retrieve. You * get this from the response of a GetQueryResults operation. In that * response, the value of the @ptr field for a log event is the value * to use as logRecordPointer to retrieve that complete log event * record.

*/ inline bool LogRecordPointerHasBeenSet() const { return m_logRecordPointerHasBeenSet; } /** *

The pointer corresponding to the log event record you want to retrieve. You * get this from the response of a GetQueryResults operation. In that * response, the value of the @ptr field for a log event is the value * to use as logRecordPointer to retrieve that complete log event * record.

*/ inline void SetLogRecordPointer(const Aws::String& value) { m_logRecordPointerHasBeenSet = true; m_logRecordPointer = value; } /** *

The pointer corresponding to the log event record you want to retrieve. You * get this from the response of a GetQueryResults operation. In that * response, the value of the @ptr field for a log event is the value * to use as logRecordPointer to retrieve that complete log event * record.

*/ inline void SetLogRecordPointer(Aws::String&& value) { m_logRecordPointerHasBeenSet = true; m_logRecordPointer = std::move(value); } /** *

The pointer corresponding to the log event record you want to retrieve. You * get this from the response of a GetQueryResults operation. In that * response, the value of the @ptr field for a log event is the value * to use as logRecordPointer to retrieve that complete log event * record.

*/ inline void SetLogRecordPointer(const char* value) { m_logRecordPointerHasBeenSet = true; m_logRecordPointer.assign(value); } /** *

The pointer corresponding to the log event record you want to retrieve. You * get this from the response of a GetQueryResults operation. In that * response, the value of the @ptr field for a log event is the value * to use as logRecordPointer to retrieve that complete log event * record.

*/ inline GetLogRecordRequest& WithLogRecordPointer(const Aws::String& value) { SetLogRecordPointer(value); return *this;} /** *

The pointer corresponding to the log event record you want to retrieve. You * get this from the response of a GetQueryResults operation. In that * response, the value of the @ptr field for a log event is the value * to use as logRecordPointer to retrieve that complete log event * record.

*/ inline GetLogRecordRequest& WithLogRecordPointer(Aws::String&& value) { SetLogRecordPointer(std::move(value)); return *this;} /** *

The pointer corresponding to the log event record you want to retrieve. You * get this from the response of a GetQueryResults operation. In that * response, the value of the @ptr field for a log event is the value * to use as logRecordPointer to retrieve that complete log event * record.

*/ inline GetLogRecordRequest& WithLogRecordPointer(const char* value) { SetLogRecordPointer(value); return *this;} /** *

Specify true to display the log event fields with all sensitive * data unmasked and visible. The default is false.

To use this * operation with this parameter, you must be signed into an account with the * logs:Unmask permission.

*/ inline bool GetUnmask() const{ return m_unmask; } /** *

Specify true to display the log event fields with all sensitive * data unmasked and visible. The default is false.

To use this * operation with this parameter, you must be signed into an account with the * logs:Unmask permission.

*/ inline bool UnmaskHasBeenSet() const { return m_unmaskHasBeenSet; } /** *

Specify true to display the log event fields with all sensitive * data unmasked and visible. The default is false.

To use this * operation with this parameter, you must be signed into an account with the * logs:Unmask permission.

*/ inline void SetUnmask(bool value) { m_unmaskHasBeenSet = true; m_unmask = value; } /** *

Specify true to display the log event fields with all sensitive * data unmasked and visible. The default is false.

To use this * operation with this parameter, you must be signed into an account with the * logs:Unmask permission.

*/ inline GetLogRecordRequest& WithUnmask(bool value) { SetUnmask(value); return *this;} private: Aws::String m_logRecordPointer; bool m_logRecordPointerHasBeenSet = false; bool m_unmask; bool m_unmaskHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws