AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RouteMatchingOptions.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/MatchingStrategy.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
29 public:
30 AWS_GEOROUTES_API RouteMatchingOptions() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetNameHint() const { return m_nameHint; }
41 inline bool NameHintHasBeenSet() const { return m_nameHintHasBeenSet; }
42 template <typename NameHintT = Aws::String>
43 void SetNameHint(NameHintT&& value) {
44 m_nameHintHasBeenSet = true;
45 m_nameHint = std::forward<NameHintT>(value);
46 }
47 template <typename NameHintT = Aws::String>
48 RouteMatchingOptions& WithNameHint(NameHintT&& value) {
49 SetNameHint(std::forward<NameHintT>(value));
50 return *this;
51 }
53
55
60 inline long long GetOnRoadThreshold() const { return m_onRoadThreshold; }
61 inline bool OnRoadThresholdHasBeenSet() const { return m_onRoadThresholdHasBeenSet; }
62 inline void SetOnRoadThreshold(long long value) {
63 m_onRoadThresholdHasBeenSet = true;
64 m_onRoadThreshold = value;
65 }
66 inline RouteMatchingOptions& WithOnRoadThreshold(long long value) {
67 SetOnRoadThreshold(value);
68 return *this;
69 }
71
73
78 inline long long GetRadius() const { return m_radius; }
79 inline bool RadiusHasBeenSet() const { return m_radiusHasBeenSet; }
80 inline void SetRadius(long long value) {
81 m_radiusHasBeenSet = true;
82 m_radius = value;
83 }
84 inline RouteMatchingOptions& WithRadius(long long value) {
85 SetRadius(value);
86 return *this;
87 }
89
91
96 inline MatchingStrategy GetStrategy() const { return m_strategy; }
97 inline bool StrategyHasBeenSet() const { return m_strategyHasBeenSet; }
98 inline void SetStrategy(MatchingStrategy value) {
99 m_strategyHasBeenSet = true;
100 m_strategy = value;
101 }
103 SetStrategy(value);
104 return *this;
105 }
107 private:
108 Aws::String m_nameHint;
109
110 long long m_onRoadThreshold{0};
111
112 long long m_radius{0};
113
115 bool m_nameHintHasBeenSet = false;
116 bool m_onRoadThresholdHasBeenSet = false;
117 bool m_radiusHasBeenSet = false;
118 bool m_strategyHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace GeoRoutes
123} // namespace Aws
RouteMatchingOptions & WithOnRoadThreshold(long long value)
AWS_GEOROUTES_API RouteMatchingOptions(Aws::Utils::Json::JsonView jsonValue)
RouteMatchingOptions & WithNameHint(NameHintT &&value)
RouteMatchingOptions & WithRadius(long long value)
RouteMatchingOptions & WithStrategy(MatchingStrategy value)
AWS_GEOROUTES_API RouteMatchingOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API RouteMatchingOptions()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue