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/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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline TimeZone& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline TimeZone& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline TimeZone& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline int GetOffset() const{ return m_offset; }
62 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
63 inline void SetOffset(int value) { m_offsetHasBeenSet = true; m_offset = value; }
64 inline TimeZone& WithOffset(int value) { SetOffset(value); return *this;}
66 private:
67
68 Aws::String m_name;
69 bool m_nameHasBeenSet = false;
70
71 int m_offset;
72 bool m_offsetHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace LocationService
77} // namespace Aws
void SetName(const Aws::String &value)
Definition TimeZone.h:49
TimeZone & WithOffset(int value)
Definition TimeZone.h:64
const Aws::String & GetName() const
Definition TimeZone.h:47
void SetName(const char *value)
Definition TimeZone.h:51
AWS_LOCATIONSERVICE_API TimeZone()
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
TimeZone & WithName(Aws::String &&value)
Definition TimeZone.h:53
TimeZone & WithName(const Aws::String &value)
Definition TimeZone.h:52
AWS_LOCATIONSERVICE_API TimeZone & operator=(Aws::Utils::Json::JsonView jsonValue)
TimeZone & WithName(const char *value)
Definition TimeZone.h:54
AWS_LOCATIONSERVICE_API TimeZone(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition TimeZone.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue