AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCoordinates(const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& value) { m_coordinatesHasBeenSet = true; m_coordinates = value; }
49 inline void SetCoordinates(Aws::Vector<Aws::Vector<Aws::Vector<double>>>&& value) { m_coordinatesHasBeenSet = true; m_coordinates = std::move(value); }
50 inline Geometry& WithCoordinates(const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& value) { SetCoordinates(value); return *this;}
51 inline Geometry& WithCoordinates(Aws::Vector<Aws::Vector<Aws::Vector<double>>>&& value) { SetCoordinates(std::move(value)); return *this;}
52 inline Geometry& AddCoordinates(const Aws::Vector<Aws::Vector<double>>& value) { m_coordinatesHasBeenSet = true; m_coordinates.push_back(value); return *this; }
53 inline Geometry& AddCoordinates(Aws::Vector<Aws::Vector<double>>&& value) { m_coordinatesHasBeenSet = true; m_coordinates.push_back(std::move(value)); return *this; }
55
57
60 inline const Aws::String& GetType() const{ return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
63 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
65 inline Geometry& WithType(const Aws::String& value) { SetType(value); return *this;}
66 inline Geometry& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
67 inline Geometry& WithType(const char* value) { SetType(value); return *this;}
69 private:
70
72 bool m_coordinatesHasBeenSet = false;
73
74 Aws::String m_type;
75 bool m_typeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SageMakerGeospatial
80} // namespace Aws
Geometry & WithType(Aws::String &&value)
Definition Geometry.h:66
Geometry & WithType(const char *value)
Definition Geometry.h:67
void SetType(const char *value)
Definition Geometry.h:64
Geometry & AddCoordinates(const Aws::Vector< Aws::Vector< double > > &value)
Definition Geometry.h:52
Geometry & WithCoordinates(const Aws::Vector< Aws::Vector< Aws::Vector< double > > > &value)
Definition Geometry.h:50
const Aws::Vector< Aws::Vector< Aws::Vector< double > > > & GetCoordinates() const
Definition Geometry.h:46
void SetCoordinates(Aws::Vector< Aws::Vector< Aws::Vector< double > > > &&value)
Definition Geometry.h:49
Geometry & AddCoordinates(Aws::Vector< Aws::Vector< double > > &&value)
Definition Geometry.h:53
void SetType(const Aws::String &value)
Definition Geometry.h:62
void SetCoordinates(const Aws::Vector< Aws::Vector< Aws::Vector< double > > > &value)
Definition Geometry.h:48
AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERGEOSPATIAL_API Geometry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERGEOSPATIAL_API Geometry(Aws::Utils::Json::JsonView jsonValue)
void SetType(Aws::String &&value)
Definition Geometry.h:63
const Aws::String & GetType() const
Definition Geometry.h:60
Geometry & WithType(const Aws::String &value)
Definition Geometry.h:65
AWS_SAGEMAKERGEOSPATIAL_API Geometry()
Geometry & WithCoordinates(Aws::Vector< Aws::Vector< Aws::Vector< double > > > &&value)
Definition Geometry.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue