This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-cognito-sync/include/aws/cognito-sync/model/SetCognitoEventsRequest.h

157 lines
5.7 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
#include <aws/cognito-sync/CognitoSyncRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace CognitoSync
{
namespace Model
{
/**
* <p>A request to configure Cognito Events"</p>"<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetCognitoEventsRequest">AWS
* API Reference</a></p>
*/
class AWS_COGNITOSYNC_API SetCognitoEventsRequest : public CognitoSyncRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
*/
inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
/**
* <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
*/
inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
/**
* <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
*/
inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
/**
* <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
*/
inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
/**
* <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
*/
inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
/**
* <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
*/
inline SetCognitoEventsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
/**
* <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
*/
inline SetCognitoEventsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
/**
* <p>The Cognito Identity Pool to use when configuring Cognito Events</p>
*/
inline SetCognitoEventsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
/**
* <p>The events to configure</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetEvents() const{ return m_events; }
/**
* <p>The events to configure</p>
*/
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
/**
* <p>The events to configure</p>
*/
inline void SetEvents(const Aws::Map<Aws::String, Aws::String>& value) { m_eventsHasBeenSet = true; m_events = value; }
/**
* <p>The events to configure</p>
*/
inline void SetEvents(Aws::Map<Aws::String, Aws::String>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
/**
* <p>The events to configure</p>
*/
inline SetCognitoEventsRequest& WithEvents(const Aws::Map<Aws::String, Aws::String>& value) { SetEvents(value); return *this;}
/**
* <p>The events to configure</p>
*/
inline SetCognitoEventsRequest& WithEvents(Aws::Map<Aws::String, Aws::String>&& value) { SetEvents(std::move(value)); return *this;}
/**
* <p>The events to configure</p>
*/
inline SetCognitoEventsRequest& AddEvents(const Aws::String& key, const Aws::String& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
/**
* <p>The events to configure</p>
*/
inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, const Aws::String& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; }
/**
* <p>The events to configure</p>
*/
inline SetCognitoEventsRequest& AddEvents(const Aws::String& key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
/**
* <p>The events to configure</p>
*/
inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The events to configure</p>
*/
inline SetCognitoEventsRequest& AddEvents(const char* key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
/**
* <p>The events to configure</p>
*/
inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, const char* value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; }
/**
* <p>The events to configure</p>
*/
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;
Aws::Map<Aws::String, Aws::String> m_events;
bool m_eventsHasBeenSet;
};
} // namespace Model
} // namespace CognitoSync
} // namespace Aws