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-pinpoint/include/aws/pinpoint/model/SendUsersMessageRequest.h

373 lines
18 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/pinpoint/Pinpoint_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/pinpoint/model/DirectMessageConfiguration.h>
#include <aws/pinpoint/model/TemplateConfiguration.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/pinpoint/model/EndpointSendConfiguration.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Pinpoint
{
namespace Model
{
/**
* <p>Specifies the configuration and other settings for a message to send to all
* the endpoints that are associated with a list of users.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendUsersMessageRequest">AWS
* API Reference</a></p>
*/
class AWS_PINPOINT_API SendUsersMessageRequest
{
public:
SendUsersMessageRequest();
SendUsersMessageRequest(Aws::Utils::Json::JsonView jsonValue);
SendUsersMessageRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& WithContext(const Aws::Map<Aws::String, Aws::String>& value) { SetContext(value); return *this;}
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
/**
* <p>A map of custom attribute-value pairs. For a push notification, Amazon
* Pinpoint adds these attributes to the data.pinpoint object in the body of the
* notification payload. Amazon Pinpoint also provides these attributes in the
* events that it generates for users-messages deliveries.</p>
*/
inline SendUsersMessageRequest& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
/**
* <p>The settings and content for the default message and any default messages
* that you defined for specific channels.</p>
*/
inline const DirectMessageConfiguration& GetMessageConfiguration() const{ return m_messageConfiguration; }
/**
* <p>The settings and content for the default message and any default messages
* that you defined for specific channels.</p>
*/
inline bool MessageConfigurationHasBeenSet() const { return m_messageConfigurationHasBeenSet; }
/**
* <p>The settings and content for the default message and any default messages
* that you defined for specific channels.</p>
*/
inline void SetMessageConfiguration(const DirectMessageConfiguration& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = value; }
/**
* <p>The settings and content for the default message and any default messages
* that you defined for specific channels.</p>
*/
inline void SetMessageConfiguration(DirectMessageConfiguration&& value) { m_messageConfigurationHasBeenSet = true; m_messageConfiguration = std::move(value); }
/**
* <p>The settings and content for the default message and any default messages
* that you defined for specific channels.</p>
*/
inline SendUsersMessageRequest& WithMessageConfiguration(const DirectMessageConfiguration& value) { SetMessageConfiguration(value); return *this;}
/**
* <p>The settings and content for the default message and any default messages
* that you defined for specific channels.</p>
*/
inline SendUsersMessageRequest& WithMessageConfiguration(DirectMessageConfiguration&& value) { SetMessageConfiguration(std::move(value)); return *this;}
/**
* <p>The message template to use for the message.</p>
*/
inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
/**
* <p>The message template to use for the message.</p>
*/
inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
/**
* <p>The message template to use for the message.</p>
*/
inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
/**
* <p>The message template to use for the message.</p>
*/
inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
/**
* <p>The message template to use for the message.</p>
*/
inline SendUsersMessageRequest& WithTemplateConfiguration(const TemplateConfiguration& value) { SetTemplateConfiguration(value); return *this;}
/**
* <p>The message template to use for the message.</p>
*/
inline SendUsersMessageRequest& WithTemplateConfiguration(TemplateConfiguration&& value) { SetTemplateConfiguration(std::move(value)); return *this;}
/**
* <p>The unique identifier for tracing the message. This identifier is visible to
* message recipients.</p>
*/
inline const Aws::String& GetTraceId() const{ return m_traceId; }
/**
* <p>The unique identifier for tracing the message. This identifier is visible to
* message recipients.</p>
*/
inline bool TraceIdHasBeenSet() const { return m_traceIdHasBeenSet; }
/**
* <p>The unique identifier for tracing the message. This identifier is visible to
* message recipients.</p>
*/
inline void SetTraceId(const Aws::String& value) { m_traceIdHasBeenSet = true; m_traceId = value; }
/**
* <p>The unique identifier for tracing the message. This identifier is visible to
* message recipients.</p>
*/
inline void SetTraceId(Aws::String&& value) { m_traceIdHasBeenSet = true; m_traceId = std::move(value); }
/**
* <p>The unique identifier for tracing the message. This identifier is visible to
* message recipients.</p>
*/
inline void SetTraceId(const char* value) { m_traceIdHasBeenSet = true; m_traceId.assign(value); }
/**
* <p>The unique identifier for tracing the message. This identifier is visible to
* message recipients.</p>
*/
inline SendUsersMessageRequest& WithTraceId(const Aws::String& value) { SetTraceId(value); return *this;}
/**
* <p>The unique identifier for tracing the message. This identifier is visible to
* message recipients.</p>
*/
inline SendUsersMessageRequest& WithTraceId(Aws::String&& value) { SetTraceId(std::move(value)); return *this;}
/**
* <p>The unique identifier for tracing the message. This identifier is visible to
* message recipients.</p>
*/
inline SendUsersMessageRequest& WithTraceId(const char* value) { SetTraceId(value); return *this;}
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline const Aws::Map<Aws::String, EndpointSendConfiguration>& GetUsers() const{ return m_users; }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline void SetUsers(const Aws::Map<Aws::String, EndpointSendConfiguration>& value) { m_usersHasBeenSet = true; m_users = value; }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline void SetUsers(Aws::Map<Aws::String, EndpointSendConfiguration>&& value) { m_usersHasBeenSet = true; m_users = std::move(value); }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline SendUsersMessageRequest& WithUsers(const Aws::Map<Aws::String, EndpointSendConfiguration>& value) { SetUsers(value); return *this;}
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline SendUsersMessageRequest& WithUsers(Aws::Map<Aws::String, EndpointSendConfiguration>&& value) { SetUsers(std::move(value)); return *this;}
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline SendUsersMessageRequest& AddUsers(const Aws::String& key, const EndpointSendConfiguration& value) { m_usersHasBeenSet = true; m_users.emplace(key, value); return *this; }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline SendUsersMessageRequest& AddUsers(Aws::String&& key, const EndpointSendConfiguration& value) { m_usersHasBeenSet = true; m_users.emplace(std::move(key), value); return *this; }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline SendUsersMessageRequest& AddUsers(const Aws::String& key, EndpointSendConfiguration&& value) { m_usersHasBeenSet = true; m_users.emplace(key, std::move(value)); return *this; }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline SendUsersMessageRequest& AddUsers(Aws::String&& key, EndpointSendConfiguration&& value) { m_usersHasBeenSet = true; m_users.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline SendUsersMessageRequest& AddUsers(const char* key, EndpointSendConfiguration&& value) { m_usersHasBeenSet = true; m_users.emplace(key, std::move(value)); return *this; }
/**
* <p>A map that associates user IDs with EndpointSendConfiguration objects. You
* can use an EndpointSendConfiguration object to tailor the message for a user by
* specifying settings such as content overrides and message variables.</p>
*/
inline SendUsersMessageRequest& AddUsers(const char* key, const EndpointSendConfiguration& value) { m_usersHasBeenSet = true; m_users.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_context;
bool m_contextHasBeenSet;
DirectMessageConfiguration m_messageConfiguration;
bool m_messageConfigurationHasBeenSet;
TemplateConfiguration m_templateConfiguration;
bool m_templateConfigurationHasBeenSet;
Aws::String m_traceId;
bool m_traceIdHasBeenSet;
Aws::Map<Aws::String, EndpointSendConfiguration> m_users;
bool m_usersHasBeenSet;
};
} // namespace Model
} // namespace Pinpoint
} // namespace Aws