/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Information about items that were not successfully processed in a batch * call.

See Also:

AWS * API Reference

*/ class UnsuccessfulItem { public: AWS_EC2_API UnsuccessfulItem(); AWS_EC2_API UnsuccessfulItem(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API UnsuccessfulItem& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

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