AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteVehicleAfterTravelStep.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/RouteChargeStepDetails.h>
10#include <aws/geo-routes/model/RouteVehicleAfterTravelStepType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes {
22namespace Model {
23
31 public:
32 AWS_GEOROUTES_API RouteVehicleAfterTravelStep() = default;
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const RouteChargeStepDetails& GetChargeStepDetails() const { return m_chargeStepDetails; }
43 inline bool ChargeStepDetailsHasBeenSet() const { return m_chargeStepDetailsHasBeenSet; }
44 template <typename ChargeStepDetailsT = RouteChargeStepDetails>
45 void SetChargeStepDetails(ChargeStepDetailsT&& value) {
46 m_chargeStepDetailsHasBeenSet = true;
47 m_chargeStepDetails = std::forward<ChargeStepDetailsT>(value);
48 }
49 template <typename ChargeStepDetailsT = RouteChargeStepDetails>
51 SetChargeStepDetails(std::forward<ChargeStepDetailsT>(value));
52 return *this;
53 }
55
57
60 inline long long GetDuration() const { return m_duration; }
61 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
62 inline void SetDuration(long long value) {
63 m_durationHasBeenSet = true;
64 m_duration = value;
65 }
66 inline RouteVehicleAfterTravelStep& WithDuration(long long value) {
67 SetDuration(value);
68 return *this;
69 }
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) {
81 m_instructionHasBeenSet = true;
82 m_instruction = std::forward<InstructionT>(value);
83 }
84 template <typename InstructionT = Aws::String>
86 SetInstruction(std::forward<InstructionT>(value));
87 return *this;
88 }
90
92
95 inline RouteVehicleAfterTravelStepType GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 m_typeHasBeenSet = true;
99 m_type = value;
100 }
102 SetType(value);
103 return *this;
104 }
106 private:
107 RouteChargeStepDetails m_chargeStepDetails;
108
109 long long m_duration{0};
110
111 Aws::String m_instruction;
112
114 bool m_chargeStepDetailsHasBeenSet = false;
115 bool m_durationHasBeenSet = false;
116 bool m_instructionHasBeenSet = false;
117 bool m_typeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace GeoRoutes
122} // namespace Aws
RouteVehicleAfterTravelStep & WithType(RouteVehicleAfterTravelStepType value)
AWS_GEOROUTES_API RouteVehicleAfterTravelStep(Aws::Utils::Json::JsonView jsonValue)
RouteVehicleAfterTravelStep & WithDuration(long long value)
RouteVehicleAfterTravelStep & WithChargeStepDetails(ChargeStepDetailsT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteVehicleAfterTravelStep & WithInstruction(InstructionT &&value)
void SetType(RouteVehicleAfterTravelStepType value)
const RouteChargeStepDetails & GetChargeStepDetails() const
AWS_GEOROUTES_API RouteVehicleAfterTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteVehicleAfterTravelStep()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue