AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteTaxiAfterTravelStep.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/RouteTaxiAfterTravelStepType.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 RouteTaxiAfterTravelStep() = default;
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline long long GetDuration() const { return m_duration; }
41 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
42 inline void SetDuration(long long value) {
43 m_durationHasBeenSet = true;
44 m_duration = value;
45 }
46 inline RouteTaxiAfterTravelStep& WithDuration(long long value) {
47 SetDuration(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetInstruction() const { return m_instruction; }
57 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
58 template <typename InstructionT = Aws::String>
59 void SetInstruction(InstructionT&& value) {
60 m_instructionHasBeenSet = true;
61 m_instruction = std::forward<InstructionT>(value);
62 }
63 template <typename InstructionT = Aws::String>
65 SetInstruction(std::forward<InstructionT>(value));
66 return *this;
67 }
69
71
74 inline RouteTaxiAfterTravelStepType GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
77 m_typeHasBeenSet = true;
78 m_type = value;
79 }
81 SetType(value);
82 return *this;
83 }
85 private:
86 long long m_duration{0};
87
88 Aws::String m_instruction;
89
91 bool m_durationHasBeenSet = false;
92 bool m_instructionHasBeenSet = false;
93 bool m_typeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace GeoRoutes
98} // namespace Aws
RouteTaxiAfterTravelStep & WithInstruction(InstructionT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteTaxiAfterTravelStep & WithType(RouteTaxiAfterTravelStepType value)
void SetType(RouteTaxiAfterTravelStepType value)
AWS_GEOROUTES_API RouteTaxiAfterTravelStep()=default
RouteTaxiAfterTravelStep & WithDuration(long long value)
AWS_GEOROUTES_API RouteTaxiAfterTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTaxiAfterTravelStep(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue