AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CalculateRouteSummary.h
1
6#pragma once
7#include <aws/location/LocationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/location/model/DistanceUnit.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LocationService
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LOCATIONSERVICE_API CalculateRouteSummary();
37 AWS_LOCATIONSERVICE_API CalculateRouteSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LOCATIONSERVICE_API CalculateRouteSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
56 inline const Aws::Vector<double>& GetRouteBBox() const{ return m_routeBBox; }
57 inline bool RouteBBoxHasBeenSet() const { return m_routeBBoxHasBeenSet; }
58 inline void SetRouteBBox(const Aws::Vector<double>& value) { m_routeBBoxHasBeenSet = true; m_routeBBox = value; }
59 inline void SetRouteBBox(Aws::Vector<double>&& value) { m_routeBBoxHasBeenSet = true; m_routeBBox = std::move(value); }
60 inline CalculateRouteSummary& WithRouteBBox(const Aws::Vector<double>& value) { SetRouteBBox(value); return *this;}
61 inline CalculateRouteSummary& WithRouteBBox(Aws::Vector<double>&& value) { SetRouteBBox(std::move(value)); return *this;}
62 inline CalculateRouteSummary& AddRouteBBox(double value) { m_routeBBoxHasBeenSet = true; m_routeBBox.push_back(value); return *this; }
64
66
75 inline const Aws::String& GetDataSource() const{ return m_dataSource; }
76 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
77 inline void SetDataSource(const Aws::String& value) { m_dataSourceHasBeenSet = true; m_dataSource = value; }
78 inline void SetDataSource(Aws::String&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::move(value); }
79 inline void SetDataSource(const char* value) { m_dataSourceHasBeenSet = true; m_dataSource.assign(value); }
80 inline CalculateRouteSummary& WithDataSource(const Aws::String& value) { SetDataSource(value); return *this;}
81 inline CalculateRouteSummary& WithDataSource(Aws::String&& value) { SetDataSource(std::move(value)); return *this;}
82 inline CalculateRouteSummary& WithDataSource(const char* value) { SetDataSource(value); return *this;}
84
86
93 inline double GetDistance() const{ return m_distance; }
94 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
95 inline void SetDistance(double value) { m_distanceHasBeenSet = true; m_distance = value; }
96 inline CalculateRouteSummary& WithDistance(double value) { SetDistance(value); return *this;}
98
100
104 inline double GetDurationSeconds() const{ return m_durationSeconds; }
105 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
106 inline void SetDurationSeconds(double value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
107 inline CalculateRouteSummary& WithDurationSeconds(double value) { SetDurationSeconds(value); return *this;}
109
111
114 inline const DistanceUnit& GetDistanceUnit() const{ return m_distanceUnit; }
115 inline bool DistanceUnitHasBeenSet() const { return m_distanceUnitHasBeenSet; }
116 inline void SetDistanceUnit(const DistanceUnit& value) { m_distanceUnitHasBeenSet = true; m_distanceUnit = value; }
117 inline void SetDistanceUnit(DistanceUnit&& value) { m_distanceUnitHasBeenSet = true; m_distanceUnit = std::move(value); }
118 inline CalculateRouteSummary& WithDistanceUnit(const DistanceUnit& value) { SetDistanceUnit(value); return *this;}
119 inline CalculateRouteSummary& WithDistanceUnit(DistanceUnit&& value) { SetDistanceUnit(std::move(value)); return *this;}
121 private:
122
123 Aws::Vector<double> m_routeBBox;
124 bool m_routeBBoxHasBeenSet = false;
125
126 Aws::String m_dataSource;
127 bool m_dataSourceHasBeenSet = false;
128
129 double m_distance;
130 bool m_distanceHasBeenSet = false;
131
132 double m_durationSeconds;
133 bool m_durationSecondsHasBeenSet = false;
134
135 DistanceUnit m_distanceUnit;
136 bool m_distanceUnitHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace LocationService
141} // namespace Aws
const Aws::Vector< double > & GetRouteBBox() const
CalculateRouteSummary & AddRouteBBox(double value)
AWS_LOCATIONSERVICE_API CalculateRouteSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CalculateRouteSummary & WithRouteBBox(Aws::Vector< double > &&value)
CalculateRouteSummary & WithDistanceUnit(const DistanceUnit &value)
AWS_LOCATIONSERVICE_API CalculateRouteSummary(Aws::Utils::Json::JsonView jsonValue)
CalculateRouteSummary & WithDataSource(const char *value)
CalculateRouteSummary & WithRouteBBox(const Aws::Vector< double > &value)
CalculateRouteSummary & WithDistanceUnit(DistanceUnit &&value)
CalculateRouteSummary & WithDataSource(const Aws::String &value)
CalculateRouteSummary & WithDurationSeconds(double value)
void SetRouteBBox(const Aws::Vector< double > &value)
CalculateRouteSummary & WithDataSource(Aws::String &&value)
CalculateRouteSummary & WithDistance(double value)
AWS_LOCATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue