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

The response from the GetCognitoEvents request

See Also:

AWS * API Reference

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

The Cognito Events returned from the GetCognitoEvents request

*/ inline const Aws::Map& GetEvents() const{ return m_events; } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline void SetEvents(const Aws::Map& value) { m_events = value; } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline void SetEvents(Aws::Map&& value) { m_events = std::move(value); } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& WithEvents(const Aws::Map& value) { SetEvents(value); return *this;} /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& WithEvents(Aws::Map&& value) { SetEvents(std::move(value)); return *this;} /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& AddEvents(const Aws::String& key, const Aws::String& value) { m_events.emplace(key, value); return *this; } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& AddEvents(Aws::String&& key, const Aws::String& value) { m_events.emplace(std::move(key), value); return *this; } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& AddEvents(const Aws::String& key, Aws::String&& value) { m_events.emplace(key, std::move(value)); return *this; } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& AddEvents(Aws::String&& key, Aws::String&& value) { m_events.emplace(std::move(key), std::move(value)); return *this; } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& AddEvents(const char* key, Aws::String&& value) { m_events.emplace(key, std::move(value)); return *this; } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& AddEvents(Aws::String&& key, const char* value) { m_events.emplace(std::move(key), value); return *this; } /** *

The Cognito Events returned from the GetCognitoEvents request

*/ inline GetCognitoEventsResult& AddEvents(const char* key, const char* value) { m_events.emplace(key, 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 GetCognitoEventsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCognitoEventsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCognitoEventsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Map m_events; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoSync } // namespace Aws