AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Geometry.h
1
6#pragma once
7#include <aws/sagemaker-geospatial/SageMakerGeospatial_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMakerGeospatial
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKERGEOSPATIAL_API Geometry() = default;
37 AWS_SAGEMAKERGEOSPATIAL_API Geometry(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKERGEOSPATIAL_API Geometry& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& GetCoordinates() const { return m_coordinates; }
47 inline bool CoordinatesHasBeenSet() const { return m_coordinatesHasBeenSet; }
48 template<typename CoordinatesT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
49 void SetCoordinates(CoordinatesT&& value) { m_coordinatesHasBeenSet = true; m_coordinates = std::forward<CoordinatesT>(value); }
50 template<typename CoordinatesT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
51 Geometry& WithCoordinates(CoordinatesT&& value) { SetCoordinates(std::forward<CoordinatesT>(value)); return *this;}
52 template<typename CoordinatesT = Aws::Vector<Aws::Vector<double>>>
53 Geometry& AddCoordinates(CoordinatesT&& value) { m_coordinatesHasBeenSet = true; m_coordinates.emplace_back(std::forward<CoordinatesT>(value)); return *this; }
55
57
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template<typename TypeT = Aws::String>
63 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
64 template<typename TypeT = Aws::String>
65 Geometry& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
67 private:
68
70 bool m_coordinatesHasBeenSet = false;
71
72 Aws::String m_type;
73 bool m_typeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace SageMakerGeospatial
78} // namespace Aws
void SetCoordinates(CoordinatesT &&value)
Definition Geometry.h:49
const Aws::Vector< Aws::Vector< Aws::Vector< double > > > & GetCoordinates() const
Definition Geometry.h:46
AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const
Geometry & AddCoordinates(CoordinatesT &&value)
Definition Geometry.h:53
AWS_SAGEMAKERGEOSPATIAL_API Geometry & operator=(Aws::Utils::Json::JsonView jsonValue)
Geometry & WithType(TypeT &&value)
Definition Geometry.h:65
AWS_SAGEMAKERGEOSPATIAL_API Geometry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition Geometry.h:60
Geometry & WithCoordinates(CoordinatesT &&value)
Definition Geometry.h:51
AWS_SAGEMAKERGEOSPATIAL_API Geometry()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue