/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This exception occurs when there is something wrong with user
* input.See Also:
AWS
* API Reference
The error code associated with the exception.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *The error code associated with the exception.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code associated with the exception.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code associated with the exception.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The error code associated with the exception.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *The error code associated with the exception.
*/ inline InvalidRequestException& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *The error code associated with the exception.
*/ inline InvalidRequestException& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *The error code associated with the exception.
*/ inline InvalidRequestException& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *The message associated with the exception.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *The message associated with the exception.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *The message associated with the exception.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *The message associated with the exception.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *The message associated with the exception.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *The message associated with the exception.
*/ inline InvalidRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *The message associated with the exception.
*/ inline InvalidRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *The message associated with the exception.
*/ inline InvalidRequestException& WithMessage(const char* value) { SetMessage(value); return *this;} private: Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws