/** * 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 XRay { namespace Model { /** *

Information about a segment that failed processing.

See Also:

* AWS * API Reference

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

The segment's ID.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The segment's ID.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The segment's ID.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The segment's ID.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The segment's ID.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The segment's ID.

*/ inline UnprocessedTraceSegment& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The segment's ID.

*/ inline UnprocessedTraceSegment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The segment's ID.

*/ inline UnprocessedTraceSegment& WithId(const char* value) { SetId(value); return *this;} /** *

The error that caused processing to fail.

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

The error that caused processing to fail.

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

The error that caused processing to fail.

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

The error that caused processing to fail.

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

The error that caused processing to fail.

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

The error that caused processing to fail.

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

The error that caused processing to fail.

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

The error that caused processing to fail.

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

The error message.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The error message.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The error message.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The error message.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The error message.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The error message.

*/ inline UnprocessedTraceSegment& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The error message.

*/ inline UnprocessedTraceSegment& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The error message.

*/ inline UnprocessedTraceSegment& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws