AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteTransitTravelStep.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/RouteTransitTravelStepType.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 RouteTransitTravelStep() = 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 RouteTransitTravelStep& 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 RouteTransitTravelStep& 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
88 inline const Aws::String& GetInstruction() const { return m_instruction; }
89 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
90 template <typename InstructionT = Aws::String>
91 void SetInstruction(InstructionT&& value) {
92 m_instructionHasBeenSet = true;
93 m_instruction = std::forward<InstructionT>(value);
94 }
95 template <typename InstructionT = Aws::String>
96 RouteTransitTravelStep& WithInstruction(InstructionT&& value) {
97 SetInstruction(std::forward<InstructionT>(value));
98 return *this;
99 }
101
103
106 inline RouteTransitTravelStepType GetType() const { return m_type; }
107 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
109 m_typeHasBeenSet = true;
110 m_type = value;
111 }
113 SetType(value);
114 return *this;
115 }
117 private:
118 long long m_distance{0};
119
120 long long m_duration{0};
121
122 int m_geometryOffset{0};
123
124 Aws::String m_instruction;
125
127 bool m_distanceHasBeenSet = false;
128 bool m_durationHasBeenSet = false;
129 bool m_geometryOffsetHasBeenSet = false;
130 bool m_instructionHasBeenSet = false;
131 bool m_typeHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace GeoRoutes
136} // namespace Aws
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteTransitTravelStep & WithDistance(long long value)
RouteTransitTravelStep & WithInstruction(InstructionT &&value)
RouteTransitTravelStep & WithDuration(long long value)
AWS_GEOROUTES_API RouteTransitTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTransitTravelStep()=default
RouteTransitTravelStep & WithGeometryOffset(int value)
AWS_GEOROUTES_API RouteTransitTravelStep(Aws::Utils::Json::JsonView jsonValue)
void SetType(RouteTransitTravelStepType value)
RouteTransitTravelStep & WithType(RouteTransitTravelStepType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue