AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DateTimeConverter.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CLOUDWATCHLOGS_API DateTimeConverter() = default;
40 AWS_CLOUDWATCHLOGS_API DateTimeConverter(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API DateTimeConverter& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetSource() const { return m_source; }
50 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
51 template<typename SourceT = Aws::String>
52 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
53 template<typename SourceT = Aws::String>
54 DateTimeConverter& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
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) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
65 template<typename TargetT = Aws::String>
66 DateTimeConverter& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
68
70
75 inline const Aws::String& GetTargetFormat() const { return m_targetFormat; }
76 inline bool TargetFormatHasBeenSet() const { return m_targetFormatHasBeenSet; }
77 template<typename TargetFormatT = Aws::String>
78 void SetTargetFormat(TargetFormatT&& value) { m_targetFormatHasBeenSet = true; m_targetFormat = std::forward<TargetFormatT>(value); }
79 template<typename TargetFormatT = Aws::String>
80 DateTimeConverter& WithTargetFormat(TargetFormatT&& value) { SetTargetFormat(std::forward<TargetFormatT>(value)); return *this;}
82
84
87 inline const Aws::Vector<Aws::String>& GetMatchPatterns() const { return m_matchPatterns; }
88 inline bool MatchPatternsHasBeenSet() const { return m_matchPatternsHasBeenSet; }
89 template<typename MatchPatternsT = Aws::Vector<Aws::String>>
90 void SetMatchPatterns(MatchPatternsT&& value) { m_matchPatternsHasBeenSet = true; m_matchPatterns = std::forward<MatchPatternsT>(value); }
91 template<typename MatchPatternsT = Aws::Vector<Aws::String>>
92 DateTimeConverter& WithMatchPatterns(MatchPatternsT&& value) { SetMatchPatterns(std::forward<MatchPatternsT>(value)); return *this;}
93 template<typename MatchPatternsT = Aws::String>
94 DateTimeConverter& AddMatchPatterns(MatchPatternsT&& value) { m_matchPatternsHasBeenSet = true; m_matchPatterns.emplace_back(std::forward<MatchPatternsT>(value)); return *this; }
96
98
102 inline const Aws::String& GetSourceTimezone() const { return m_sourceTimezone; }
103 inline bool SourceTimezoneHasBeenSet() const { return m_sourceTimezoneHasBeenSet; }
104 template<typename SourceTimezoneT = Aws::String>
105 void SetSourceTimezone(SourceTimezoneT&& value) { m_sourceTimezoneHasBeenSet = true; m_sourceTimezone = std::forward<SourceTimezoneT>(value); }
106 template<typename SourceTimezoneT = Aws::String>
107 DateTimeConverter& WithSourceTimezone(SourceTimezoneT&& value) { SetSourceTimezone(std::forward<SourceTimezoneT>(value)); return *this;}
109
111
115 inline const Aws::String& GetTargetTimezone() const { return m_targetTimezone; }
116 inline bool TargetTimezoneHasBeenSet() const { return m_targetTimezoneHasBeenSet; }
117 template<typename TargetTimezoneT = Aws::String>
118 void SetTargetTimezone(TargetTimezoneT&& value) { m_targetTimezoneHasBeenSet = true; m_targetTimezone = std::forward<TargetTimezoneT>(value); }
119 template<typename TargetTimezoneT = Aws::String>
120 DateTimeConverter& WithTargetTimezone(TargetTimezoneT&& value) { SetTargetTimezone(std::forward<TargetTimezoneT>(value)); return *this;}
122
124
128 inline const Aws::String& GetLocale() const { return m_locale; }
129 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
130 template<typename LocaleT = Aws::String>
131 void SetLocale(LocaleT&& value) { m_localeHasBeenSet = true; m_locale = std::forward<LocaleT>(value); }
132 template<typename LocaleT = Aws::String>
133 DateTimeConverter& WithLocale(LocaleT&& value) { SetLocale(std::forward<LocaleT>(value)); return *this;}
135 private:
136
137 Aws::String m_source;
138 bool m_sourceHasBeenSet = false;
139
140 Aws::String m_target;
141 bool m_targetHasBeenSet = false;
142
143 Aws::String m_targetFormat;
144 bool m_targetFormatHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_matchPatterns;
147 bool m_matchPatternsHasBeenSet = false;
148
149 Aws::String m_sourceTimezone;
150 bool m_sourceTimezoneHasBeenSet = false;
151
152 Aws::String m_targetTimezone;
153 bool m_targetTimezoneHasBeenSet = false;
154
155 Aws::String m_locale;
156 bool m_localeHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace CloudWatchLogs
161} // 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