AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteFerryTravelStep.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-routes/model/RouteFerryTravelStepType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GEOROUTES_API RouteFerryTravelStep() = default;
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 RouteFerryTravelStep& 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 RouteFerryTravelStep& WithDuration(long long value) { SetDuration(value); return *this;}
61
63
66 inline int GetGeometryOffset() const { return m_geometryOffset; }
67 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
68 inline void SetGeometryOffset(int value) { m_geometryOffsetHasBeenSet = true; m_geometryOffset = value; }
69 inline RouteFerryTravelStep& WithGeometryOffset(int value) { SetGeometryOffset(value); return *this;}
71
73
77 inline const Aws::String& GetInstruction() const { return m_instruction; }
78 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
79 template<typename InstructionT = Aws::String>
80 void SetInstruction(InstructionT&& value) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
81 template<typename InstructionT = Aws::String>
82 RouteFerryTravelStep& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
84
86
89 inline RouteFerryTravelStepType GetType() const { return m_type; }
90 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
91 inline void SetType(RouteFerryTravelStepType value) { m_typeHasBeenSet = true; m_type = value; }
92 inline RouteFerryTravelStep& WithType(RouteFerryTravelStepType value) { SetType(value); return *this;}
94 private:
95
96 long long m_distance{0};
97 bool m_distanceHasBeenSet = false;
98
99 long long m_duration{0};
100 bool m_durationHasBeenSet = false;
101
102 int m_geometryOffset{0};
103 bool m_geometryOffsetHasBeenSet = false;
104
105 Aws::String m_instruction;
106 bool m_instructionHasBeenSet = false;
107
109 bool m_typeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace GeoRoutes
114} // namespace Aws
RouteFerryTravelStep & WithDistance(long long value)
AWS_GEOROUTES_API RouteFerryTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteFerryTravelStep(Aws::Utils::Json::JsonView jsonValue)
RouteFerryTravelStep & WithInstruction(InstructionT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteFerryTravelStep()=default
RouteFerryTravelStep & WithDuration(long long value)
void SetType(RouteFerryTravelStepType value)
RouteFerryTravelStep & WithType(RouteFerryTravelStepType value)
RouteFerryTravelStep & WithGeometryOffset(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue