AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline TimeZone& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline TimeZone& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline TimeZone& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetOffset() const{ return m_offset; }
59 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
60 inline void SetOffset(const Aws::String& value) { m_offsetHasBeenSet = true; m_offset = value; }
61 inline void SetOffset(Aws::String&& value) { m_offsetHasBeenSet = true; m_offset = std::move(value); }
62 inline void SetOffset(const char* value) { m_offsetHasBeenSet = true; m_offset.assign(value); }
63 inline TimeZone& WithOffset(const Aws::String& value) { SetOffset(value); return *this;}
64 inline TimeZone& WithOffset(Aws::String&& value) { SetOffset(std::move(value)); return *this;}
65 inline TimeZone& WithOffset(const char* value) { SetOffset(value); return *this;}
67
69
72 inline long long GetOffsetSeconds() const{ return m_offsetSeconds; }
73 inline bool OffsetSecondsHasBeenSet() const { return m_offsetSecondsHasBeenSet; }
74 inline void SetOffsetSeconds(long long value) { m_offsetSecondsHasBeenSet = true; m_offsetSeconds = value; }
75 inline TimeZone& WithOffsetSeconds(long long value) { SetOffsetSeconds(value); return *this;}
77 private:
78
79 Aws::String m_name;
80 bool m_nameHasBeenSet = false;
81
82 Aws::String m_offset;
83 bool m_offsetHasBeenSet = false;
84
85 long long m_offsetSeconds;
86 bool m_offsetSecondsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace GeoPlaces
91} // namespace Aws
bool OffsetSecondsHasBeenSet() const
Definition TimeZone.h:73
void SetOffset(Aws::String &&value)
Definition TimeZone.h:61
AWS_GEOPLACES_API TimeZone()
TimeZone & WithName(const char *value)
Definition TimeZone.h:51
TimeZone & WithOffsetSeconds(long long value)
Definition TimeZone.h:75
void SetOffset(const char *value)
Definition TimeZone.h:62
TimeZone & WithName(const Aws::String &value)
Definition TimeZone.h:49
TimeZone & WithOffset(const char *value)
Definition TimeZone.h:65
TimeZone & WithName(Aws::String &&value)
Definition TimeZone.h:50
void SetName(const char *value)
Definition TimeZone.h:48
void SetName(const Aws::String &value)
Definition TimeZone.h:46
AWS_GEOPLACES_API TimeZone(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition TimeZone.h:47
AWS_GEOPLACES_API TimeZone & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOffset() const
Definition TimeZone.h:58
TimeZone & WithOffset(const Aws::String &value)
Definition TimeZone.h:63
TimeZone & WithOffset(Aws::String &&value)
Definition TimeZone.h:64
void SetOffsetSeconds(long long value)
Definition TimeZone.h:74
long long GetOffsetSeconds() const
Definition TimeZone.h:72
const Aws::String & GetName() const
Definition TimeZone.h:44
void SetOffset(const Aws::String &value)
Definition TimeZone.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue