AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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