/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Greengrass
{
namespace Model
{
/**
* General error information.See Also:
AWS
* API Reference
*/
class BadRequestException
{
public:
AWS_GREENGRASS_API BadRequestException();
AWS_GREENGRASS_API BadRequestException(Aws::Utils::Json::JsonView jsonValue);
AWS_GREENGRASS_API BadRequestException& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Details about the error.
*/
inline const Aws::Vector& GetErrorDetails() const{ return m_errorDetails; }
/**
* Details about the error.
*/
inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
/**
* Details about the error.
*/
inline void SetErrorDetails(const Aws::Vector& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
/**
* Details about the error.
*/
inline void SetErrorDetails(Aws::Vector&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
/**
* Details about the error.
*/
inline BadRequestException& WithErrorDetails(const Aws::Vector& value) { SetErrorDetails(value); return *this;}
/**
* Details about the error.
*/
inline BadRequestException& WithErrorDetails(Aws::Vector&& value) { SetErrorDetails(std::move(value)); return *this;}
/**
* Details about the error.
*/
inline BadRequestException& AddErrorDetails(const ErrorDetail& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(value); return *this; }
/**
* Details about the error.
*/
inline BadRequestException& AddErrorDetails(ErrorDetail&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(std::move(value)); return *this; }
/**
* A message containing information about the error.
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* A message containing information about the error.
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* A message containing information about the error.
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* A message containing information about the error.
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* A message containing information about the error.
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* A message containing information about the error.
*/
inline BadRequestException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* A message containing information about the error.
*/
inline BadRequestException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* A message containing information about the error.
*/
inline BadRequestException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::Vector m_errorDetails;
bool m_errorDetailsHasBeenSet = false;
Aws::String m_message;
bool m_messageHasBeenSet = false;
};
} // namespace Model
} // namespace Greengrass
} // namespace Aws