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/MessageResult.h

337 lines
15 KiB
C++

/**
* 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/pinpoint/model/DeliveryStatus.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Pinpoint
{
namespace Model
{
/**
* <p>Provides information about the results of sending a message directly to an
* endpoint address.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/MessageResult">AWS
* API Reference</a></p>
*/
class AWS_PINPOINT_API MessageResult
{
public:
MessageResult();
MessageResult(Aws::Utils::Json::JsonView jsonValue);
MessageResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The delivery status of the message. Possible values are:</p> <ul>
* <li><p>DUPLICATE - The endpoint address is a duplicate of another endpoint
* address. Amazon Pinpoint won't attempt to send the message again.</p></li>
* <li><p>OPT_OUT - The user who's associated with the endpoint address has opted
* out of receiving messages from you. Amazon Pinpoint won't attempt to send the
* message again.</p></li> <li><p>PERMANENT_FAILURE - An error occurred when
* delivering the message to the endpoint address. Amazon Pinpoint won't attempt to
* send the message again.</p></li> <li><p>SUCCESSFUL - The message was
* successfully delivered to the endpoint address.</p></li>
* <li><p>TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't
* attempt to send the message again.</p></li> <li><p>THROTTLED - Amazon Pinpoint
* throttled the operation to send the message to the endpoint address.</p></li>
* <li><p>TIMEOUT - The message couldn't be sent within the timeout
* period.</p></li> <li><p>UNKNOWN_FAILURE - An unknown error
* occurred.</p></li></ul>
*/
inline const DeliveryStatus& GetDeliveryStatus() const{ return m_deliveryStatus; }
/**
* <p>The delivery status of the message. Possible values are:</p> <ul>
* <li><p>DUPLICATE - The endpoint address is a duplicate of another endpoint
* address. Amazon Pinpoint won't attempt to send the message again.</p></li>
* <li><p>OPT_OUT - The user who's associated with the endpoint address has opted
* out of receiving messages from you. Amazon Pinpoint won't attempt to send the
* message again.</p></li> <li><p>PERMANENT_FAILURE - An error occurred when
* delivering the message to the endpoint address. Amazon Pinpoint won't attempt to
* send the message again.</p></li> <li><p>SUCCESSFUL - The message was
* successfully delivered to the endpoint address.</p></li>
* <li><p>TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't
* attempt to send the message again.</p></li> <li><p>THROTTLED - Amazon Pinpoint
* throttled the operation to send the message to the endpoint address.</p></li>
* <li><p>TIMEOUT - The message couldn't be sent within the timeout
* period.</p></li> <li><p>UNKNOWN_FAILURE - An unknown error
* occurred.</p></li></ul>
*/
inline bool DeliveryStatusHasBeenSet() const { return m_deliveryStatusHasBeenSet; }
/**
* <p>The delivery status of the message. Possible values are:</p> <ul>
* <li><p>DUPLICATE - The endpoint address is a duplicate of another endpoint
* address. Amazon Pinpoint won't attempt to send the message again.</p></li>
* <li><p>OPT_OUT - The user who's associated with the endpoint address has opted
* out of receiving messages from you. Amazon Pinpoint won't attempt to send the
* message again.</p></li> <li><p>PERMANENT_FAILURE - An error occurred when
* delivering the message to the endpoint address. Amazon Pinpoint won't attempt to
* send the message again.</p></li> <li><p>SUCCESSFUL - The message was
* successfully delivered to the endpoint address.</p></li>
* <li><p>TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't
* attempt to send the message again.</p></li> <li><p>THROTTLED - Amazon Pinpoint
* throttled the operation to send the message to the endpoint address.</p></li>
* <li><p>TIMEOUT - The message couldn't be sent within the timeout
* period.</p></li> <li><p>UNKNOWN_FAILURE - An unknown error
* occurred.</p></li></ul>
*/
inline void SetDeliveryStatus(const DeliveryStatus& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = value; }
/**
* <p>The delivery status of the message. Possible values are:</p> <ul>
* <li><p>DUPLICATE - The endpoint address is a duplicate of another endpoint
* address. Amazon Pinpoint won't attempt to send the message again.</p></li>
* <li><p>OPT_OUT - The user who's associated with the endpoint address has opted
* out of receiving messages from you. Amazon Pinpoint won't attempt to send the
* message again.</p></li> <li><p>PERMANENT_FAILURE - An error occurred when
* delivering the message to the endpoint address. Amazon Pinpoint won't attempt to
* send the message again.</p></li> <li><p>SUCCESSFUL - The message was
* successfully delivered to the endpoint address.</p></li>
* <li><p>TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't
* attempt to send the message again.</p></li> <li><p>THROTTLED - Amazon Pinpoint
* throttled the operation to send the message to the endpoint address.</p></li>
* <li><p>TIMEOUT - The message couldn't be sent within the timeout
* period.</p></li> <li><p>UNKNOWN_FAILURE - An unknown error
* occurred.</p></li></ul>
*/
inline void SetDeliveryStatus(DeliveryStatus&& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = std::move(value); }
/**
* <p>The delivery status of the message. Possible values are:</p> <ul>
* <li><p>DUPLICATE - The endpoint address is a duplicate of another endpoint
* address. Amazon Pinpoint won't attempt to send the message again.</p></li>
* <li><p>OPT_OUT - The user who's associated with the endpoint address has opted
* out of receiving messages from you. Amazon Pinpoint won't attempt to send the
* message again.</p></li> <li><p>PERMANENT_FAILURE - An error occurred when
* delivering the message to the endpoint address. Amazon Pinpoint won't attempt to
* send the message again.</p></li> <li><p>SUCCESSFUL - The message was
* successfully delivered to the endpoint address.</p></li>
* <li><p>TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't
* attempt to send the message again.</p></li> <li><p>THROTTLED - Amazon Pinpoint
* throttled the operation to send the message to the endpoint address.</p></li>
* <li><p>TIMEOUT - The message couldn't be sent within the timeout
* period.</p></li> <li><p>UNKNOWN_FAILURE - An unknown error
* occurred.</p></li></ul>
*/
inline MessageResult& WithDeliveryStatus(const DeliveryStatus& value) { SetDeliveryStatus(value); return *this;}
/**
* <p>The delivery status of the message. Possible values are:</p> <ul>
* <li><p>DUPLICATE - The endpoint address is a duplicate of another endpoint
* address. Amazon Pinpoint won't attempt to send the message again.</p></li>
* <li><p>OPT_OUT - The user who's associated with the endpoint address has opted
* out of receiving messages from you. Amazon Pinpoint won't attempt to send the
* message again.</p></li> <li><p>PERMANENT_FAILURE - An error occurred when
* delivering the message to the endpoint address. Amazon Pinpoint won't attempt to
* send the message again.</p></li> <li><p>SUCCESSFUL - The message was
* successfully delivered to the endpoint address.</p></li>
* <li><p>TEMPORARY_FAILURE - A temporary error occurred. Amazon Pinpoint won't
* attempt to send the message again.</p></li> <li><p>THROTTLED - Amazon Pinpoint
* throttled the operation to send the message to the endpoint address.</p></li>
* <li><p>TIMEOUT - The message couldn't be sent within the timeout
* period.</p></li> <li><p>UNKNOWN_FAILURE - An unknown error
* occurred.</p></li></ul>
*/
inline MessageResult& WithDeliveryStatus(DeliveryStatus&& value) { SetDeliveryStatus(std::move(value)); return *this;}
/**
* <p>The unique identifier for the message that was sent.</p>
*/
inline const Aws::String& GetMessageId() const{ return m_messageId; }
/**
* <p>The unique identifier for the message that was sent.</p>
*/
inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; }
/**
* <p>The unique identifier for the message that was sent.</p>
*/
inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; }
/**
* <p>The unique identifier for the message that was sent.</p>
*/
inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); }
/**
* <p>The unique identifier for the message that was sent.</p>
*/
inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); }
/**
* <p>The unique identifier for the message that was sent.</p>
*/
inline MessageResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
/**
* <p>The unique identifier for the message that was sent.</p>
*/
inline MessageResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the message that was sent.</p>
*/
inline MessageResult& WithMessageId(const char* value) { SetMessageId(value); return *this;}
/**
* <p>The downstream service status code for delivering the message.</p>
*/
inline int GetStatusCode() const{ return m_statusCode; }
/**
* <p>The downstream service status code for delivering the message.</p>
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* <p>The downstream service status code for delivering the message.</p>
*/
inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* <p>The downstream service status code for delivering the message.</p>
*/
inline MessageResult& WithStatusCode(int value) { SetStatusCode(value); return *this;}
/**
* <p>The status message for delivering the message.</p>
*/
inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
/**
* <p>The status message for delivering the message.</p>
*/
inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
/**
* <p>The status message for delivering the message.</p>
*/
inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
/**
* <p>The status message for delivering the message.</p>
*/
inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
/**
* <p>The status message for delivering the message.</p>
*/
inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
/**
* <p>The status message for delivering the message.</p>
*/
inline MessageResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
/**
* <p>The status message for delivering the message.</p>
*/
inline MessageResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
/**
* <p>The status message for delivering the message.</p>
*/
inline MessageResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
/**
* <p>For push notifications that are sent through the GCM channel, specifies
* whether the endpoint's device registration token was updated as part of
* delivering the message.</p>
*/
inline const Aws::String& GetUpdatedToken() const{ return m_updatedToken; }
/**
* <p>For push notifications that are sent through the GCM channel, specifies
* whether the endpoint's device registration token was updated as part of
* delivering the message.</p>
*/
inline bool UpdatedTokenHasBeenSet() const { return m_updatedTokenHasBeenSet; }
/**
* <p>For push notifications that are sent through the GCM channel, specifies
* whether the endpoint's device registration token was updated as part of
* delivering the message.</p>
*/
inline void SetUpdatedToken(const Aws::String& value) { m_updatedTokenHasBeenSet = true; m_updatedToken = value; }
/**
* <p>For push notifications that are sent through the GCM channel, specifies
* whether the endpoint's device registration token was updated as part of
* delivering the message.</p>
*/
inline void SetUpdatedToken(Aws::String&& value) { m_updatedTokenHasBeenSet = true; m_updatedToken = std::move(value); }
/**
* <p>For push notifications that are sent through the GCM channel, specifies
* whether the endpoint's device registration token was updated as part of
* delivering the message.</p>
*/
inline void SetUpdatedToken(const char* value) { m_updatedTokenHasBeenSet = true; m_updatedToken.assign(value); }
/**
* <p>For push notifications that are sent through the GCM channel, specifies
* whether the endpoint's device registration token was updated as part of
* delivering the message.</p>
*/
inline MessageResult& WithUpdatedToken(const Aws::String& value) { SetUpdatedToken(value); return *this;}
/**
* <p>For push notifications that are sent through the GCM channel, specifies
* whether the endpoint's device registration token was updated as part of
* delivering the message.</p>
*/
inline MessageResult& WithUpdatedToken(Aws::String&& value) { SetUpdatedToken(std::move(value)); return *this;}
/**
* <p>For push notifications that are sent through the GCM channel, specifies
* whether the endpoint's device registration token was updated as part of
* delivering the message.</p>
*/
inline MessageResult& WithUpdatedToken(const char* value) { SetUpdatedToken(value); return *this;}
private:
DeliveryStatus m_deliveryStatus;
bool m_deliveryStatusHasBeenSet;
Aws::String m_messageId;
bool m_messageIdHasBeenSet;
int m_statusCode;
bool m_statusCodeHasBeenSet;
Aws::String m_statusMessage;
bool m_statusMessageHasBeenSet;
Aws::String m_updatedToken;
bool m_updatedTokenHasBeenSet;
};
} // namespace Model
} // namespace Pinpoint
} // namespace Aws