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

VectorEnrichmentJob error details in response from * GetVectorEnrichmentJob.

See Also:

AWS * API Reference

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

A message that you define and then is processed and rendered by the Vector * Enrichment job 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 Vector * Enrichment job when the error occurs.

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

A message that you define and then is processed and rendered by the Vector * Enrichment job 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 Vector * Enrichment job 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 Vector * Enrichment job 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 Vector * Enrichment job when the error occurs.

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

A message that you define and then is processed and rendered by the Vector * Enrichment job when the error occurs.

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

A message that you define and then is processed and rendered by the Vector * Enrichment job when the error occurs.

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

The type of error generated during the Vector Enrichment job.

*/ inline const VectorEnrichmentJobErrorType& GetErrorType() const{ return m_errorType; } /** *

The type of error generated during the Vector Enrichment job.

*/ inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; } /** *

The type of error generated during the Vector Enrichment job.

*/ inline void SetErrorType(const VectorEnrichmentJobErrorType& value) { m_errorTypeHasBeenSet = true; m_errorType = value; } /** *

The type of error generated during the Vector Enrichment job.

*/ inline void SetErrorType(VectorEnrichmentJobErrorType&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); } /** *

The type of error generated during the Vector Enrichment job.

*/ inline VectorEnrichmentJobErrorDetails& WithErrorType(const VectorEnrichmentJobErrorType& value) { SetErrorType(value); return *this;} /** *

The type of error generated during the Vector Enrichment job.

*/ inline VectorEnrichmentJobErrorDetails& WithErrorType(VectorEnrichmentJobErrorType&& value) { SetErrorType(std::move(value)); return *this;} private: Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; VectorEnrichmentJobErrorType m_errorType; bool m_errorTypeHasBeenSet = false; }; } // namespace Model } // namespace SageMakerGeospatial } // namespace Aws