/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMakerGeospatial { namespace Model { /** *

The structure representing a Geometry in terms of Type and Coordinates as per * GeoJson spec.

See Also:

AWS * API Reference

*/ class Geometry { public: AWS_SAGEMAKERGEOSPATIAL_API Geometry(); AWS_SAGEMAKERGEOSPATIAL_API Geometry(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKERGEOSPATIAL_API Geometry& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The coordinates of the GeoJson Geometry.

*/ inline const Aws::Vector>>& GetCoordinates() const{ return m_coordinates; } /** *

The coordinates of the GeoJson Geometry.

*/ inline bool CoordinatesHasBeenSet() const { return m_coordinatesHasBeenSet; } /** *

The coordinates of the GeoJson Geometry.

*/ inline void SetCoordinates(const Aws::Vector>>& value) { m_coordinatesHasBeenSet = true; m_coordinates = value; } /** *

The coordinates of the GeoJson Geometry.

*/ inline void SetCoordinates(Aws::Vector>>&& value) { m_coordinatesHasBeenSet = true; m_coordinates = std::move(value); } /** *

The coordinates of the GeoJson Geometry.

*/ inline Geometry& WithCoordinates(const Aws::Vector>>& value) { SetCoordinates(value); return *this;} /** *

The coordinates of the GeoJson Geometry.

*/ inline Geometry& WithCoordinates(Aws::Vector>>&& value) { SetCoordinates(std::move(value)); return *this;} /** *

The coordinates of the GeoJson Geometry.

*/ inline Geometry& AddCoordinates(const Aws::Vector>& value) { m_coordinatesHasBeenSet = true; m_coordinates.push_back(value); return *this; } /** *

The coordinates of the GeoJson Geometry.

*/ inline Geometry& AddCoordinates(Aws::Vector>&& value) { m_coordinatesHasBeenSet = true; m_coordinates.push_back(std::move(value)); return *this; } /** *

GeoJson Geometry types like Polygon and MultiPolygon.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

GeoJson Geometry types like Polygon and MultiPolygon.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

GeoJson Geometry types like Polygon and MultiPolygon.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

GeoJson Geometry types like Polygon and MultiPolygon.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

GeoJson Geometry types like Polygon and MultiPolygon.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

GeoJson Geometry types like Polygon and MultiPolygon.

*/ inline Geometry& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

GeoJson Geometry types like Polygon and MultiPolygon.

*/ inline Geometry& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

GeoJson Geometry types like Polygon and MultiPolygon.

*/ inline Geometry& WithType(const char* value) { SetType(value); return *this;} private: Aws::Vector>> m_coordinates; bool m_coordinatesHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SageMakerGeospatial } // namespace Aws