AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
RouteFerryTravelStep.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RouteFerryTravelStepType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
30 public:
31 AWS_GEOROUTES_API RouteFerryTravelStep() = default;
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline long long GetDistance() const { return m_distance; }
41 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
42 inline void SetDistance(long long value) {
43 m_distanceHasBeenSet = true;
44 m_distance = value;
45 }
46 inline RouteFerryTravelStep& WithDistance(long long value) {
47 SetDistance(value);
48 return *this;
49 }
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) {
59 m_durationHasBeenSet = true;
60 m_duration = value;
61 }
62 inline RouteFerryTravelStep& WithDuration(long long value) {
63 SetDuration(value);
64 return *this;
65 }
67
69
72 inline int GetGeometryOffset() const { return m_geometryOffset; }
73 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
74 inline void SetGeometryOffset(int value) {
75 m_geometryOffsetHasBeenSet = true;
76 m_geometryOffset = value;
77 }
79 SetGeometryOffset(value);
80 return *this;
81 }
83
85
89 inline const Aws::String& GetInstruction() const { return m_instruction; }
90 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
91 template <typename InstructionT = Aws::String>
92 void SetInstruction(InstructionT&& value) {
93 m_instructionHasBeenSet = true;
94 m_instruction = std::forward<InstructionT>(value);
95 }
96 template <typename InstructionT = Aws::String>
97 RouteFerryTravelStep& WithInstruction(InstructionT&& value) {
98 SetInstruction(std::forward<InstructionT>(value));
99 return *this;
100 }
102
104
107 inline RouteFerryTravelStepType GetType() const { return m_type; }
108 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 m_typeHasBeenSet = true;
111 m_type = value;
112 }
114 SetType(value);
115 return *this;
116 }
118 private:
119 long long m_distance{0};
120
121 long long m_duration{0};
122
123 int m_geometryOffset{0};
124
125 Aws::String m_instruction;
126
128 bool m_distanceHasBeenSet = false;
129 bool m_durationHasBeenSet = false;
130 bool m_geometryOffsetHasBeenSet = false;
131 bool m_instructionHasBeenSet = false;
132 bool m_typeHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace GeoRoutes
137} // 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