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

The container for the metadata for Fail step.

See Also:

AWS * API Reference

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

A message that you define and then is processed and rendered by the Fail step * when the error occurs.

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

A message that you define and then is processed and rendered by the Fail step * when the error occurs.

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

A message that you define and then is processed and rendered by the Fail step * when the error occurs.

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

A message that you define and then is processed and rendered by the Fail step * when the error occurs.

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

A message that you define and then is processed and rendered by the Fail step * when the error occurs.

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

A message that you define and then is processed and rendered by the Fail step * when the error occurs.

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

A message that you define and then is processed and rendered by the Fail step * when the error occurs.

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

A message that you define and then is processed and rendered by the Fail step * when the error occurs.

*/ inline FailStepMetadata& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws