AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const RouteMatrixErrorCode& GetError() const{ return m_error; }
69 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
70 inline void SetError(const RouteMatrixErrorCode& value) { m_errorHasBeenSet = true; m_error = value; }
71 inline void SetError(RouteMatrixErrorCode&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
72 inline RouteMatrixEntry& WithError(const RouteMatrixErrorCode& value) { SetError(value); return *this;}
73 inline RouteMatrixEntry& WithError(RouteMatrixErrorCode&& value) { SetError(std::move(value)); return *this;}
75 private:
76
77 long long m_distance;
78 bool m_distanceHasBeenSet = false;
79
80 long long m_duration;
81 bool m_durationHasBeenSet = false;
82
84 bool m_errorHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace GeoRoutes
89} // namespace Aws
RouteMatrixEntry & WithError(RouteMatrixErrorCode &&value)
long long GetDistance() const
RouteMatrixEntry & WithError(const RouteMatrixErrorCode &value)
RouteMatrixEntry & WithDuration(long long value)
void SetError(const RouteMatrixErrorCode &value)
void SetDuration(long long value)
void SetError(RouteMatrixErrorCode &&value)
long long GetDuration() const
AWS_GEOROUTES_API RouteMatrixEntry()
bool DurationHasBeenSet() const
bool ErrorHasBeenSet() 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)
bool DistanceHasBeenSet() const
const RouteMatrixErrorCode & GetError() const
void SetDistance(long long value)
Aws::Utils::Json::JsonValue JsonValue