AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
RouteMatrixOriginOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/RouteMatrixMatchingOptions.h>
9#include <aws/geo-routes/model/RouteMatrixSideOfStreetOptions.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 RouteMatrixOriginOptions() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline long long GetAvoidActionsForDistance() const { return m_avoidActionsForDistance; }
42 inline bool AvoidActionsForDistanceHasBeenSet() const { return m_avoidActionsForDistanceHasBeenSet; }
43 inline void SetAvoidActionsForDistance(long long value) {
44 m_avoidActionsForDistanceHasBeenSet = true;
45 m_avoidActionsForDistance = value;
46 }
49 return *this;
50 }
52
54
57 inline double GetHeading() const { return m_heading; }
58 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
59 inline void SetHeading(double value) {
60 m_headingHasBeenSet = true;
61 m_heading = value;
62 }
63 inline RouteMatrixOriginOptions& WithHeading(double value) {
64 SetHeading(value);
65 return *this;
66 }
68
70
73 inline const RouteMatrixMatchingOptions& GetMatching() const { return m_matching; }
74 inline bool MatchingHasBeenSet() const { return m_matchingHasBeenSet; }
75 template <typename MatchingT = RouteMatrixMatchingOptions>
76 void SetMatching(MatchingT&& value) {
77 m_matchingHasBeenSet = true;
78 m_matching = std::forward<MatchingT>(value);
79 }
80 template <typename MatchingT = RouteMatrixMatchingOptions>
82 SetMatching(std::forward<MatchingT>(value));
83 return *this;
84 }
86
88
92 inline const RouteMatrixSideOfStreetOptions& GetSideOfStreet() const { return m_sideOfStreet; }
93 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
94 template <typename SideOfStreetT = RouteMatrixSideOfStreetOptions>
95 void SetSideOfStreet(SideOfStreetT&& value) {
96 m_sideOfStreetHasBeenSet = true;
97 m_sideOfStreet = std::forward<SideOfStreetT>(value);
98 }
99 template <typename SideOfStreetT = RouteMatrixSideOfStreetOptions>
101 SetSideOfStreet(std::forward<SideOfStreetT>(value));
102 return *this;
103 }
105 private:
106 long long m_avoidActionsForDistance{0};
107
108 double m_heading{0.0};
109
110 RouteMatrixMatchingOptions m_matching;
111
112 RouteMatrixSideOfStreetOptions m_sideOfStreet;
113 bool m_avoidActionsForDistanceHasBeenSet = false;
114 bool m_headingHasBeenSet = false;
115 bool m_matchingHasBeenSet = false;
116 bool m_sideOfStreetHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace GeoRoutes
121} // namespace Aws
AWS_GEOROUTES_API RouteMatrixOriginOptions(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixOriginOptions & WithAvoidActionsForDistance(long long value)
const RouteMatrixMatchingOptions & GetMatching() const
AWS_GEOROUTES_API RouteMatrixOriginOptions()=default
RouteMatrixOriginOptions & WithHeading(double value)
RouteMatrixOriginOptions & WithSideOfStreet(SideOfStreetT &&value)
RouteMatrixOriginOptions & WithMatching(MatchingT &&value)
AWS_GEOROUTES_API RouteMatrixOriginOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const RouteMatrixSideOfStreetOptions & GetSideOfStreet() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue