/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The request parameters are invalid.See Also:
AWS
* API Reference
The error code associated with the validation failure.
*/ inline const ErrorCode& GetErrorCode() const{ return m_errorCode; } /** *The error code associated with the validation failure.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code associated with the validation failure.
*/ inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code associated with the validation failure.
*/ inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The error code associated with the validation failure.
*/ inline ValidationException& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;} /** *The error code associated with the validation failure.
*/ inline ValidationException& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *An explanation of why validation failed.
*/ inline const Aws::String& GetErrorCodeReason() const{ return m_errorCodeReason; } /** *An explanation of why validation failed.
*/ inline bool ErrorCodeReasonHasBeenSet() const { return m_errorCodeReasonHasBeenSet; } /** *An explanation of why validation failed.
*/ inline void SetErrorCodeReason(const Aws::String& value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason = value; } /** *An explanation of why validation failed.
*/ inline void SetErrorCodeReason(Aws::String&& value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason = std::move(value); } /** *An explanation of why validation failed.
*/ inline void SetErrorCodeReason(const char* value) { m_errorCodeReasonHasBeenSet = true; m_errorCodeReason.assign(value); } /** *An explanation of why validation failed.
*/ inline ValidationException& WithErrorCodeReason(const Aws::String& value) { SetErrorCodeReason(value); return *this;} /** *An explanation of why validation failed.
*/ inline ValidationException& WithErrorCodeReason(Aws::String&& value) { SetErrorCodeReason(std::move(value)); return *this;} /** *An explanation of why validation failed.
*/ inline ValidationException& WithErrorCodeReason(const char* value) { SetErrorCodeReason(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; ErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorCodeReason; bool m_errorCodeReasonHasBeenSet = false; }; } // namespace Model } // namespace Detective } // namespace Aws