AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
IsolineAvoidanceArea.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/IsolineAvoidanceAreaGeometry.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 IsolineAvoidanceArea() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::Vector<IsolineAvoidanceAreaGeometry>& GetExcept() const { return m_except; }
41 inline bool ExceptHasBeenSet() const { return m_exceptHasBeenSet; }
42 template <typename ExceptT = Aws::Vector<IsolineAvoidanceAreaGeometry>>
43 void SetExcept(ExceptT&& value) {
44 m_exceptHasBeenSet = true;
45 m_except = std::forward<ExceptT>(value);
46 }
47 template <typename ExceptT = Aws::Vector<IsolineAvoidanceAreaGeometry>>
48 IsolineAvoidanceArea& WithExcept(ExceptT&& value) {
49 SetExcept(std::forward<ExceptT>(value));
50 return *this;
51 }
52 template <typename ExceptT = IsolineAvoidanceAreaGeometry>
53 IsolineAvoidanceArea& AddExcept(ExceptT&& value) {
54 m_exceptHasBeenSet = true;
55 m_except.emplace_back(std::forward<ExceptT>(value));
56 return *this;
57 }
59
61
64 inline const IsolineAvoidanceAreaGeometry& GetGeometry() const { return m_geometry; }
65 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
66 template <typename GeometryT = IsolineAvoidanceAreaGeometry>
67 void SetGeometry(GeometryT&& value) {
68 m_geometryHasBeenSet = true;
69 m_geometry = std::forward<GeometryT>(value);
70 }
71 template <typename GeometryT = IsolineAvoidanceAreaGeometry>
72 IsolineAvoidanceArea& WithGeometry(GeometryT&& value) {
73 SetGeometry(std::forward<GeometryT>(value));
74 return *this;
75 }
77 private:
79
81 bool m_exceptHasBeenSet = false;
82 bool m_geometryHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace GeoRoutes
87} // namespace Aws
IsolineAvoidanceArea & WithGeometry(GeometryT &&value)
const Aws::Vector< IsolineAvoidanceAreaGeometry > & GetExcept() const
const IsolineAvoidanceAreaGeometry & GetGeometry() const
AWS_GEOROUTES_API IsolineAvoidanceArea()=default
AWS_GEOROUTES_API IsolineAvoidanceArea & operator=(Aws::Utils::Json::JsonView jsonValue)
IsolineAvoidanceArea & WithExcept(ExceptT &&value)
IsolineAvoidanceArea & AddExcept(ExceptT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API IsolineAvoidanceArea(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue