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

Contains error details for a failed batch job.

See Also:

AWS * API Reference

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

A description of the error that caused the batch job failure.

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

A description of the error that caused the batch job failure.

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

A description of the error that caused the batch job failure.

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

A description of the error that caused the batch job failure.

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

A description of the error that caused the batch job failure.

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

A description of the error that caused the batch job failure.

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

A description of the error that caused the batch job failure.

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

A description of the error that caused the batch job failure.

*/ inline FailureDetails& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

An HTTP status code representing the nature of the error.

*/ inline int GetStatusCode() const{ return m_statusCode; } /** *

An HTTP status code representing the nature of the error.

*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *

An HTTP status code representing the nature of the error.

*/ inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *

An HTTP status code representing the nature of the error.

*/ inline FailureDetails& WithStatusCode(int value) { SetStatusCode(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; int m_statusCode; bool m_statusCodeHasBeenSet = false; }; } // namespace Model } // namespace VoiceID } // namespace Aws