AWS SDK for C++

AWS SDK for C++ Version 1.11.761

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoRoutes {
20namespace Model {
21
31 public:
32 AWS_GEOROUTES_API RouteMatrixEntry() = default;
33 AWS_GEOROUTES_API RouteMatrixEntry(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline long long GetDistance() const { return m_distance; }
42 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
43 inline void SetDistance(long long value) {
44 m_distanceHasBeenSet = true;
45 m_distance = value;
46 }
47 inline RouteMatrixEntry& WithDistance(long long value) {
48 SetDistance(value);
49 return *this;
50 }
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) {
61 m_durationHasBeenSet = true;
62 m_duration = value;
63 }
64 inline RouteMatrixEntry& WithDuration(long long value) {
65 SetDuration(value);
66 return *this;
67 }
69
71
74 inline RouteMatrixErrorCode GetError() const { return m_error; }
75 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
76 inline void SetError(RouteMatrixErrorCode value) {
77 m_errorHasBeenSet = true;
78 m_error = value;
79 }
81 SetError(value);
82 return *this;
83 }
85 private:
86 long long m_distance{0};
87
88 long long m_duration{0};
89
91 bool m_distanceHasBeenSet = false;
92 bool m_durationHasBeenSet = false;
93 bool m_errorHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace GeoRoutes
98} // 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