AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WaypointOptimizationRestCycles.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/WaypointOptimizationRestCycleDurations.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
32 {
33 public:
34 AWS_GEOROUTES_API WaypointOptimizationRestCycles() = default;
37 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const WaypointOptimizationRestCycleDurations& GetLongCycle() const { return m_longCycle; }
45 inline bool LongCycleHasBeenSet() const { return m_longCycleHasBeenSet; }
46 template<typename LongCycleT = WaypointOptimizationRestCycleDurations>
47 void SetLongCycle(LongCycleT&& value) { m_longCycleHasBeenSet = true; m_longCycle = std::forward<LongCycleT>(value); }
48 template<typename LongCycleT = WaypointOptimizationRestCycleDurations>
49 WaypointOptimizationRestCycles& WithLongCycle(LongCycleT&& value) { SetLongCycle(std::forward<LongCycleT>(value)); return *this;}
51
53
56 inline const WaypointOptimizationRestCycleDurations& GetShortCycle() const { return m_shortCycle; }
57 inline bool ShortCycleHasBeenSet() const { return m_shortCycleHasBeenSet; }
58 template<typename ShortCycleT = WaypointOptimizationRestCycleDurations>
59 void SetShortCycle(ShortCycleT&& value) { m_shortCycleHasBeenSet = true; m_shortCycle = std::forward<ShortCycleT>(value); }
60 template<typename ShortCycleT = WaypointOptimizationRestCycleDurations>
61 WaypointOptimizationRestCycles& WithShortCycle(ShortCycleT&& value) { SetShortCycle(std::forward<ShortCycleT>(value)); return *this;}
63 private:
64
66 bool m_longCycleHasBeenSet = false;
67
69 bool m_shortCycleHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace GeoRoutes
74} // namespace Aws
AWS_GEOROUTES_API WaypointOptimizationRestCycles(Aws::Utils::Json::JsonView jsonValue)
const WaypointOptimizationRestCycleDurations & GetLongCycle() const
const WaypointOptimizationRestCycleDurations & GetShortCycle() const
WaypointOptimizationRestCycles & WithLongCycle(LongCycleT &&value)
AWS_GEOROUTES_API WaypointOptimizationRestCycles()=default
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API WaypointOptimizationRestCycles & operator=(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationRestCycles & WithShortCycle(ShortCycleT &&value)
Aws::Utils::Json::JsonValue JsonValue