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

Information on the error that caused the snapshot job to fail.

See * Also:

AWS * API Reference

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error message.

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

The error type.

*/ inline const Aws::String& GetErrorType() const{ return m_errorType; } /** *

The error type.

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

The error type.

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

The error type.

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

The error type.

*/ inline void SetErrorType(const char* value) { m_errorTypeHasBeenSet = true; m_errorType.assign(value); } /** *

The error type.

*/ inline SnapshotJobResultErrorInfo& WithErrorType(const Aws::String& value) { SetErrorType(value); return *this;} /** *

The error type.

*/ inline SnapshotJobResultErrorInfo& WithErrorType(Aws::String&& value) { SetErrorType(std::move(value)); return *this;} /** *

The error type.

*/ inline SnapshotJobResultErrorInfo& WithErrorType(const char* value) { SetErrorType(value); return *this;} private: Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_errorType; bool m_errorTypeHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws