/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchEvidently { namespace Model { /** *

A structure that contains Evidently's response to the sent events, including * an event ID and error codes, if any.

See Also:

AWS * API Reference

*/ class PutProjectEventsResultEntry { public: AWS_CLOUDWATCHEVIDENTLY_API PutProjectEventsResultEntry(); AWS_CLOUDWATCHEVIDENTLY_API PutProjectEventsResultEntry(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API PutProjectEventsResultEntry& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

If the PutProjectEvents operation has an error, the error code * is returned here.

*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *

If the PutProjectEvents operation has an error, the error code * is returned here.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

If the PutProjectEvents operation has an error, the error code * is returned here.

*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

If the PutProjectEvents operation has an error, the error code * is returned here.

*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

If the PutProjectEvents operation has an error, the error code * is returned here.

*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *

If the PutProjectEvents operation has an error, the error code * is returned here.

*/ inline PutProjectEventsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *

If the PutProjectEvents operation has an error, the error code * is returned here.

*/ inline PutProjectEventsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *

If the PutProjectEvents operation has an error, the error code * is returned here.

*/ inline PutProjectEventsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *

If the PutProjectEvents operation has an error, the error * message is returned here.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

If the PutProjectEvents operation has an error, the error * message is returned here.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

If the PutProjectEvents operation has an error, the error * message is returned here.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

If the PutProjectEvents operation has an error, the error * message is returned here.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

If the PutProjectEvents operation has an error, the error * message is returned here.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

If the PutProjectEvents operation has an error, the error * message is returned here.

*/ inline PutProjectEventsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

If the PutProjectEvents operation has an error, the error * message is returned here.

*/ inline PutProjectEventsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

If the PutProjectEvents operation has an error, the error * message is returned here.

*/ inline PutProjectEventsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

A unique ID assigned to this PutProjectEvents operation.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

A unique ID assigned to this PutProjectEvents operation.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

A unique ID assigned to this PutProjectEvents operation.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

A unique ID assigned to this PutProjectEvents operation.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

A unique ID assigned to this PutProjectEvents operation.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

A unique ID assigned to this PutProjectEvents operation.

*/ inline PutProjectEventsResultEntry& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

A unique ID assigned to this PutProjectEvents operation.

*/ inline PutProjectEventsResultEntry& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

A unique ID assigned to this PutProjectEvents operation.

*/ inline PutProjectEventsResultEntry& WithEventId(const char* value) { SetEventId(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_eventId; bool m_eventIdHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws