/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about items that were not successfully processed in a batch
* call.See Also:
AWS
* API Reference
Information about the error.
*/ inline const UnsuccessfulItemError& GetError() const{ return m_error; } /** *Information about the error.
*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *Information about the error.
*/ inline void SetError(const UnsuccessfulItemError& value) { m_errorHasBeenSet = true; m_error = value; } /** *Information about the error.
*/ inline void SetError(UnsuccessfulItemError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *Information about the error.
*/ inline UnsuccessfulItem& WithError(const UnsuccessfulItemError& value) { SetError(value); return *this;} /** *Information about the error.
*/ inline UnsuccessfulItem& WithError(UnsuccessfulItemError&& value) { SetError(std::move(value)); return *this;} /** *The ID of the resource.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *The ID of the resource.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *The ID of the resource.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *The ID of the resource.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *The ID of the resource.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *The ID of the resource.
*/ inline UnsuccessfulItem& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *The ID of the resource.
*/ inline UnsuccessfulItem& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *The ID of the resource.
*/ inline UnsuccessfulItem& WithResourceId(const char* value) { SetResourceId(value); return *this;} private: UnsuccessfulItemError m_error; bool m_errorHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws