AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteTransitIncident.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/RouteTransitIncidentEffect.h>
10#include <aws/geo-routes/model/RouteTransitIncidentType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes {
22namespace Model {
23
31 public:
32 AWS_GEOROUTES_API RouteTransitIncident() = default;
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDescription() const { return m_description; }
42 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
43 template <typename DescriptionT = Aws::String>
44 void SetDescription(DescriptionT&& value) {
45 m_descriptionHasBeenSet = true;
46 m_description = std::forward<DescriptionT>(value);
47 }
48 template <typename DescriptionT = Aws::String>
49 RouteTransitIncident& WithDescription(DescriptionT&& value) {
50 SetDescription(std::forward<DescriptionT>(value));
51 return *this;
52 }
54
56
59 inline RouteTransitIncidentEffect GetEffect() const { return m_effect; }
60 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
62 m_effectHasBeenSet = true;
63 m_effect = value;
64 }
66 SetEffect(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEndTime() const { return m_endTime; }
76 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
77 template <typename EndTimeT = Aws::String>
78 void SetEndTime(EndTimeT&& value) {
79 m_endTimeHasBeenSet = true;
80 m_endTime = std::forward<EndTimeT>(value);
81 }
82 template <typename EndTimeT = Aws::String>
83 RouteTransitIncident& WithEndTime(EndTimeT&& value) {
84 SetEndTime(std::forward<EndTimeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetStartTime() const { return m_startTime; }
94 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
95 template <typename StartTimeT = Aws::String>
96 void SetStartTime(StartTimeT&& value) {
97 m_startTimeHasBeenSet = true;
98 m_startTime = std::forward<StartTimeT>(value);
99 }
100 template <typename StartTimeT = Aws::String>
101 RouteTransitIncident& WithStartTime(StartTimeT&& value) {
102 SetStartTime(std::forward<StartTimeT>(value));
103 return *this;
104 }
106
108
111 inline RouteTransitIncidentType GetType() const { return m_type; }
112 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
114 m_typeHasBeenSet = true;
115 m_type = value;
116 }
118 SetType(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetUrl() const { return m_url; }
128 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
129 template <typename UrlT = Aws::String>
130 void SetUrl(UrlT&& value) {
131 m_urlHasBeenSet = true;
132 m_url = std::forward<UrlT>(value);
133 }
134 template <typename UrlT = Aws::String>
136 SetUrl(std::forward<UrlT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_description;
142
144
145 Aws::String m_endTime;
146
147 Aws::String m_startTime;
148
150
151 Aws::String m_url;
152 bool m_descriptionHasBeenSet = false;
153 bool m_effectHasBeenSet = false;
154 bool m_endTimeHasBeenSet = false;
155 bool m_startTimeHasBeenSet = false;
156 bool m_typeHasBeenSet = false;
157 bool m_urlHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace GeoRoutes
162} // namespace Aws
RouteTransitIncident & WithEndTime(EndTimeT &&value)
void SetType(RouteTransitIncidentType value)
RouteTransitIncident & WithDescription(DescriptionT &&value)
RouteTransitIncident & WithStartTime(StartTimeT &&value)
AWS_GEOROUTES_API RouteTransitIncident & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteTransitIncident & WithType(RouteTransitIncidentType value)
RouteTransitIncident & WithEffect(RouteTransitIncidentEffect value)
RouteTransitIncidentEffect GetEffect() const
RouteTransitIncident & WithUrl(UrlT &&value)
void SetEffect(RouteTransitIncidentEffect value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteTransitIncident(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTransitIncident()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue