AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TimeZone.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoPlaces {
20namespace Model {
21
27class TimeZone {
28 public:
29 AWS_GEOPLACES_API TimeZone() = default;
30 AWS_GEOPLACES_API TimeZone(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GEOPLACES_API TimeZone& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 TimeZone& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetOffset() const { return m_offset; }
57 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
58 template <typename OffsetT = Aws::String>
59 void SetOffset(OffsetT&& value) {
60 m_offsetHasBeenSet = true;
61 m_offset = std::forward<OffsetT>(value);
62 }
63 template <typename OffsetT = Aws::String>
64 TimeZone& WithOffset(OffsetT&& value) {
65 SetOffset(std::forward<OffsetT>(value));
66 return *this;
67 }
69
71
74 inline long long GetOffsetSeconds() const { return m_offsetSeconds; }
75 inline bool OffsetSecondsHasBeenSet() const { return m_offsetSecondsHasBeenSet; }
76 inline void SetOffsetSeconds(long long value) {
77 m_offsetSecondsHasBeenSet = true;
78 m_offsetSeconds = value;
79 }
80 inline TimeZone& WithOffsetSeconds(long long value) {
81 SetOffsetSeconds(value);
82 return *this;
83 }
85 private:
86 Aws::String m_name;
87
88 Aws::String m_offset;
89
90 long long m_offsetSeconds{0};
91 bool m_nameHasBeenSet = false;
92 bool m_offsetHasBeenSet = false;
93 bool m_offsetSecondsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace GeoPlaces
98} // namespace Aws
bool OffsetSecondsHasBeenSet() const
Definition TimeZone.h:75
TimeZone & WithOffsetSeconds(long long value)
Definition TimeZone.h:80
AWS_GEOPLACES_API TimeZone(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API TimeZone()=default
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOPLACES_API TimeZone & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeZone & WithOffset(OffsetT &&value)
Definition TimeZone.h:64
const Aws::String & GetOffset() const
Definition TimeZone.h:56
TimeZone & WithName(NameT &&value)
Definition TimeZone.h:46
void SetOffset(OffsetT &&value)
Definition TimeZone.h:59
void SetName(NameT &&value)
Definition TimeZone.h:41
void SetOffsetSeconds(long long value)
Definition TimeZone.h:76
long long GetOffsetSeconds() const
Definition TimeZone.h:74
const Aws::String & GetName() const
Definition TimeZone.h:38
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue