AWS SDK for C++

AWS SDK for C++ Version 1.11.763

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
29 public:
30 AWS_GEOROUTES_API IsolineThresholds() = default;
31 AWS_GEOROUTES_API IsolineThresholds(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<long long>& GetDistance() const { return m_distance; }
40 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
41 template <typename DistanceT = Aws::Vector<long long>>
42 void SetDistance(DistanceT&& value) {
43 m_distanceHasBeenSet = true;
44 m_distance = std::forward<DistanceT>(value);
45 }
46 template <typename DistanceT = Aws::Vector<long long>>
47 IsolineThresholds& WithDistance(DistanceT&& value) {
48 SetDistance(std::forward<DistanceT>(value));
49 return *this;
50 }
51 inline IsolineThresholds& AddDistance(long long value) {
52 m_distanceHasBeenSet = true;
53 m_distance.push_back(value);
54 return *this;
55 }
57
59
62 inline const Aws::Vector<long long>& GetTime() const { return m_time; }
63 inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
64 template <typename TimeT = Aws::Vector<long long>>
65 void SetTime(TimeT&& value) {
66 m_timeHasBeenSet = true;
67 m_time = std::forward<TimeT>(value);
68 }
69 template <typename TimeT = Aws::Vector<long long>>
70 IsolineThresholds& WithTime(TimeT&& value) {
71 SetTime(std::forward<TimeT>(value));
72 return *this;
73 }
74 inline IsolineThresholds& AddTime(long long value) {
75 m_timeHasBeenSet = true;
76 m_time.push_back(value);
77 return *this;
78 }
80 private:
81 Aws::Vector<long long> m_distance;
82
84 bool m_distanceHasBeenSet = false;
85 bool m_timeHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace GeoRoutes
90} // 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