/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the batch request error details associated with the
* request.See Also:
AWS
* API Reference
The error code associated with the batch request error.
*/ inline const BatchItemErrorCode& GetCode() const{ return m_code; } /** *The error code associated with the batch request error.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The error code associated with the batch request error.
*/ inline void SetCode(const BatchItemErrorCode& value) { m_codeHasBeenSet = true; m_code = value; } /** *The error code associated with the batch request error.
*/ inline void SetCode(BatchItemErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The error code associated with the batch request error.
*/ inline BatchItemError& WithCode(const BatchItemErrorCode& value) { SetCode(value); return *this;} /** *The error code associated with the batch request error.
*/ inline BatchItemError& WithCode(BatchItemErrorCode&& value) { SetCode(std::move(value)); return *this;} /** *A message with the reason for the batch request error.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *A message with the reason for the batch request error.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *A message with the reason for the batch request error.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *A message with the reason for the batch request error.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *A message with the reason for the batch request error.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *A message with the reason for the batch request error.
*/ inline BatchItemError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *A message with the reason for the batch request error.
*/ inline BatchItemError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *A message with the reason for the batch request error.
*/ inline BatchItemError& WithMessage(const char* value) { SetMessage(value); return *this;} private: BatchItemErrorCode m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws