AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
RouteFerryOverviewSummary.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace GeoRoutes {
17namespace Model {
18
25 public:
26 AWS_GEOROUTES_API RouteFerryOverviewSummary() = default;
29 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
30
32
35 inline long long GetDistance() const { return m_distance; }
36 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
37 inline void SetDistance(long long value) {
38 m_distanceHasBeenSet = true;
39 m_distance = value;
40 }
41 inline RouteFerryOverviewSummary& WithDistance(long long value) {
42 SetDistance(value);
43 return *this;
44 }
46
48
51 inline long long GetDuration() const { return m_duration; }
52 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
53 inline void SetDuration(long long value) {
54 m_durationHasBeenSet = true;
55 m_duration = value;
56 }
57 inline RouteFerryOverviewSummary& WithDuration(long long value) {
58 SetDuration(value);
59 return *this;
60 }
62 private:
63 long long m_distance{0};
64
65 long long m_duration{0};
66 bool m_distanceHasBeenSet = false;
67 bool m_durationHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace GeoRoutes
72} // namespace Aws
RouteFerryOverviewSummary & WithDistance(long long value)
AWS_GEOROUTES_API RouteFerryOverviewSummary()=default
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteFerryOverviewSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteFerryOverviewSummary(Aws::Utils::Json::JsonView jsonValue)
RouteFerryOverviewSummary & WithDuration(long long value)
Aws::Utils::Json::JsonValue JsonValue