AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
RouteTollPaymentSite.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/GeoRoutes_EXPORTS.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
30 public:
31 AWS_GEOROUTES_API RouteTollPaymentSite() = default;
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
59 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
60 template <typename PositionT = Aws::Vector<double>>
61 void SetPosition(PositionT&& value) {
62 m_positionHasBeenSet = true;
63 m_position = std::forward<PositionT>(value);
64 }
65 template <typename PositionT = Aws::Vector<double>>
66 RouteTollPaymentSite& WithPosition(PositionT&& value) {
67 SetPosition(std::forward<PositionT>(value));
68 return *this;
69 }
70 inline RouteTollPaymentSite& AddPosition(double value) {
71 m_positionHasBeenSet = true;
72 m_position.push_back(value);
73 return *this;
74 }
76 private:
77 Aws::String m_name;
78
79 Aws::Vector<double> m_position;
80 bool m_nameHasBeenSet = false;
81 bool m_positionHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GeoRoutes
86} // namespace Aws
AWS_GEOROUTES_API RouteTollPaymentSite & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteTollPaymentSite & WithPosition(PositionT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteTollPaymentSite & WithName(NameT &&value)
RouteTollPaymentSite & AddPosition(double value)
AWS_GEOROUTES_API RouteTollPaymentSite(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTollPaymentSite()=default
const Aws::Vector< double > & GetPosition() 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