/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Additional information if the package is in an error state. Null
* otherwise.See Also:
AWS
* API Reference
The type of error that occurred.
*/ inline const Aws::String& GetErrorType() const{ return m_errorType; } /** *The type of error that occurred.
*/ inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; } /** *The type of error that occurred.
*/ inline void SetErrorType(const Aws::String& value) { m_errorTypeHasBeenSet = true; m_errorType = value; } /** *The type of error that occurred.
*/ inline void SetErrorType(Aws::String&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); } /** *The type of error that occurred.
*/ inline void SetErrorType(const char* value) { m_errorTypeHasBeenSet = true; m_errorType.assign(value); } /** *The type of error that occurred.
*/ inline ErrorDetails& WithErrorType(const Aws::String& value) { SetErrorType(value); return *this;} /** *The type of error that occurred.
*/ inline ErrorDetails& WithErrorType(Aws::String&& value) { SetErrorType(std::move(value)); return *this;} /** *The type of error that occurred.
*/ inline ErrorDetails& WithErrorType(const char* value) { SetErrorType(value); return *this;} /** *A message describing the error.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *A message describing the error.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *A message describing the error.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *A message describing the error.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *A message describing the error.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *A message describing the error.
*/ inline ErrorDetails& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *A message describing the error.
*/ inline ErrorDetails& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *A message describing the error.
*/ inline ErrorDetails& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_errorType; bool m_errorTypeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws