AWS SDK for C++

AWS SDK for C++ Version 1.11.793

Loading...
Searching...
No Matches
IsolineThresholds.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoRoutes {
20namespace Model {
21
32 public:
33 AWS_GEOROUTES_API IsolineThresholds() = default;
34 AWS_GEOROUTES_API IsolineThresholds(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<long long>& GetDistance() const { return m_distance; }
44 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
45 template <typename DistanceT = Aws::Vector<long long>>
46 void SetDistance(DistanceT&& value) {
47 m_distanceHasBeenSet = true;
48 m_distance = std::forward<DistanceT>(value);
49 }
50 template <typename DistanceT = Aws::Vector<long long>>
51 IsolineThresholds& WithDistance(DistanceT&& value) {
52 SetDistance(std::forward<DistanceT>(value));
53 return *this;
54 }
55 inline IsolineThresholds& AddDistance(long long value) {
56 m_distanceHasBeenSet = true;
57 m_distance.push_back(value);
58 return *this;
59 }
61
63
67 inline const Aws::Vector<long long>& GetTime() const { return m_time; }
68 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
69 template <typename TimeT = Aws::Vector<long long>>
70 void SetTime(TimeT&& value) {
71 m_timeHasBeenSet = true;
72 m_time = std::forward<TimeT>(value);
73 }
74 template <typename TimeT = Aws::Vector<long long>>
75 IsolineThresholds& WithTime(TimeT&& value) {
76 SetTime(std::forward<TimeT>(value));
77 return *this;
78 }
79 inline IsolineThresholds& AddTime(long long value) {
80 m_timeHasBeenSet = true;
81 m_time.push_back(value);
82 return *this;
83 }
85 private:
86 Aws::Vector<long long> m_distance;
87
89 bool m_distanceHasBeenSet = false;
90 bool m_timeHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace GeoRoutes
95} // namespace Aws
const Aws::Vector< long long > & GetTime() const
IsolineThresholds & AddTime(long long value)
IsolineThresholds & WithDistance(DistanceT &&value)
AWS_GEOROUTES_API IsolineThresholds(Aws::Utils::Json::JsonView jsonValue)
IsolineThresholds & AddDistance(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API IsolineThresholds()=default
const Aws::Vector< long long > & GetDistance() const
AWS_GEOROUTES_API IsolineThresholds & operator=(Aws::Utils::Json::JsonView jsonValue)
IsolineThresholds & WithTime(TimeT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue