AWS SDK for C++

AWS SDK for C++ Version 1.11.763

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
30 public:
31 AWS_GEOROUTES_API IsolineConnection() = default;
32 AWS_GEOROUTES_API IsolineConnection(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline int GetFromPolygonIndex() const { return m_fromPolygonIndex; }
42 inline bool FromPolygonIndexHasBeenSet() const { return m_fromPolygonIndexHasBeenSet; }
43 inline void SetFromPolygonIndex(int value) {
44 m_fromPolygonIndexHasBeenSet = true;
45 m_fromPolygonIndex = value;
46 }
49 return *this;
50 }
52
54
57 inline const IsolineConnectionGeometry& GetGeometry() const { return m_geometry; }
58 inline bool GeometryHasBeenSet() const { return m_geometryHasBeenSet; }
59 template <typename GeometryT = IsolineConnectionGeometry>
60 void SetGeometry(GeometryT&& value) {
61 m_geometryHasBeenSet = true;
62 m_geometry = std::forward<GeometryT>(value);
63 }
64 template <typename GeometryT = IsolineConnectionGeometry>
65 IsolineConnection& WithGeometry(GeometryT&& value) {
66 SetGeometry(std::forward<GeometryT>(value));
67 return *this;
68 }
70
72
76 inline int GetToPolygonIndex() const { return m_toPolygonIndex; }
77 inline bool ToPolygonIndexHasBeenSet() const { return m_toPolygonIndexHasBeenSet; }
78 inline void SetToPolygonIndex(int value) {
79 m_toPolygonIndexHasBeenSet = true;
80 m_toPolygonIndex = value;
81 }
83 SetToPolygonIndex(value);
84 return *this;
85 }
87 private:
88 int m_fromPolygonIndex{0};
89
90 IsolineConnectionGeometry m_geometry;
91
92 int m_toPolygonIndex{0};
93 bool m_fromPolygonIndexHasBeenSet = false;
94 bool m_geometryHasBeenSet = false;
95 bool m_toPolygonIndexHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace GeoRoutes
100} // 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