/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class ReleaseHostsResponse { public: AWS_EC2_API ReleaseHostsResponse(); AWS_EC2_API ReleaseHostsResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API ReleaseHostsResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The IDs of the Dedicated Hosts that were successfully released.

*/ inline const Aws::Vector& GetSuccessful() const{ return m_successful; } /** *

The IDs of the Dedicated Hosts that were successfully released.

*/ inline void SetSuccessful(const Aws::Vector& value) { m_successful = value; } /** *

The IDs of the Dedicated Hosts that were successfully released.

*/ inline void SetSuccessful(Aws::Vector&& value) { m_successful = std::move(value); } /** *

The IDs of the Dedicated Hosts that were successfully released.

*/ inline ReleaseHostsResponse& WithSuccessful(const Aws::Vector& value) { SetSuccessful(value); return *this;} /** *

The IDs of the Dedicated Hosts that were successfully released.

*/ inline ReleaseHostsResponse& WithSuccessful(Aws::Vector&& value) { SetSuccessful(std::move(value)); return *this;} /** *

The IDs of the Dedicated Hosts that were successfully released.

*/ inline ReleaseHostsResponse& AddSuccessful(const Aws::String& value) { m_successful.push_back(value); return *this; } /** *

The IDs of the Dedicated Hosts that were successfully released.

*/ inline ReleaseHostsResponse& AddSuccessful(Aws::String&& value) { m_successful.push_back(std::move(value)); return *this; } /** *

The IDs of the Dedicated Hosts that were successfully released.

*/ inline ReleaseHostsResponse& AddSuccessful(const char* value) { m_successful.push_back(value); return *this; } /** *

The IDs of the Dedicated Hosts that could not be released, including an error * message.

*/ inline const Aws::Vector& GetUnsuccessful() const{ return m_unsuccessful; } /** *

The IDs of the Dedicated Hosts that could not be released, including an error * message.

*/ inline void SetUnsuccessful(const Aws::Vector& value) { m_unsuccessful = value; } /** *

The IDs of the Dedicated Hosts that could not be released, including an error * message.

*/ inline void SetUnsuccessful(Aws::Vector&& value) { m_unsuccessful = std::move(value); } /** *

The IDs of the Dedicated Hosts that could not be released, including an error * message.

*/ inline ReleaseHostsResponse& WithUnsuccessful(const Aws::Vector& value) { SetUnsuccessful(value); return *this;} /** *

The IDs of the Dedicated Hosts that could not be released, including an error * message.

*/ inline ReleaseHostsResponse& WithUnsuccessful(Aws::Vector&& value) { SetUnsuccessful(std::move(value)); return *this;} /** *

The IDs of the Dedicated Hosts that could not be released, including an error * message.

*/ inline ReleaseHostsResponse& AddUnsuccessful(const UnsuccessfulItem& value) { m_unsuccessful.push_back(value); return *this; } /** *

The IDs of the Dedicated Hosts that could not be released, including an error * message.

*/ inline ReleaseHostsResponse& AddUnsuccessful(UnsuccessfulItem&& value) { m_unsuccessful.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ReleaseHostsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ReleaseHostsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_successful; Aws::Vector m_unsuccessful; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws