AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const RouteVehicleNoticeCode& GetCode() const{ return m_code; }
49 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 inline void SetCode(const RouteVehicleNoticeCode& value) { m_codeHasBeenSet = true; m_code = value; }
51 inline void SetCode(RouteVehicleNoticeCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
52 inline RouteVehicleNotice& WithCode(const RouteVehicleNoticeCode& value) { SetCode(value); return *this;}
53 inline RouteVehicleNotice& WithCode(RouteVehicleNoticeCode&& value) { SetCode(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<RouteVehicleNoticeDetail>& GetDetails() const{ return m_details; }
61 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
62 inline void SetDetails(const Aws::Vector<RouteVehicleNoticeDetail>& value) { m_detailsHasBeenSet = true; m_details = value; }
63 inline void SetDetails(Aws::Vector<RouteVehicleNoticeDetail>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
65 inline RouteVehicleNotice& WithDetails(Aws::Vector<RouteVehicleNoticeDetail>&& value) { SetDetails(std::move(value)); return *this;}
66 inline RouteVehicleNotice& AddDetails(const RouteVehicleNoticeDetail& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
67 inline RouteVehicleNotice& AddDetails(RouteVehicleNoticeDetail&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
69
71
76 inline const RouteNoticeImpact& GetImpact() const{ return m_impact; }
77 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
78 inline void SetImpact(const RouteNoticeImpact& value) { m_impactHasBeenSet = true; m_impact = value; }
79 inline void SetImpact(RouteNoticeImpact&& value) { m_impactHasBeenSet = true; m_impact = std::move(value); }
80 inline RouteVehicleNotice& WithImpact(const RouteNoticeImpact& value) { SetImpact(value); return *this;}
81 inline RouteVehicleNotice& WithImpact(RouteNoticeImpact&& value) { SetImpact(std::move(value)); return *this;}
83 private:
84
86 bool m_codeHasBeenSet = false;
87
89 bool m_detailsHasBeenSet = false;
90
91 RouteNoticeImpact m_impact;
92 bool m_impactHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace GeoRoutes
97} // namespace Aws
void SetDetails(const Aws::Vector< RouteVehicleNoticeDetail > &value)
const Aws::Vector< RouteVehicleNoticeDetail > & GetDetails() const
void SetImpact(const RouteNoticeImpact &value)
AWS_GEOROUTES_API RouteVehicleNotice & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteVehicleNotice & AddDetails(RouteVehicleNoticeDetail &&value)
RouteVehicleNotice & AddDetails(const RouteVehicleNoticeDetail &value)
RouteVehicleNotice & WithDetails(const Aws::Vector< RouteVehicleNoticeDetail > &value)
const RouteNoticeImpact & GetImpact() const
RouteVehicleNotice & WithImpact(const RouteNoticeImpact &value)
AWS_GEOROUTES_API RouteVehicleNotice(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(const RouteVehicleNoticeCode &value)
RouteVehicleNotice & WithImpact(RouteNoticeImpact &&value)
void SetDetails(Aws::Vector< RouteVehicleNoticeDetail > &&value)
void SetCode(RouteVehicleNoticeCode &&value)
RouteVehicleNotice & WithDetails(Aws::Vector< RouteVehicleNoticeDetail > &&value)
void SetImpact(RouteNoticeImpact &&value)
const RouteVehicleNoticeCode & GetCode() const
RouteVehicleNotice & WithCode(RouteVehicleNoticeCode &&value)
RouteVehicleNotice & WithCode(const RouteVehicleNoticeCode &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue