AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WaypointOptimizationConnection.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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
33 {
34 public:
35 AWS_GEOROUTES_API WaypointOptimizationConnection();
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline long long GetDistance() const{ return m_distance; }
46 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
47 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
48 inline WaypointOptimizationConnection& WithDistance(long long value) { SetDistance(value); return *this;}
50
52
55 inline const Aws::String& GetFrom() const{ return m_from; }
56 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
57 inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; }
58 inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
59 inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); }
60 inline WaypointOptimizationConnection& WithFrom(const Aws::String& value) { SetFrom(value); return *this;}
61 inline WaypointOptimizationConnection& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;}
62 inline WaypointOptimizationConnection& WithFrom(const char* value) { SetFrom(value); return *this;}
64
66
69 inline long long GetRestDuration() const{ return m_restDuration; }
70 inline bool RestDurationHasBeenSet() const { return m_restDurationHasBeenSet; }
71 inline void SetRestDuration(long long value) { m_restDurationHasBeenSet = true; m_restDuration = value; }
72 inline WaypointOptimizationConnection& WithRestDuration(long long value) { SetRestDuration(value); return *this;}
74
76
79 inline const Aws::String& GetTo() const{ return m_to; }
80 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
81 inline void SetTo(const Aws::String& value) { m_toHasBeenSet = true; m_to = value; }
82 inline void SetTo(Aws::String&& value) { m_toHasBeenSet = true; m_to = std::move(value); }
83 inline void SetTo(const char* value) { m_toHasBeenSet = true; m_to.assign(value); }
84 inline WaypointOptimizationConnection& WithTo(const Aws::String& value) { SetTo(value); return *this;}
85 inline WaypointOptimizationConnection& WithTo(Aws::String&& value) { SetTo(std::move(value)); return *this;}
86 inline WaypointOptimizationConnection& WithTo(const char* value) { SetTo(value); return *this;}
88
90
93 inline long long GetTravelDuration() const{ return m_travelDuration; }
94 inline bool TravelDurationHasBeenSet() const { return m_travelDurationHasBeenSet; }
95 inline void SetTravelDuration(long long value) { m_travelDurationHasBeenSet = true; m_travelDuration = value; }
96 inline WaypointOptimizationConnection& WithTravelDuration(long long value) { SetTravelDuration(value); return *this;}
98
100
103 inline long long GetWaitDuration() const{ return m_waitDuration; }
104 inline bool WaitDurationHasBeenSet() const { return m_waitDurationHasBeenSet; }
105 inline void SetWaitDuration(long long value) { m_waitDurationHasBeenSet = true; m_waitDuration = value; }
106 inline WaypointOptimizationConnection& WithWaitDuration(long long value) { SetWaitDuration(value); return *this;}
108 private:
109
110 long long m_distance;
111 bool m_distanceHasBeenSet = false;
112
113 Aws::String m_from;
114 bool m_fromHasBeenSet = false;
115
116 long long m_restDuration;
117 bool m_restDurationHasBeenSet = false;
118
119 Aws::String m_to;
120 bool m_toHasBeenSet = false;
121
122 long long m_travelDuration;
123 bool m_travelDurationHasBeenSet = false;
124
125 long long m_waitDuration;
126 bool m_waitDurationHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace GeoRoutes
131} // namespace Aws
WaypointOptimizationConnection & WithTravelDuration(long long value)
WaypointOptimizationConnection & WithTo(Aws::String &&value)
WaypointOptimizationConnection & WithTo(const char *value)
WaypointOptimizationConnection & WithWaitDuration(long long value)
WaypointOptimizationConnection & WithFrom(Aws::String &&value)
WaypointOptimizationConnection & WithFrom(const Aws::String &value)
WaypointOptimizationConnection & WithTo(const Aws::String &value)
WaypointOptimizationConnection & WithRestDuration(long long value)
WaypointOptimizationConnection & WithDistance(long long value)
WaypointOptimizationConnection & WithFrom(const char *value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API WaypointOptimizationConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API WaypointOptimizationConnection(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue