AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
50 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
51 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
52 inline RouteVehicleIncident& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
53 inline RouteVehicleIncident& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
54 inline RouteVehicleIncident& WithDescription(const char* value) { SetDescription(value); return *this;}
56
58
61 inline const Aws::String& GetEndTime() const{ return m_endTime; }
62 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
63 inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
64 inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
65 inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); }
66 inline RouteVehicleIncident& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;}
67 inline RouteVehicleIncident& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;}
68 inline RouteVehicleIncident& WithEndTime(const char* value) { SetEndTime(value); return *this;}
70
72
78 inline const RouteVehicleIncidentSeverity& GetSeverity() const{ return m_severity; }
79 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
80 inline void SetSeverity(const RouteVehicleIncidentSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
81 inline void SetSeverity(RouteVehicleIncidentSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
82 inline RouteVehicleIncident& WithSeverity(const RouteVehicleIncidentSeverity& value) { SetSeverity(value); return *this;}
83 inline RouteVehicleIncident& WithSeverity(RouteVehicleIncidentSeverity&& value) { SetSeverity(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetStartTime() const{ return m_startTime; }
91 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
92 inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
93 inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
94 inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
95 inline RouteVehicleIncident& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
96 inline RouteVehicleIncident& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
97 inline RouteVehicleIncident& WithStartTime(const char* value) { SetStartTime(value); return *this;}
99
101
104 inline const RouteVehicleIncidentType& GetType() const{ return m_type; }
105 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
106 inline void SetType(const RouteVehicleIncidentType& value) { m_typeHasBeenSet = true; m_type = value; }
107 inline void SetType(RouteVehicleIncidentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
108 inline RouteVehicleIncident& WithType(const RouteVehicleIncidentType& value) { SetType(value); return *this;}
109 inline RouteVehicleIncident& WithType(RouteVehicleIncidentType&& value) { SetType(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
116 Aws::String m_endTime;
117 bool m_endTimeHasBeenSet = false;
118
120 bool m_severityHasBeenSet = false;
121
122 Aws::String m_startTime;
123 bool m_startTimeHasBeenSet = false;
124
126 bool m_typeHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace GeoRoutes
131} // namespace Aws
RouteVehicleIncident & WithEndTime(const char *value)
void SetType(const RouteVehicleIncidentType &value)
RouteVehicleIncident & WithType(const RouteVehicleIncidentType &value)
RouteVehicleIncident & WithSeverity(const RouteVehicleIncidentSeverity &value)
RouteVehicleIncident & WithEndTime(const Aws::String &value)
RouteVehicleIncident & WithStartTime(const Aws::String &value)
const RouteVehicleIncidentSeverity & GetSeverity() const
void SetDescription(const Aws::String &value)
RouteVehicleIncident & WithStartTime(Aws::String &&value)
void SetSeverity(const RouteVehicleIncidentSeverity &value)
RouteVehicleIncident & WithStartTime(const char *value)
RouteVehicleIncident & WithEndTime(Aws::String &&value)
RouteVehicleIncident & WithSeverity(RouteVehicleIncidentSeverity &&value)
RouteVehicleIncident & WithType(RouteVehicleIncidentType &&value)
const RouteVehicleIncidentType & GetType() const
RouteVehicleIncident & WithDescription(Aws::String &&value)
void SetType(RouteVehicleIncidentType &&value)
AWS_GEOROUTES_API RouteVehicleIncident & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteVehicleIncident(Aws::Utils::Json::JsonView jsonValue)
RouteVehicleIncident & WithDescription(const char *value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSeverity(RouteVehicleIncidentSeverity &&value)
RouteVehicleIncident & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue