AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SubstituteStringEntry.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 SubstituteStringEntry() = default;
32 AWS_CLOUDWATCHLOGS_API SubstituteStringEntry(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>
49 SetSource(std::forward<SourceT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetFrom() const { return m_from; }
63 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
64 template <typename FromT = Aws::String>
65 void SetFrom(FromT&& value) {
66 m_fromHasBeenSet = true;
67 m_from = std::forward<FromT>(value);
68 }
69 template <typename FromT = Aws::String>
71 SetFrom(std::forward<FromT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetTo() const { return m_to; }
81 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
82 template <typename ToT = Aws::String>
83 void SetTo(ToT&& value) {
84 m_toHasBeenSet = true;
85 m_to = std::forward<ToT>(value);
86 }
87 template <typename ToT = Aws::String>
89 SetTo(std::forward<ToT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_source;
95
96 Aws::String m_from;
97
98 Aws::String m_to;
99 bool m_sourceHasBeenSet = false;
100 bool m_fromHasBeenSet = false;
101 bool m_toHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CloudWatchLogs
106} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
SubstituteStringEntry & WithTo(ToT &&value)
const Aws::String & GetTo() const
AWS_CLOUDWATCHLOGS_API SubstituteStringEntry()=default
const Aws::String & GetFrom() const
void SetFrom(FromT &&value)
bool SourceHasBeenSet() const
AWS_CLOUDWATCHLOGS_API SubstituteStringEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FromHasBeenSet() const
SubstituteStringEntry & WithFrom(FromT &&value)
SubstituteStringEntry & WithSource(SourceT &&value)
const Aws::String & GetSource() const
AWS_CLOUDWATCHLOGS_API SubstituteStringEntry(Aws::Utils::Json::JsonView jsonValue)
void SetTo(ToT &&value)
void SetSource(SourceT &&value)
bool ToHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue