/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

This processor adds new key-value pairs to the log event.

For more * information about this processor including examples, see * addKeys in the CloudWatch Logs User Guide.

See Also:

* AWS API * Reference

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

An array of objects, where each object contains the information about one key * to add to the log event.

*/ inline const Aws::Vector& GetEntries() const{ return m_entries; } inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; } inline void SetEntries(const Aws::Vector& value) { m_entriesHasBeenSet = true; m_entries = value; } inline void SetEntries(Aws::Vector&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); } inline AddKeys& WithEntries(const Aws::Vector& value) { SetEntries(value); return *this;} inline AddKeys& WithEntries(Aws::Vector&& value) { SetEntries(std::move(value)); return *this;} inline AddKeys& AddEntries(const AddKeyEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; } inline AddKeys& AddEntries(AddKeyEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(std::move(value)); return *this; } ///@} private: Aws::Vector m_entries; bool m_entriesHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws