/** * 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 { /** *

This object defines one value to be copied with the * copyValue processor.

See Also:

AWS * API Reference

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

The key to copy.

*/ inline const Aws::String& GetSource() const{ return m_source; } inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } inline CopyValueEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;} inline CopyValueEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} inline CopyValueEntry& WithSource(const char* value) { SetSource(value); return *this;} ///@} ///@{ /** *

The key of the field to copy the value to.

*/ inline const Aws::String& GetTarget() const{ return m_target; } inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; } inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); } inline CopyValueEntry& WithTarget(const Aws::String& value) { SetTarget(value); return *this;} inline CopyValueEntry& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;} inline CopyValueEntry& WithTarget(const char* value) { SetTarget(value); return *this;} ///@} ///@{ /** *

Specifies whether to overwrite the value if the destination key already * exists. If you omit this, the default is false.

*/ inline bool GetOverwriteIfExists() const{ return m_overwriteIfExists; } inline bool OverwriteIfExistsHasBeenSet() const { return m_overwriteIfExistsHasBeenSet; } inline void SetOverwriteIfExists(bool value) { m_overwriteIfExistsHasBeenSet = true; m_overwriteIfExists = value; } inline CopyValueEntry& WithOverwriteIfExists(bool value) { SetOverwriteIfExists(value); return *this;} ///@} private: Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_target; bool m_targetHasBeenSet = false; bool m_overwriteIfExists; bool m_overwriteIfExistsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws