AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteMatrixEntry.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteMatrixErrorCode.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_GEOROUTES_API RouteMatrixEntry() = default;
38 AWS_GEOROUTES_API RouteMatrixEntry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline long long GetDistance() const { return m_distance; }
48 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
49 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
50 inline RouteMatrixEntry& WithDistance(long long value) { SetDistance(value); return *this;}
52
54
58 inline long long GetDuration() const { return m_duration; }
59 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
60 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
61 inline RouteMatrixEntry& WithDuration(long long value) { SetDuration(value); return *this;}
63
65
68 inline RouteMatrixErrorCode GetError() const { return m_error; }
69 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
70 inline void SetError(RouteMatrixErrorCode value) { m_errorHasBeenSet = true; m_error = value; }
71 inline RouteMatrixEntry& WithError(RouteMatrixErrorCode value) { SetError(value); return *this;}
73 private:
74
75 long long m_distance{0};
76 bool m_distanceHasBeenSet = false;
77
78 long long m_duration{0};
79 bool m_durationHasBeenSet = false;
80
82 bool m_errorHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace GeoRoutes
87} // namespace Aws
long long GetDistance() const
RouteMatrixEntry & WithDuration(long long value)
void SetDuration(long long value)
RouteMatrixEntry & WithError(RouteMatrixErrorCode value)
long long GetDuration() const
AWS_GEOROUTES_API RouteMatrixEntry()=default
bool DurationHasBeenSet() const
bool ErrorHasBeenSet() const
RouteMatrixErrorCode GetError() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteMatrixEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteMatrixEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixEntry & WithDistance(long long value)
void SetError(RouteMatrixErrorCode value)
bool DistanceHasBeenSet() const
void SetDistance(long long value)
Aws::Utils::Json::JsonValue JsonValue