AWS SDK for C++

AWS SDK for C++ Version 1.11.793

Loading...
Searching...
No Matches
IsolineDestinationOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/IsolineMatchingOptions.h>
9#include <aws/geo-routes/model/IsolineSideOfStreetOptions.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
32 public:
33 AWS_GEOROUTES_API IsolineDestinationOptions() = default;
36 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline long long GetAvoidActionsForDistance() const { return m_avoidActionsForDistance; }
46 inline bool AvoidActionsForDistanceHasBeenSet() const { return m_avoidActionsForDistanceHasBeenSet; }
47 inline void SetAvoidActionsForDistance(long long value) {
48 m_avoidActionsForDistanceHasBeenSet = true;
49 m_avoidActionsForDistance = value;
50 }
53 return *this;
54 }
56
58
63 inline double GetHeading() const { return m_heading; }
64 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
65 inline void SetHeading(double value) {
66 m_headingHasBeenSet = true;
67 m_heading = value;
68 }
69 inline IsolineDestinationOptions& WithHeading(double value) {
70 SetHeading(value);
71 return *this;
72 }
74
76
80 inline const IsolineMatchingOptions& GetMatching() const { return m_matching; }
81 inline bool MatchingHasBeenSet() const { return m_matchingHasBeenSet; }
82 template <typename MatchingT = IsolineMatchingOptions>
83 void SetMatching(MatchingT&& value) {
84 m_matchingHasBeenSet = true;
85 m_matching = std::forward<MatchingT>(value);
86 }
87 template <typename MatchingT = IsolineMatchingOptions>
89 SetMatching(std::forward<MatchingT>(value));
90 return *this;
91 }
93
95
100 inline const IsolineSideOfStreetOptions& GetSideOfStreet() const { return m_sideOfStreet; }
101 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
102 template <typename SideOfStreetT = IsolineSideOfStreetOptions>
103 void SetSideOfStreet(SideOfStreetT&& value) {
104 m_sideOfStreetHasBeenSet = true;
105 m_sideOfStreet = std::forward<SideOfStreetT>(value);
106 }
107 template <typename SideOfStreetT = IsolineSideOfStreetOptions>
109 SetSideOfStreet(std::forward<SideOfStreetT>(value));
110 return *this;
111 }
113 private:
114 long long m_avoidActionsForDistance{0};
115
116 double m_heading{0.0};
117
118 IsolineMatchingOptions m_matching;
119
120 IsolineSideOfStreetOptions m_sideOfStreet;
121 bool m_avoidActionsForDistanceHasBeenSet = false;
122 bool m_headingHasBeenSet = false;
123 bool m_matchingHasBeenSet = false;
124 bool m_sideOfStreetHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace GeoRoutes
129} // namespace Aws
IsolineDestinationOptions & WithHeading(double value)
IsolineDestinationOptions & WithAvoidActionsForDistance(long long value)
IsolineDestinationOptions & WithSideOfStreet(SideOfStreetT &&value)
AWS_GEOROUTES_API IsolineDestinationOptions()=default
AWS_GEOROUTES_API IsolineDestinationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
IsolineDestinationOptions & WithMatching(MatchingT &&value)
const IsolineMatchingOptions & GetMatching() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API IsolineDestinationOptions(Aws::Utils::Json::JsonView jsonValue)
const IsolineSideOfStreetOptions & GetSideOfStreet() const
Aws::Utils::Json::JsonValue JsonValue