AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteSummary.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteTollSummary.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
34 {
35 public:
36 AWS_GEOROUTES_API RouteSummary();
37 AWS_GEOROUTES_API RouteSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOROUTES_API RouteSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline long long GetDistance() const{ return m_distance; }
47 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
48 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
49 inline RouteSummary& WithDistance(long long value) { SetDistance(value); return *this;}
51
53
56 inline long long GetDuration() const{ return m_duration; }
57 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
58 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
59 inline RouteSummary& WithDuration(long long value) { SetDuration(value); return *this;}
61
63
66 inline const RouteTollSummary& GetTolls() const{ return m_tolls; }
67 inline bool TollsHasBeenSet() const { return m_tollsHasBeenSet; }
68 inline void SetTolls(const RouteTollSummary& value) { m_tollsHasBeenSet = true; m_tolls = value; }
69 inline void SetTolls(RouteTollSummary&& value) { m_tollsHasBeenSet = true; m_tolls = std::move(value); }
70 inline RouteSummary& WithTolls(const RouteTollSummary& value) { SetTolls(value); return *this;}
71 inline RouteSummary& WithTolls(RouteTollSummary&& value) { SetTolls(std::move(value)); return *this;}
73 private:
74
75 long long m_distance;
76 bool m_distanceHasBeenSet = false;
77
78 long long m_duration;
79 bool m_durationHasBeenSet = false;
80
81 RouteTollSummary m_tolls;
82 bool m_tollsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace GeoRoutes
87} // namespace Aws
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteSummary & WithTolls(RouteTollSummary &&value)
const RouteTollSummary & GetTolls() const
AWS_GEOROUTES_API RouteSummary(Aws::Utils::Json::JsonView jsonValue)
RouteSummary & WithTolls(const RouteTollSummary &value)
void SetDistance(long long value)
void SetDuration(long long value)
RouteSummary & WithDuration(long long value)
RouteSummary & WithDistance(long long value)
AWS_GEOROUTES_API RouteSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTolls(RouteTollSummary &&value)
void SetTolls(const RouteTollSummary &value)
Aws::Utils::Json::JsonValue JsonValue