AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CopyValueEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
30 public:
31 AWS_CLOUDWATCHLOGS_API CopyValueEntry() = default;
32 AWS_CLOUDWATCHLOGS_API CopyValueEntry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API CopyValueEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSource() const { return m_source; }
41 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
42 template <typename SourceT = Aws::String>
43 void SetSource(SourceT&& value) {
44 m_sourceHasBeenSet = true;
45 m_source = std::forward<SourceT>(value);
46 }
47 template <typename SourceT = Aws::String>
48 CopyValueEntry& WithSource(SourceT&& value) {
49 SetSource(std::forward<SourceT>(value));
50 return *this;
51 }
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) {
62 m_targetHasBeenSet = true;
63 m_target = std::forward<TargetT>(value);
64 }
65 template <typename TargetT = Aws::String>
66 CopyValueEntry& WithTarget(TargetT&& value) {
67 SetTarget(std::forward<TargetT>(value));
68 return *this;
69 }
71
73
77 inline bool GetOverwriteIfExists() const { return m_overwriteIfExists; }
78 inline bool OverwriteIfExistsHasBeenSet() const { return m_overwriteIfExistsHasBeenSet; }
79 inline void SetOverwriteIfExists(bool value) {
80 m_overwriteIfExistsHasBeenSet = true;
81 m_overwriteIfExists = value;
82 }
85 return *this;
86 }
88 private:
89 Aws::String m_source;
90
91 Aws::String m_target;
92
93 bool m_overwriteIfExists{false};
94 bool m_sourceHasBeenSet = false;
95 bool m_targetHasBeenSet = false;
96 bool m_overwriteIfExistsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CloudWatchLogs
101} // 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