/** * 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 { /** *

Describes an EC2 Fleet that was not successfully deleted.

See * Also:

AWS * API Reference

*/ class DeleteFleetErrorItem { public: AWS_EC2_API DeleteFleetErrorItem(); AWS_EC2_API DeleteFleetErrorItem(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DeleteFleetErrorItem& 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; /** *

The error.

*/ inline const DeleteFleetError& GetError() const{ return m_error; } /** *

The error.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

The error.

*/ inline void SetError(const DeleteFleetError& value) { m_errorHasBeenSet = true; m_error = value; } /** *

The error.

*/ inline void SetError(DeleteFleetError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

The error.

*/ inline DeleteFleetErrorItem& WithError(const DeleteFleetError& value) { SetError(value); return *this;} /** *

The error.

*/ inline DeleteFleetErrorItem& WithError(DeleteFleetError&& value) { SetError(std::move(value)); return *this;} /** *

The ID of the EC2 Fleet.

*/ inline const Aws::String& GetFleetId() const{ return m_fleetId; } /** *

The ID of the EC2 Fleet.

*/ inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; } /** *

The ID of the EC2 Fleet.

*/ inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; } /** *

The ID of the EC2 Fleet.

*/ inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); } /** *

The ID of the EC2 Fleet.

*/ inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); } /** *

The ID of the EC2 Fleet.

*/ inline DeleteFleetErrorItem& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;} /** *

The ID of the EC2 Fleet.

*/ inline DeleteFleetErrorItem& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;} /** *

The ID of the EC2 Fleet.

*/ inline DeleteFleetErrorItem& WithFleetId(const char* value) { SetFleetId(value); return *this;} private: DeleteFleetError m_error; bool m_errorHasBeenSet = false; Aws::String m_fleetId; bool m_fleetIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws