AWS SDK for C++

AWS SDK for C++ Version 1.11.792

Loading...
Searching...
No Matches
IsolineConnection.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/IsolineConnectionGeometry.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoRoutes {
20namespace Model {
21
31 public:
32 AWS_GEOROUTES_API IsolineConnection() = default;
33 AWS_GEOROUTES_API IsolineConnection(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetFromPolygonIndex() const { return m_fromPolygonIndex; }
43 inline bool FromPolygonIndexHasBeenSet() const { return m_fromPolygonIndexHasBeenSet; }
44 inline void SetFromPolygonIndex(int value) {
45 m_fromPolygonIndexHasBeenSet = true;
46 m_fromPolygonIndex = value;
47 }
50 return *this;
51 }
53
55
59 inline const IsolineConnectionGeometry& GetGeometry() const { return m_geometry; }
60 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
61 template <typename GeometryT = IsolineConnectionGeometry>
62 void SetGeometry(GeometryT&& value) {
63 m_geometryHasBeenSet = true;
64 m_geometry = std::forward<GeometryT>(value);
65 }
66 template <typename GeometryT = IsolineConnectionGeometry>
67 IsolineConnection& WithGeometry(GeometryT&& value) {
68 SetGeometry(std::forward<GeometryT>(value));
69 return *this;
70 }
72
74
78 inline int GetToPolygonIndex() const { return m_toPolygonIndex; }
79 inline bool ToPolygonIndexHasBeenSet() const { return m_toPolygonIndexHasBeenSet; }
80 inline void SetToPolygonIndex(int value) {
81 m_toPolygonIndexHasBeenSet = true;
82 m_toPolygonIndex = value;
83 }
85 SetToPolygonIndex(value);
86 return *this;
87 }
89 private:
90 int m_fromPolygonIndex{0};
91
92 IsolineConnectionGeometry m_geometry;
93
94 int m_toPolygonIndex{0};
95 bool m_fromPolygonIndexHasBeenSet = false;
96 bool m_geometryHasBeenSet = false;
97 bool m_toPolygonIndexHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace GeoRoutes
102} // namespace Aws
IsolineConnection & WithToPolygonIndex(int value)
AWS_GEOROUTES_API IsolineConnection()=default
IsolineConnection & WithFromPolygonIndex(int value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const IsolineConnectionGeometry & GetGeometry() const
IsolineConnection & WithGeometry(GeometryT &&value)
AWS_GEOROUTES_API IsolineConnection & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API IsolineConnection(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue