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

Response to a RegisterDevice request.

See Also:

AWS * API Reference

*/ class RegisterDeviceResult { public: AWS_COGNITOSYNC_API RegisterDeviceResult(); AWS_COGNITOSYNC_API RegisterDeviceResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOSYNC_API RegisterDeviceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The unique ID generated for this device by Cognito.

*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *

The unique ID generated for this device by Cognito.

*/ inline void SetDeviceId(const Aws::String& value) { m_deviceId = value; } /** *

The unique ID generated for this device by Cognito.

*/ inline void SetDeviceId(Aws::String&& value) { m_deviceId = std::move(value); } /** *

The unique ID generated for this device by Cognito.

*/ inline void SetDeviceId(const char* value) { m_deviceId.assign(value); } /** *

The unique ID generated for this device by Cognito.

*/ inline RegisterDeviceResult& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *

The unique ID generated for this device by Cognito.

*/ inline RegisterDeviceResult& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *

The unique ID generated for this device by Cognito.

*/ inline RegisterDeviceResult& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} 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 RegisterDeviceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RegisterDeviceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RegisterDeviceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_deviceId; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoSync } // namespace Aws