AWS SDK for C++

AWS SDK for C++ Version 1.11.774

Loading...
Searching...
No Matches
RouteFerryAfterTravelStep.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/RouteFerryAfterTravelStepType.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 RouteFerryAfterTravelStep() = 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 RouteFerryAfterTravelStep& WithDuration(long long value) {
47 SetDuration(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetInstruction() const { return m_instruction; }
58 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
59 template <typename InstructionT = Aws::String>
60 void SetInstruction(InstructionT&& value) {
61 m_instructionHasBeenSet = true;
62 m_instruction = std::forward<InstructionT>(value);
63 }
64 template <typename InstructionT = Aws::String>
66 SetInstruction(std::forward<InstructionT>(value));
67 return *this;
68 }
70
72
75 inline RouteFerryAfterTravelStepType GetType() const { return m_type; }
76 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
78 m_typeHasBeenSet = true;
79 m_type = value;
80 }
82 SetType(value);
83 return *this;
84 }
86 private:
87 long long m_duration{0};
88
89 Aws::String m_instruction;
90
92 bool m_durationHasBeenSet = false;
93 bool m_instructionHasBeenSet = false;
94 bool m_typeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace GeoRoutes
99} // namespace Aws
AWS_GEOROUTES_API RouteFerryAfterTravelStep(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteFerryAfterTravelStep & WithDuration(long long value)
RouteFerryAfterTravelStep & WithType(RouteFerryAfterTravelStepType value)
RouteFerryAfterTravelStep & WithInstruction(InstructionT &&value)
void SetType(RouteFerryAfterTravelStepType value)
AWS_GEOROUTES_API RouteFerryAfterTravelStep()=default
AWS_GEOROUTES_API RouteFerryAfterTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue