AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteFerryBeforeTravelStep.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-routes/model/RouteFerryBeforeTravelStepType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GEOROUTES_API RouteFerryBeforeTravelStep() = default;
39 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline long long GetDuration() const { return m_duration; }
47 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
48 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
49 inline RouteFerryBeforeTravelStep& WithDuration(long long value) { SetDuration(value); return *this;}
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) { m_instructionHasBeenSet = true; m_instruction = std::forward<InstructionT>(value); }
61 template<typename InstructionT = Aws::String>
62 RouteFerryBeforeTravelStep& WithInstruction(InstructionT&& value) { SetInstruction(std::forward<InstructionT>(value)); return *this;}
64
66
69 inline RouteFerryBeforeTravelStepType GetType() const { return m_type; }
70 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
71 inline void SetType(RouteFerryBeforeTravelStepType value) { m_typeHasBeenSet = true; m_type = value; }
74 private:
75
76 long long m_duration{0};
77 bool m_durationHasBeenSet = false;
78
79 Aws::String m_instruction;
80 bool m_instructionHasBeenSet = false;
81
83 bool m_typeHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace GeoRoutes
88} // namespace Aws
AWS_GEOROUTES_API RouteFerryBeforeTravelStep()=default
RouteFerryBeforeTravelStep & WithType(RouteFerryBeforeTravelStepType value)
RouteFerryBeforeTravelStep & WithInstruction(InstructionT &&value)
void SetType(RouteFerryBeforeTravelStepType value)
AWS_GEOROUTES_API RouteFerryBeforeTravelStep(Aws::Utils::Json::JsonView jsonValue)
RouteFerryBeforeTravelStep & WithDuration(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteFerryBeforeTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue