AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteFerryTravelStep.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/RouteFerryTravelStepType.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 RouteFerryTravelStep();
39 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline long long GetDistance() const{ return m_distance; }
47 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
48 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
49 inline RouteFerryTravelStep& WithDistance(long long value) { SetDistance(value); return *this;}
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) { m_durationHasBeenSet = true; m_duration = value; }
59 inline RouteFerryTravelStep& WithDuration(long long value) { SetDuration(value); return *this;}
61
63
66 inline int GetGeometryOffset() const{ return m_geometryOffset; }
67 inline bool GeometryOffsetHasBeenSet() const { return m_geometryOffsetHasBeenSet; }
68 inline void SetGeometryOffset(int value) { m_geometryOffsetHasBeenSet = true; m_geometryOffset = value; }
69 inline RouteFerryTravelStep& WithGeometryOffset(int value) { SetGeometryOffset(value); return *this;}
71
73
77 inline const Aws::String& GetInstruction() const{ return m_instruction; }
78 inline bool InstructionHasBeenSet() const { return m_instructionHasBeenSet; }
79 inline void SetInstruction(const Aws::String& value) { m_instructionHasBeenSet = true; m_instruction = value; }
80 inline void SetInstruction(Aws::String&& value) { m_instructionHasBeenSet = true; m_instruction = std::move(value); }
81 inline void SetInstruction(const char* value) { m_instructionHasBeenSet = true; m_instruction.assign(value); }
82 inline RouteFerryTravelStep& WithInstruction(const Aws::String& value) { SetInstruction(value); return *this;}
83 inline RouteFerryTravelStep& WithInstruction(Aws::String&& value) { SetInstruction(std::move(value)); return *this;}
84 inline RouteFerryTravelStep& WithInstruction(const char* value) { SetInstruction(value); return *this;}
86
88
91 inline const RouteFerryTravelStepType& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const RouteFerryTravelStepType& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(RouteFerryTravelStepType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline RouteFerryTravelStep& WithType(const RouteFerryTravelStepType& value) { SetType(value); return *this;}
96 inline RouteFerryTravelStep& WithType(RouteFerryTravelStepType&& value) { SetType(std::move(value)); return *this;}
98 private:
99
100 long long m_distance;
101 bool m_distanceHasBeenSet = false;
102
103 long long m_duration;
104 bool m_durationHasBeenSet = false;
105
106 int m_geometryOffset;
107 bool m_geometryOffsetHasBeenSet = false;
108
109 Aws::String m_instruction;
110 bool m_instructionHasBeenSet = false;
111
113 bool m_typeHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace GeoRoutes
118} // namespace Aws
RouteFerryTravelStep & WithInstruction(const Aws::String &value)
RouteFerryTravelStep & WithType(RouteFerryTravelStepType &&value)
const RouteFerryTravelStepType & GetType() const
RouteFerryTravelStep & WithDistance(long long value)
AWS_GEOROUTES_API RouteFerryTravelStep & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(RouteFerryTravelStepType &&value)
AWS_GEOROUTES_API RouteFerryTravelStep(Aws::Utils::Json::JsonView jsonValue)
void SetInstruction(const Aws::String &value)
RouteFerryTravelStep & WithInstruction(const char *value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteFerryTravelStep & WithType(const RouteFerryTravelStepType &value)
RouteFerryTravelStep & WithDuration(long long value)
RouteFerryTravelStep & WithInstruction(Aws::String &&value)
void SetType(const RouteFerryTravelStepType &value)
RouteFerryTravelStep & WithGeometryOffset(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue