AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
TimeZone.h
1
6#pragma once
7#include <aws/location/LocationService_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 LocationService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LOCATIONSERVICE_API TimeZone() = default;
36 AWS_LOCATIONSERVICE_API TimeZone(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOCATIONSERVICE_API TimeZone& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 TimeZone& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline int GetOffset() const { return m_offset; }
60 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
61 inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
62 inline TimeZone& WithOffset(int value) { SetOffset(value); return *this;}
64 private:
65
66 Aws::String m_name;
67 bool m_nameHasBeenSet = false;
68
69 int m_offset{0};
70 bool m_offsetHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace LocationService
75} // namespace Aws
TimeZone & WithOffset(int value)
Definition TimeZone.h:62
const Aws::String & GetName() const
Definition TimeZone.h:47
TimeZone & WithName(NameT &&value)
Definition TimeZone.h:52
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API TimeZone & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOCATIONSERVICE_API TimeZone()=default
AWS_LOCATIONSERVICE_API TimeZone(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue