AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Geometry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker-geospatial/SageMakerGeospatial_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMakerGeospatial {
21namespace Model {
22
29class Geometry {
30 public:
31 AWS_SAGEMAKERGEOSPATIAL_API Geometry() = default;
32 AWS_SAGEMAKERGEOSPATIAL_API Geometry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKERGEOSPATIAL_API Geometry& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& GetCoordinates() const { return m_coordinates; }
41 inline bool CoordinatesHasBeenSet() const { return m_coordinatesHasBeenSet; }
42 template <typename CoordinatesT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
43 void SetCoordinates(CoordinatesT&& value) {
44 m_coordinatesHasBeenSet = true;
45 m_coordinates = std::forward<CoordinatesT>(value);
46 }
47 template <typename CoordinatesT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
48 Geometry& WithCoordinates(CoordinatesT&& value) {
49 SetCoordinates(std::forward<CoordinatesT>(value));
50 return *this;
51 }
52 template <typename CoordinatesT = Aws::Vector<Aws::Vector<double>>>
53 Geometry& AddCoordinates(CoordinatesT&& value) {
54 m_coordinatesHasBeenSet = true;
55 m_coordinates.emplace_back(std::forward<CoordinatesT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 template <typename TypeT = Aws::String>
67 void SetType(TypeT&& value) {
68 m_typeHasBeenSet = true;
69 m_type = std::forward<TypeT>(value);
70 }
71 template <typename TypeT = Aws::String>
72 Geometry& WithType(TypeT&& value) {
73 SetType(std::forward<TypeT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::String m_type;
81 bool m_coordinatesHasBeenSet = false;
82 bool m_typeHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace SageMakerGeospatial
87} // namespace Aws
void SetCoordinates(CoordinatesT &&value)
Definition Geometry.h:43
const Aws::Vector< Aws::Vector< Aws::Vector< double > > > & GetCoordinates() const
Definition Geometry.h:40
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:72
AWS_SAGEMAKERGEOSPATIAL_API Geometry(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition Geometry.h:64
Geometry & WithCoordinates(CoordinatesT &&value)
Definition Geometry.h:48
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