AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TimeZone.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/location/LocationService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LocationService {
20namespace Model {
21
28class TimeZone {
29 public:
30 AWS_LOCATIONSERVICE_API TimeZone() = default;
31 AWS_LOCATIONSERVICE_API TimeZone(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LOCATIONSERVICE_API TimeZone& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 TimeZone& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline int GetOffset() const { return m_offset; }
60 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
61 inline void SetOffset(int value) {
62 m_offsetHasBeenSet = true;
63 m_offset = value;
64 }
65 inline TimeZone& WithOffset(int value) {
66 SetOffset(value);
67 return *this;
68 }
70 private:
71 Aws::String m_name;
72
73 int m_offset{0};
74 bool m_nameHasBeenSet = false;
75 bool m_offsetHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace LocationService
80} // namespace Aws
TimeZone & WithOffset(int value)
Definition TimeZone.h:65
const Aws::String & GetName() const
Definition TimeZone.h:41
TimeZone & WithName(NameT &&value)
Definition TimeZone.h:49
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