AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
RouteVehicleIncident.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/RouteVehicleIncidentSeverity.h>
10#include <aws/geo-routes/model/RouteVehicleIncidentType.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 RouteVehicleIncident() = 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 RouteVehicleIncident& WithDescription(DescriptionT&& value) {
50 SetDescription(std::forward<DescriptionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEndTime() const { return m_endTime; }
60 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
61 template <typename EndTimeT = Aws::String>
62 void SetEndTime(EndTimeT&& value) {
63 m_endTimeHasBeenSet = true;
64 m_endTime = std::forward<EndTimeT>(value);
65 }
66 template <typename EndTimeT = Aws::String>
67 RouteVehicleIncident& WithEndTime(EndTimeT&& value) {
68 SetEndTime(std::forward<EndTimeT>(value));
69 return *this;
70 }
72
74
80 inline RouteVehicleIncidentSeverity GetSeverity() const { return m_severity; }
81 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
83 m_severityHasBeenSet = true;
84 m_severity = value;
85 }
87 SetSeverity(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetStartTime() const { return m_startTime; }
97 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
98 template <typename StartTimeT = Aws::String>
99 void SetStartTime(StartTimeT&& value) {
100 m_startTimeHasBeenSet = true;
101 m_startTime = std::forward<StartTimeT>(value);
102 }
103 template <typename StartTimeT = Aws::String>
104 RouteVehicleIncident& WithStartTime(StartTimeT&& value) {
105 SetStartTime(std::forward<StartTimeT>(value));
106 return *this;
107 }
109
111
114 inline RouteVehicleIncidentType GetType() const { return m_type; }
115 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 m_typeHasBeenSet = true;
118 m_type = value;
119 }
121 SetType(value);
122 return *this;
123 }
125 private:
126 Aws::String m_description;
127
128 Aws::String m_endTime;
129
131
132 Aws::String m_startTime;
133
135 bool m_descriptionHasBeenSet = false;
136 bool m_endTimeHasBeenSet = false;
137 bool m_severityHasBeenSet = false;
138 bool m_startTimeHasBeenSet = false;
139 bool m_typeHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace GeoRoutes
144} // namespace Aws
RouteVehicleIncident & WithEndTime(EndTimeT &&value)
RouteVehicleIncident & WithSeverity(RouteVehicleIncidentSeverity value)
RouteVehicleIncident & WithStartTime(StartTimeT &&value)
AWS_GEOROUTES_API RouteVehicleIncident()=default
RouteVehicleIncident & WithType(RouteVehicleIncidentType value)
void SetType(RouteVehicleIncidentType value)
AWS_GEOROUTES_API RouteVehicleIncident & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteVehicleIncident(Aws::Utils::Json::JsonView jsonValue)
RouteVehicleIncidentSeverity GetSeverity() const
void SetSeverity(RouteVehicleIncidentSeverity value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteVehicleIncident & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue