/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 CreateFleetResponse { public: AWS_EC2_API CreateFleetResponse(); AWS_EC2_API CreateFleetResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API CreateFleetResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the EC2 Fleet.

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

The ID of the EC2 Fleet.

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

The ID of the EC2 Fleet.

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

The ID of the EC2 Fleet.

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

The ID of the EC2 Fleet.

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

The ID of the EC2 Fleet.

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

The ID of the EC2 Fleet.

*/ inline CreateFleetResponse& WithFleetId(const char* value) { SetFleetId(value); return *this;} /** *

Information about the instances that could not be launched by the fleet. * Supported only for fleets of type instant.

*/ inline const Aws::Vector& GetErrors() const{ return m_errors; } /** *

Information about the instances that could not be launched by the fleet. * Supported only for fleets of type instant.

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

Information about the instances that could not be launched by the fleet. * Supported only for fleets of type instant.

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

Information about the instances that could not be launched by the fleet. * Supported only for fleets of type instant.

*/ inline CreateFleetResponse& WithErrors(const Aws::Vector& value) { SetErrors(value); return *this;} /** *

Information about the instances that could not be launched by the fleet. * Supported only for fleets of type instant.

*/ inline CreateFleetResponse& WithErrors(Aws::Vector&& value) { SetErrors(std::move(value)); return *this;} /** *

Information about the instances that could not be launched by the fleet. * Supported only for fleets of type instant.

*/ inline CreateFleetResponse& AddErrors(const CreateFleetError& value) { m_errors.push_back(value); return *this; } /** *

Information about the instances that could not be launched by the fleet. * Supported only for fleets of type instant.

*/ inline CreateFleetResponse& AddErrors(CreateFleetError&& value) { m_errors.push_back(std::move(value)); return *this; } /** *

Information about the instances that were launched by the fleet. Supported * only for fleets of type instant.

*/ inline const Aws::Vector& GetInstances() const{ return m_instances; } /** *

Information about the instances that were launched by the fleet. Supported * only for fleets of type instant.

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

Information about the instances that were launched by the fleet. Supported * only for fleets of type instant.

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

Information about the instances that were launched by the fleet. Supported * only for fleets of type instant.

*/ inline CreateFleetResponse& WithInstances(const Aws::Vector& value) { SetInstances(value); return *this;} /** *

Information about the instances that were launched by the fleet. Supported * only for fleets of type instant.

*/ inline CreateFleetResponse& WithInstances(Aws::Vector&& value) { SetInstances(std::move(value)); return *this;} /** *

Information about the instances that were launched by the fleet. Supported * only for fleets of type instant.

*/ inline CreateFleetResponse& AddInstances(const CreateFleetInstance& value) { m_instances.push_back(value); return *this; } /** *

Information about the instances that were launched by the fleet. Supported * only for fleets of type instant.

*/ inline CreateFleetResponse& AddInstances(CreateFleetInstance&& value) { m_instances.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 CreateFleetResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateFleetResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_fleetId; Aws::Vector m_errors; Aws::Vector m_instances; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws