AWS SDK for C++

AWS SDK for C++ Version 1.11.793

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
31 public:
32 AWS_GEOROUTES_API IsolineAvoidanceArea() = default;
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<IsolineAvoidanceAreaGeometry>& GetExcept() const { return m_except; }
44 inline bool ExceptHasBeenSet() const { return m_exceptHasBeenSet; }
45 template <typename ExceptT = Aws::Vector<IsolineAvoidanceAreaGeometry>>
46 void SetExcept(ExceptT&& value) {
47 m_exceptHasBeenSet = true;
48 m_except = std::forward<ExceptT>(value);
49 }
50 template <typename ExceptT = Aws::Vector<IsolineAvoidanceAreaGeometry>>
51 IsolineAvoidanceArea& WithExcept(ExceptT&& value) {
52 SetExcept(std::forward<ExceptT>(value));
53 return *this;
54 }
55 template <typename ExceptT = IsolineAvoidanceAreaGeometry>
56 IsolineAvoidanceArea& AddExcept(ExceptT&& value) {
57 m_exceptHasBeenSet = true;
58 m_except.emplace_back(std::forward<ExceptT>(value));
59 return *this;
60 }
62
64
68 inline const IsolineAvoidanceAreaGeometry& GetGeometry() const { return m_geometry; }
69 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
70 template <typename GeometryT = IsolineAvoidanceAreaGeometry>
71 void SetGeometry(GeometryT&& value) {
72 m_geometryHasBeenSet = true;
73 m_geometry = std::forward<GeometryT>(value);
74 }
75 template <typename GeometryT = IsolineAvoidanceAreaGeometry>
76 IsolineAvoidanceArea& WithGeometry(GeometryT&& value) {
77 SetGeometry(std::forward<GeometryT>(value));
78 return *this;
79 }
81 private:
83
85 bool m_exceptHasBeenSet = false;
86 bool m_geometryHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace GeoRoutes
91} // 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