/** * 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 { namespace CognitoSync { namespace Model { /** *

A request to configure Cognito Events"

"

See Also:

AWS * API Reference

*/ class SetCognitoEventsRequest : public CognitoSyncRequest { public: AWS_COGNITOSYNC_API SetCognitoEventsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SetCognitoEvents"; } AWS_COGNITOSYNC_API Aws::String SerializePayload() const override; /** *

The Cognito Identity Pool to use when configuring Cognito Events

*/ inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; } /** *

The Cognito Identity Pool to use when configuring Cognito Events

*/ inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; } /** *

The Cognito Identity Pool to use when configuring Cognito Events

*/ inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; } /** *

The Cognito Identity Pool to use when configuring Cognito Events

*/ inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); } /** *

The Cognito Identity Pool to use when configuring Cognito Events

*/ inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); } /** *

The Cognito Identity Pool to use when configuring Cognito Events

*/ inline SetCognitoEventsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} /** *

The Cognito Identity Pool to use when configuring Cognito Events

*/ inline SetCognitoEventsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;} /** *

The Cognito Identity Pool to use when configuring Cognito Events

*/ inline SetCognitoEventsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;} /** *

The events to configure

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

The events to configure

*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *

The events to configure

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

The events to configure

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

The events to configure

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

The events to configure

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

The events to configure

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

The events to configure

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

The events to configure

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

The events to configure

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

The events to configure

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

The events to configure

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

The events to configure

*/ inline SetCognitoEventsRequest& AddEvents(const char* key, const char* value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; } private: Aws::String m_identityPoolId; bool m_identityPoolIdHasBeenSet = false; Aws::Map m_events; bool m_eventsHasBeenSet = false; }; } // namespace Model } // namespace CognitoSync } // namespace Aws