AWS SDK for C++

AWS SDK for C++ Version 1.11.794

Loading...
Searching...
No Matches
RouteMatrixDestination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/RouteMatrixDestinationOptions.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 RouteMatrixDestination() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const RouteMatrixDestinationOptions& GetOptions() const { return m_options; }
43 inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; }
44 template <typename OptionsT = RouteMatrixDestinationOptions>
45 void SetOptions(OptionsT&& value) {
46 m_optionsHasBeenSet = true;
47 m_options = std::forward<OptionsT>(value);
48 }
49 template <typename OptionsT = RouteMatrixDestinationOptions>
51 SetOptions(std::forward<OptionsT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
61 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
62 template <typename PositionT = Aws::Vector<double>>
63 void SetPosition(PositionT&& value) {
64 m_positionHasBeenSet = true;
65 m_position = std::forward<PositionT>(value);
66 }
67 template <typename PositionT = Aws::Vector<double>>
69 SetPosition(std::forward<PositionT>(value));
70 return *this;
71 }
72 inline RouteMatrixDestination& AddPosition(double value) {
73 m_positionHasBeenSet = true;
74 m_position.push_back(value);
75 return *this;
76 }
78 private:
80
81 Aws::Vector<double> m_position;
82 bool m_optionsHasBeenSet = false;
83 bool m_positionHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace GeoRoutes
88} // namespace Aws
const Aws::Vector< double > & GetPosition() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const RouteMatrixDestinationOptions & GetOptions() const
AWS_GEOROUTES_API RouteMatrixDestination & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteMatrixDestination(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixDestination & WithOptions(OptionsT &&value)
RouteMatrixDestination & WithPosition(PositionT &&value)
AWS_GEOROUTES_API RouteMatrixDestination()=default
RouteMatrixDestination & AddPosition(double value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue