AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TimeZone.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoPlaces
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GEOPLACES_API TimeZone() = default;
35 AWS_GEOPLACES_API TimeZone(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GEOPLACES_API TimeZone& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 TimeZone& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_offsetHasBeenSet = true; m_offset = std::forward<OffsetT>(value); }
60 template<typename OffsetT = Aws::String>
61 TimeZone& WithOffset(OffsetT&& value) { SetOffset(std::forward<OffsetT>(value)); return *this;}
63
65
68 inline long long GetOffsetSeconds() const { return m_offsetSeconds; }
69 inline bool OffsetSecondsHasBeenSet() const { return m_offsetSecondsHasBeenSet; }
70 inline void SetOffsetSeconds(long long value) { m_offsetSecondsHasBeenSet = true; m_offsetSeconds = value; }
71 inline TimeZone& WithOffsetSeconds(long long value) { SetOffsetSeconds(value); return *this;}
73 private:
74
75 Aws::String m_name;
76 bool m_nameHasBeenSet = false;
77
78 Aws::String m_offset;
79 bool m_offsetHasBeenSet = false;
80
81 long long m_offsetSeconds{0};
82 bool m_offsetSecondsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace GeoPlaces
87} // namespace Aws
bool OffsetSecondsHasBeenSet() const
Definition TimeZone.h:69
TimeZone & WithOffsetSeconds(long long value)
Definition TimeZone.h:71
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:61
const Aws::String & GetOffset() const
Definition TimeZone.h:56
TimeZone & WithName(NameT &&value)
Definition TimeZone.h:49
void SetOffset(OffsetT &&value)
Definition TimeZone.h:59
void SetName(NameT &&value)
Definition TimeZone.h:47
void SetOffsetSeconds(long long value)
Definition TimeZone.h:70
long long GetOffsetSeconds() const
Definition TimeZone.h:68
const Aws::String & GetName() const
Definition TimeZone.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue