AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CopyValueEntry.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API CopyValueEntry() = default;
37 AWS_CLOUDWATCHLOGS_API CopyValueEntry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API CopyValueEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSource() const { return m_source; }
47 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
48 template<typename SourceT = Aws::String>
49 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
50 template<typename SourceT = Aws::String>
51 CopyValueEntry& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
53
55
58 inline const Aws::String& GetTarget() const { return m_target; }
59 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
60 template<typename TargetT = Aws::String>
61 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
62 template<typename TargetT = Aws::String>
63 CopyValueEntry& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
65
67
71 inline bool GetOverwriteIfExists() const { return m_overwriteIfExists; }
72 inline bool OverwriteIfExistsHasBeenSet() const { return m_overwriteIfExistsHasBeenSet; }
73 inline void SetOverwriteIfExists(bool value) { m_overwriteIfExistsHasBeenSet = true; m_overwriteIfExists = value; }
74 inline CopyValueEntry& WithOverwriteIfExists(bool value) { SetOverwriteIfExists(value); return *this;}
76 private:
77
78 Aws::String m_source;
79 bool m_sourceHasBeenSet = false;
80
81 Aws::String m_target;
82 bool m_targetHasBeenSet = false;
83
84 bool m_overwriteIfExists{false};
85 bool m_overwriteIfExistsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CloudWatchLogs
90} // namespace Aws
CopyValueEntry & WithTarget(TargetT &&value)
AWS_CLOUDWATCHLOGS_API CopyValueEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
CopyValueEntry & WithOverwriteIfExists(bool value)
bool GetOverwriteIfExists() const
void SetTarget(TargetT &&value)
bool OverwriteIfExistsHasBeenSet() const
const Aws::String & GetTarget() const
AWS_CLOUDWATCHLOGS_API CopyValueEntry()=default
void SetOverwriteIfExists(bool value)
AWS_CLOUDWATCHLOGS_API CopyValueEntry(Aws::Utils::Json::JsonView jsonValue)
void SetSource(SourceT &&value)
const Aws::String & GetSource() const
CopyValueEntry & WithSource(SourceT &&value)
bool TargetHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue