AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteVehicleIncident.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-routes/model/RouteVehicleIncidentSeverity.h>
10#include <aws/geo-routes/model/RouteVehicleIncidentType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoRoutes
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GEOROUTES_API RouteVehicleIncident() = default;
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDescription() const { return m_description; }
48 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
49 template<typename DescriptionT = Aws::String>
50 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
51 template<typename DescriptionT = Aws::String>
52 RouteVehicleIncident& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
63 template<typename EndTimeT = Aws::String>
64 RouteVehicleIncident& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
66
68
74 inline RouteVehicleIncidentSeverity GetSeverity() const { return m_severity; }
75 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
76 inline void SetSeverity(RouteVehicleIncidentSeverity value) { m_severityHasBeenSet = true; m_severity = value; }
79
81
84 inline const Aws::String& GetStartTime() const { return m_startTime; }
85 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
86 template<typename StartTimeT = Aws::String>
87 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
88 template<typename StartTimeT = Aws::String>
89 RouteVehicleIncident& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
91
93
96 inline RouteVehicleIncidentType GetType() const { return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(RouteVehicleIncidentType value) { m_typeHasBeenSet = true; m_type = value; }
99 inline RouteVehicleIncident& WithType(RouteVehicleIncidentType value) { SetType(value); return *this;}
101 private:
102
103 Aws::String m_description;
104 bool m_descriptionHasBeenSet = false;
105
106 Aws::String m_endTime;
107 bool m_endTimeHasBeenSet = false;
108
110 bool m_severityHasBeenSet = false;
111
112 Aws::String m_startTime;
113 bool m_startTimeHasBeenSet = false;
114
116 bool m_typeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace GeoRoutes
121} // 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