/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SageMakerGeospatial
{
namespace Model
{
/**
* The structure representing Polygon Geometry based on the GeoJson
* spec.
See Also:
AWS
* API Reference
*/
class PolygonGeometryInput
{
public:
AWS_SAGEMAKERGEOSPATIAL_API PolygonGeometryInput();
AWS_SAGEMAKERGEOSPATIAL_API PolygonGeometryInput(Aws::Utils::Json::JsonView jsonValue);
AWS_SAGEMAKERGEOSPATIAL_API PolygonGeometryInput& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_SAGEMAKERGEOSPATIAL_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Coordinates representing a Polygon based on the GeoJson
* spec.
*/
inline const Aws::Vector>>& GetCoordinates() const{ return m_coordinates; }
/**
* Coordinates representing a Polygon based on the GeoJson
* spec.
*/
inline bool CoordinatesHasBeenSet() const { return m_coordinatesHasBeenSet; }
/**
* Coordinates representing a Polygon based on the GeoJson
* spec.
*/
inline void SetCoordinates(const Aws::Vector>>& value) { m_coordinatesHasBeenSet = true; m_coordinates = value; }
/**
* Coordinates representing a Polygon based on the GeoJson
* spec.
*/
inline void SetCoordinates(Aws::Vector>>&& value) { m_coordinatesHasBeenSet = true; m_coordinates = std::move(value); }
/**
* Coordinates representing a Polygon based on the GeoJson
* spec.
*/
inline PolygonGeometryInput& WithCoordinates(const Aws::Vector>>& value) { SetCoordinates(value); return *this;}
/**
* Coordinates representing a Polygon based on the GeoJson
* spec.
*/
inline PolygonGeometryInput& WithCoordinates(Aws::Vector>>&& value) { SetCoordinates(std::move(value)); return *this;}
/**
* Coordinates representing a Polygon based on the GeoJson
* spec.
*/
inline PolygonGeometryInput& AddCoordinates(const Aws::Vector>& value) { m_coordinatesHasBeenSet = true; m_coordinates.push_back(value); return *this; }
/**
* Coordinates representing a Polygon based on the GeoJson
* spec.
*/
inline PolygonGeometryInput& AddCoordinates(Aws::Vector>&& value) { m_coordinatesHasBeenSet = true; m_coordinates.push_back(std::move(value)); return *this; }
private:
Aws::Vector>> m_coordinates;
bool m_coordinatesHasBeenSet = false;
};
} // namespace Model
} // namespace SageMakerGeospatial
} // namespace Aws