AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DatetimeOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/databrew/GlueDataBrew_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GlueDataBrew {
20namespace Model {
21
30 public:
31 AWS_GLUEDATABREW_API DatetimeOptions() = default;
32 AWS_GLUEDATABREW_API DatetimeOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLUEDATABREW_API DatetimeOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetFormat() const { return m_format; }
44 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
45 template <typename FormatT = Aws::String>
46 void SetFormat(FormatT&& value) {
47 m_formatHasBeenSet = true;
48 m_format = std::forward<FormatT>(value);
49 }
50 template <typename FormatT = Aws::String>
51 DatetimeOptions& WithFormat(FormatT&& value) {
52 SetFormat(std::forward<FormatT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetTimezoneOffset() const { return m_timezoneOffset; }
64 inline bool TimezoneOffsetHasBeenSet() const { return m_timezoneOffsetHasBeenSet; }
65 template <typename TimezoneOffsetT = Aws::String>
66 void SetTimezoneOffset(TimezoneOffsetT&& value) {
67 m_timezoneOffsetHasBeenSet = true;
68 m_timezoneOffset = std::forward<TimezoneOffsetT>(value);
69 }
70 template <typename TimezoneOffsetT = Aws::String>
71 DatetimeOptions& WithTimezoneOffset(TimezoneOffsetT&& value) {
72 SetTimezoneOffset(std::forward<TimezoneOffsetT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetLocaleCode() const { return m_localeCode; }
83 inline bool LocaleCodeHasBeenSet() const { return m_localeCodeHasBeenSet; }
84 template <typename LocaleCodeT = Aws::String>
85 void SetLocaleCode(LocaleCodeT&& value) {
86 m_localeCodeHasBeenSet = true;
87 m_localeCode = std::forward<LocaleCodeT>(value);
88 }
89 template <typename LocaleCodeT = Aws::String>
90 DatetimeOptions& WithLocaleCode(LocaleCodeT&& value) {
91 SetLocaleCode(std::forward<LocaleCodeT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_format;
97
98 Aws::String m_timezoneOffset;
99
100 Aws::String m_localeCode;
101 bool m_formatHasBeenSet = false;
102 bool m_timezoneOffsetHasBeenSet = false;
103 bool m_localeCodeHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace GlueDataBrew
108} // namespace Aws
const Aws::String & GetFormat() const
AWS_GLUEDATABREW_API DatetimeOptions(Aws::Utils::Json::JsonView jsonValue)
void SetTimezoneOffset(TimezoneOffsetT &&value)
DatetimeOptions & WithTimezoneOffset(TimezoneOffsetT &&value)
DatetimeOptions & WithFormat(FormatT &&value)
DatetimeOptions & WithLocaleCode(LocaleCodeT &&value)
AWS_GLUEDATABREW_API DatetimeOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLocaleCode() const
AWS_GLUEDATABREW_API DatetimeOptions()=default
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTimezoneOffset() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue