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

The parameters for using an CloudWatch Logs log stream as a * target.

See Also:

AWS * API Reference

*/ class PipeTargetCloudWatchLogsParameters { public: AWS_PIPES_API PipeTargetCloudWatchLogsParameters(); AWS_PIPES_API PipeTargetCloudWatchLogsParameters(Aws::Utils::Json::JsonView jsonValue); AWS_PIPES_API PipeTargetCloudWatchLogsParameters& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PIPES_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 PipeTargetCloudWatchLogsParameters& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;} /** *

The name of the log stream.

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

The name of the log stream.

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

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

*/ inline const Aws::String& GetTimestamp() const{ return m_timestamp; } /** *

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

*/ inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

*/ inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

*/ inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); } /** *

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

*/ inline PipeTargetCloudWatchLogsParameters& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;} /** *

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

*/ inline PipeTargetCloudWatchLogsParameters& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The time the event occurred, expressed as the number of milliseconds after * Jan 1, 1970 00:00:00 UTC.

*/ inline PipeTargetCloudWatchLogsParameters& WithTimestamp(const char* value) { SetTimestamp(value); return *this;} private: Aws::String m_logStreamName; bool m_logStreamNameHasBeenSet = false; Aws::String m_timestamp; bool m_timestampHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws