/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace IoTWireless { namespace Model { class GetResourcePositionResult { public: AWS_IOTWIRELESS_API GetResourcePositionResult(); //We have to define these because Microsoft doesn't auto generate them AWS_IOTWIRELESS_API GetResourcePositionResult(GetResourcePositionResult&&); AWS_IOTWIRELESS_API GetResourcePositionResult& operator=(GetResourcePositionResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetResourcePositionResult(const GetResourcePositionResult&) = delete; GetResourcePositionResult& operator=(const GetResourcePositionResult&) = delete; AWS_IOTWIRELESS_API GetResourcePositionResult(Aws::AmazonWebServiceResult&& result); AWS_IOTWIRELESS_API GetResourcePositionResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The position information of the resource, displayed as a JSON payload. The * payload uses the GeoJSON format, which a format that's used to encode geographic * data structures. For more information, see GeoJSON.

*/ inline Aws::IOStream& GetGeoJsonPayload() const { return m_geoJsonPayload.GetUnderlyingStream(); } /** *

The position information of the resource, displayed as a JSON payload. The * payload uses the GeoJSON format, which a format that's used to encode geographic * data structures. For more information, see GeoJSON.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_geoJsonPayload = Aws::Utils::Stream::ResponseStream(body); } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetResourcePositionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetResourcePositionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetResourcePositionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::Stream::ResponseStream m_geoJsonPayload; Aws::String m_requestId; }; } // namespace Model } // namespace IoTWireless } // namespace Aws