AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteVehicleNotice.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteVehicleNoticeCode.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-routes/model/RouteNoticeImpact.h>
11#include <aws/geo-routes/model/RouteVehicleNoticeDetail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoRoutes
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GEOROUTES_API RouteVehicleNotice() = default;
39 AWS_GEOROUTES_API RouteVehicleNotice(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline RouteVehicleNoticeCode GetCode() const { return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(RouteVehicleNoticeCode value) { m_codeHasBeenSet = true; m_code = value; }
51 inline RouteVehicleNotice& WithCode(RouteVehicleNoticeCode value) { SetCode(value); return *this;}
53
55
58 inline const Aws::Vector<RouteVehicleNoticeDetail>& GetDetails() const { return m_details; }
59 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
60 template<typename DetailsT = Aws::Vector<RouteVehicleNoticeDetail>>
61 void SetDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details = std::forward<DetailsT>(value); }
62 template<typename DetailsT = Aws::Vector<RouteVehicleNoticeDetail>>
63 RouteVehicleNotice& WithDetails(DetailsT&& value) { SetDetails(std::forward<DetailsT>(value)); return *this;}
64 template<typename DetailsT = RouteVehicleNoticeDetail>
65 RouteVehicleNotice& AddDetails(DetailsT&& value) { m_detailsHasBeenSet = true; m_details.emplace_back(std::forward<DetailsT>(value)); return *this; }
67
69
74 inline RouteNoticeImpact GetImpact() const { return m_impact; }
75 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
76 inline void SetImpact(RouteNoticeImpact value) { m_impactHasBeenSet = true; m_impact = value; }
77 inline RouteVehicleNotice& WithImpact(RouteNoticeImpact value) { SetImpact(value); return *this;}
79 private:
80
82 bool m_codeHasBeenSet = false;
83
85 bool m_detailsHasBeenSet = false;
86
88 bool m_impactHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace GeoRoutes
93} // namespace Aws
AWS_GEOROUTES_API RouteVehicleNotice()=default
const Aws::Vector< RouteVehicleNoticeDetail > & GetDetails() const
AWS_GEOROUTES_API RouteVehicleNotice & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteVehicleNotice & WithImpact(RouteNoticeImpact value)
RouteVehicleNotice & WithCode(RouteVehicleNoticeCode value)
RouteVehicleNoticeCode GetCode() const
AWS_GEOROUTES_API RouteVehicleNotice(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteVehicleNotice & AddDetails(DetailsT &&value)
RouteVehicleNotice & WithDetails(DetailsT &&value)
void SetCode(RouteVehicleNoticeCode value)
void SetImpact(RouteNoticeImpact value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue