AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DateTimeConverter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
33 public:
34 AWS_CLOUDWATCHLOGS_API DateTimeConverter() = default;
35 AWS_CLOUDWATCHLOGS_API DateTimeConverter(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API DateTimeConverter& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetSource() const { return m_source; }
44 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
45 template <typename SourceT = Aws::String>
46 void SetSource(SourceT&& value) {
47 m_sourceHasBeenSet = true;
48 m_source = std::forward<SourceT>(value);
49 }
50 template <typename SourceT = Aws::String>
51 DateTimeConverter& WithSource(SourceT&& value) {
52 SetSource(std::forward<SourceT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTarget() const { return m_target; }
62 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
63 template <typename TargetT = Aws::String>
64 void SetTarget(TargetT&& value) {
65 m_targetHasBeenSet = true;
66 m_target = std::forward<TargetT>(value);
67 }
68 template <typename TargetT = Aws::String>
69 DateTimeConverter& WithTarget(TargetT&& value) {
70 SetTarget(std::forward<TargetT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::String& GetTargetFormat() const { return m_targetFormat; }
82 inline bool TargetFormatHasBeenSet() const { return m_targetFormatHasBeenSet; }
83 template <typename TargetFormatT = Aws::String>
84 void SetTargetFormat(TargetFormatT&& value) {
85 m_targetFormatHasBeenSet = true;
86 m_targetFormat = std::forward<TargetFormatT>(value);
87 }
88 template <typename TargetFormatT = Aws::String>
89 DateTimeConverter& WithTargetFormat(TargetFormatT&& value) {
90 SetTargetFormat(std::forward<TargetFormatT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Aws::String>& GetMatchPatterns() const { return m_matchPatterns; }
100 inline bool MatchPatternsHasBeenSet() const { return m_matchPatternsHasBeenSet; }
101 template <typename MatchPatternsT = Aws::Vector<Aws::String>>
102 void SetMatchPatterns(MatchPatternsT&& value) {
103 m_matchPatternsHasBeenSet = true;
104 m_matchPatterns = std::forward<MatchPatternsT>(value);
105 }
106 template <typename MatchPatternsT = Aws::Vector<Aws::String>>
107 DateTimeConverter& WithMatchPatterns(MatchPatternsT&& value) {
108 SetMatchPatterns(std::forward<MatchPatternsT>(value));
109 return *this;
110 }
111 template <typename MatchPatternsT = Aws::String>
112 DateTimeConverter& AddMatchPatterns(MatchPatternsT&& value) {
113 m_matchPatternsHasBeenSet = true;
114 m_matchPatterns.emplace_back(std::forward<MatchPatternsT>(value));
115 return *this;
116 }
118
120
124 inline const Aws::String& GetSourceTimezone() const { return m_sourceTimezone; }
125 inline bool SourceTimezoneHasBeenSet() const { return m_sourceTimezoneHasBeenSet; }
126 template <typename SourceTimezoneT = Aws::String>
127 void SetSourceTimezone(SourceTimezoneT&& value) {
128 m_sourceTimezoneHasBeenSet = true;
129 m_sourceTimezone = std::forward<SourceTimezoneT>(value);
130 }
131 template <typename SourceTimezoneT = Aws::String>
132 DateTimeConverter& WithSourceTimezone(SourceTimezoneT&& value) {
133 SetSourceTimezone(std::forward<SourceTimezoneT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::String& GetTargetTimezone() const { return m_targetTimezone; }
144 inline bool TargetTimezoneHasBeenSet() const { return m_targetTimezoneHasBeenSet; }
145 template <typename TargetTimezoneT = Aws::String>
146 void SetTargetTimezone(TargetTimezoneT&& value) {
147 m_targetTimezoneHasBeenSet = true;
148 m_targetTimezone = std::forward<TargetTimezoneT>(value);
149 }
150 template <typename TargetTimezoneT = Aws::String>
151 DateTimeConverter& WithTargetTimezone(TargetTimezoneT&& value) {
152 SetTargetTimezone(std::forward<TargetTimezoneT>(value));
153 return *this;
154 }
156
158
162 inline const Aws::String& GetLocale() const { return m_locale; }
163 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
164 template <typename LocaleT = Aws::String>
165 void SetLocale(LocaleT&& value) {
166 m_localeHasBeenSet = true;
167 m_locale = std::forward<LocaleT>(value);
168 }
169 template <typename LocaleT = Aws::String>
170 DateTimeConverter& WithLocale(LocaleT&& value) {
171 SetLocale(std::forward<LocaleT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_source;
177
178 Aws::String m_target;
179
180 Aws::String m_targetFormat;
181
182 Aws::Vector<Aws::String> m_matchPatterns;
183
184 Aws::String m_sourceTimezone;
185
186 Aws::String m_targetTimezone;
187
188 Aws::String m_locale;
189 bool m_sourceHasBeenSet = false;
190 bool m_targetHasBeenSet = false;
191 bool m_targetFormatHasBeenSet = false;
192 bool m_matchPatternsHasBeenSet = false;
193 bool m_sourceTimezoneHasBeenSet = false;
194 bool m_targetTimezoneHasBeenSet = false;
195 bool m_localeHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace CloudWatchLogs
200} // namespace Aws
void SetTargetTimezone(TargetTimezoneT &&value)
DateTimeConverter & WithMatchPatterns(MatchPatternsT &&value)
DateTimeConverter & WithTargetFormat(TargetFormatT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
DateTimeConverter & WithTargetTimezone(TargetTimezoneT &&value)
DateTimeConverter & WithTarget(TargetT &&value)
DateTimeConverter & WithLocale(LocaleT &&value)
AWS_CLOUDWATCHLOGS_API DateTimeConverter(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API DateTimeConverter()=default
AWS_CLOUDWATCHLOGS_API DateTimeConverter & operator=(Aws::Utils::Json::JsonView jsonValue)
DateTimeConverter & WithSourceTimezone(SourceTimezoneT &&value)
const Aws::Vector< Aws::String > & GetMatchPatterns() const
DateTimeConverter & AddMatchPatterns(MatchPatternsT &&value)
void SetSourceTimezone(SourceTimezoneT &&value)
DateTimeConverter & WithSource(SourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue