AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteZone.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteZoneCategory.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GEOROUTES_API RouteZone();
36 AWS_GEOROUTES_API RouteZone(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOROUTES_API RouteZone& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const RouteZoneCategory& GetCategory() const{ return m_category; }
46 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
47 inline void SetCategory(const RouteZoneCategory& value) { m_categoryHasBeenSet = true; m_category = value; }
48 inline void SetCategory(RouteZoneCategory&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
49 inline RouteZone& WithCategory(const RouteZoneCategory& value) { SetCategory(value); return *this;}
50 inline RouteZone& WithCategory(RouteZoneCategory&& value) { SetCategory(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline RouteZone& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline RouteZone& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline RouteZone& WithName(const char* value) { SetName(value); return *this;}
66 private:
67
68 RouteZoneCategory m_category;
69 bool m_categoryHasBeenSet = false;
70
71 Aws::String m_name;
72 bool m_nameHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GeoRoutes
77} // namespace Aws
RouteZone & WithName(const char *value)
Definition RouteZone.h:64
void SetName(const char *value)
Definition RouteZone.h:61
RouteZone & WithName(Aws::String &&value)
Definition RouteZone.h:63
void SetCategory(RouteZoneCategory &&value)
Definition RouteZone.h:48
AWS_GEOROUTES_API RouteZone()
AWS_GEOROUTES_API RouteZone(Aws::Utils::Json::JsonView jsonValue)
void SetCategory(const RouteZoneCategory &value)
Definition RouteZone.h:47
RouteZone & WithCategory(RouteZoneCategory &&value)
Definition RouteZone.h:50
const Aws::String & GetName() const
Definition RouteZone.h:57
RouteZone & WithName(const Aws::String &value)
Definition RouteZone.h:62
const RouteZoneCategory & GetCategory() const
Definition RouteZone.h:45
AWS_GEOROUTES_API RouteZone & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition RouteZone.h:60
void SetName(const Aws::String &value)
Definition RouteZone.h:59
RouteZone & WithCategory(const RouteZoneCategory &value)
Definition RouteZone.h:49
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue