dai_env / include /aws /logs /model /CopyValueEntry.h
Shenghong's picture
Add files using upload-large-folder tool
7791ca1 verified
Raw History Blame Contribute Delete
3.68 kB
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/logs/CloudWatchLogs_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchLogs
{
namespace Model
{
/**
* <p>This object defines one value to be copied with the <a
* href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-copoyValue">
* copyValue</a> processor.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CopyValueEntry">AWS
* API Reference</a></p>
*/
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;
///@{
/**
* <p>The key to copy.</p>
*/
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;}
///@}
///@{
/**
* <p>The key of the field to copy the value to.</p>
*/
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;}
///@}
///@{
/**
* <p>Specifies whether to overwrite the value if the destination key already
* exists. If you omit this, the default is <code>false</code>.</p>
*/
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