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

130 lines
4.0 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/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 the status code and message that result from processing an
* event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EventItemResponse">AWS
* API Reference</a></p>
*/
class AWS_PINPOINT_API EventItemResponse
{
public:
EventItemResponse();
EventItemResponse(Aws::Utils::Json::JsonView jsonValue);
EventItemResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A custom message that's returned in the response as a result of processing
* the event.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>A custom message that's returned in the response as a result of processing
* the event.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>A custom message that's returned in the response as a result of processing
* the event.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>A custom message that's returned in the response as a result of processing
* the event.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>A custom message that's returned in the response as a result of processing
* the event.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>A custom message that's returned in the response as a result of processing
* the event.</p>
*/
inline EventItemResponse& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>A custom message that's returned in the response as a result of processing
* the event.</p>
*/
inline EventItemResponse& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>A custom message that's returned in the response as a result of processing
* the event.</p>
*/
inline EventItemResponse& WithMessage(const char* value) { SetMessage(value); return *this;}
/**
* <p>The status code that's returned in the response as a result of processing the
* event. Possible values are: 202, for events that were accepted; and, 400, for
* events that weren't valid.</p>
*/
inline int GetStatusCode() const{ return m_statusCode; }
/**
* <p>The status code that's returned in the response as a result of processing the
* event. Possible values are: 202, for events that were accepted; and, 400, for
* events that weren't valid.</p>
*/
inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
/**
* <p>The status code that's returned in the response as a result of processing the
* event. Possible values are: 202, for events that were accepted; and, 400, for
* events that weren't valid.</p>
*/
inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
/**
* <p>The status code that's returned in the response as a result of processing the
* event. Possible values are: 202, for events that were accepted; and, 400, for
* events that weren't valid.</p>
*/
inline EventItemResponse& WithStatusCode(int value) { SetStatusCode(value); return *this;}
private:
Aws::String m_message;
bool m_messageHasBeenSet;
int m_statusCode;
bool m_statusCodeHasBeenSet;
};
} // namespace Model
} // namespace Pinpoint
} // namespace Aws