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/location/LocationService_EXPORTS.h>
8#include <aws/location/model/RouteMatrixEntryError.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 LocationService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LOCATIONSERVICE_API RouteMatrixEntry();
36 AWS_LOCATIONSERVICE_API RouteMatrixEntry(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LOCATIONSERVICE_API RouteMatrixEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline double GetDistance() const{ return m_distance; }
46 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
47 inline void SetDistance(double value) { m_distanceHasBeenSet = true; m_distance = value; }
48 inline RouteMatrixEntry& WithDistance(double value) { SetDistance(value); return *this;}
50
52
55 inline double GetDurationSeconds() const{ return m_durationSeconds; }
56 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
57 inline void SetDurationSeconds(double value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
58 inline RouteMatrixEntry& WithDurationSeconds(double value) { SetDurationSeconds(value); return *this;}
60
62
66 inline const RouteMatrixEntryError& GetError() const{ return m_error; }
67 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
68 inline void SetError(const RouteMatrixEntryError& value) { m_errorHasBeenSet = true; m_error = value; }
69 inline void SetError(RouteMatrixEntryError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
70 inline RouteMatrixEntry& WithError(const RouteMatrixEntryError& value) { SetError(value); return *this;}
71 inline RouteMatrixEntry& WithError(RouteMatrixEntryError&& value) { SetError(std::move(value)); return *this;}
73 private:
74
75 double m_distance;
76 bool m_distanceHasBeenSet = false;
77
78 double m_durationSeconds;
79 bool m_durationSecondsHasBeenSet = false;
80
82 bool m_errorHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace LocationService
87} // namespace Aws
void SetError(RouteMatrixEntryError &&value)
AWS_LOCATIONSERVICE_API RouteMatrixEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixEntry & WithError(const RouteMatrixEntryError &value)
RouteMatrixEntry & WithError(RouteMatrixEntryError &&value)
bool DistanceHasBeenSet() const
AWS_LOCATIONSERVICE_API RouteMatrixEntry()
double GetDurationSeconds() const
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LOCATIONSERVICE_API RouteMatrixEntry(Aws::Utils::Json::JsonView jsonValue)
const RouteMatrixEntryError & GetError() const
double GetDistance() const
bool ErrorHasBeenSet() const
void SetError(const RouteMatrixEntryError &value)
bool DurationSecondsHasBeenSet() const
void SetDistance(double value)
RouteMatrixEntry & WithDistance(double value)
void SetDurationSeconds(double value)
RouteMatrixEntry & WithDurationSeconds(double value)
Aws::Utils::Json::JsonValue JsonValue