/** * 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 #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class CreateCapacityReservationFleetResponse { public: AWS_EC2_API CreateCapacityReservationFleetResponse(); AWS_EC2_API CreateCapacityReservationFleetResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API CreateCapacityReservationFleetResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the Capacity Reservation Fleet.

*/ inline const Aws::String& GetCapacityReservationFleetId() const{ return m_capacityReservationFleetId; } /** *

The ID of the Capacity Reservation Fleet.

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

The ID of the Capacity Reservation Fleet.

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

The ID of the Capacity Reservation Fleet.

*/ inline void SetCapacityReservationFleetId(const char* value) { m_capacityReservationFleetId.assign(value); } /** *

The ID of the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithCapacityReservationFleetId(const Aws::String& value) { SetCapacityReservationFleetId(value); return *this;} /** *

The ID of the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithCapacityReservationFleetId(Aws::String&& value) { SetCapacityReservationFleetId(std::move(value)); return *this;} /** *

The ID of the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithCapacityReservationFleetId(const char* value) { SetCapacityReservationFleetId(value); return *this;} /** *

The status of the Capacity Reservation Fleet.

*/ inline const CapacityReservationFleetState& GetState() const{ return m_state; } /** *

The status of the Capacity Reservation Fleet.

*/ inline void SetState(const CapacityReservationFleetState& value) { m_state = value; } /** *

The status of the Capacity Reservation Fleet.

*/ inline void SetState(CapacityReservationFleetState&& value) { m_state = std::move(value); } /** *

The status of the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithState(const CapacityReservationFleetState& value) { SetState(value); return *this;} /** *

The status of the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithState(CapacityReservationFleetState&& value) { SetState(std::move(value)); return *this;} /** *

The total number of capacity units for which the Capacity Reservation Fleet * reserves capacity.

*/ inline int GetTotalTargetCapacity() const{ return m_totalTargetCapacity; } /** *

The total number of capacity units for which the Capacity Reservation Fleet * reserves capacity.

*/ inline void SetTotalTargetCapacity(int value) { m_totalTargetCapacity = value; } /** *

The total number of capacity units for which the Capacity Reservation Fleet * reserves capacity.

*/ inline CreateCapacityReservationFleetResponse& WithTotalTargetCapacity(int value) { SetTotalTargetCapacity(value); return *this;} /** *

The requested capacity units that have been successfully reserved.

*/ inline double GetTotalFulfilledCapacity() const{ return m_totalFulfilledCapacity; } /** *

The requested capacity units that have been successfully reserved.

*/ inline void SetTotalFulfilledCapacity(double value) { m_totalFulfilledCapacity = value; } /** *

The requested capacity units that have been successfully reserved.

*/ inline CreateCapacityReservationFleetResponse& WithTotalFulfilledCapacity(double value) { SetTotalFulfilledCapacity(value); return *this;} /** *

The instance matching criteria for the Capacity Reservation Fleet.

*/ inline const FleetInstanceMatchCriteria& GetInstanceMatchCriteria() const{ return m_instanceMatchCriteria; } /** *

The instance matching criteria for the Capacity Reservation Fleet.

*/ inline void SetInstanceMatchCriteria(const FleetInstanceMatchCriteria& value) { m_instanceMatchCriteria = value; } /** *

The instance matching criteria for the Capacity Reservation Fleet.

*/ inline void SetInstanceMatchCriteria(FleetInstanceMatchCriteria&& value) { m_instanceMatchCriteria = std::move(value); } /** *

The instance matching criteria for the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithInstanceMatchCriteria(const FleetInstanceMatchCriteria& value) { SetInstanceMatchCriteria(value); return *this;} /** *

The instance matching criteria for the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithInstanceMatchCriteria(FleetInstanceMatchCriteria&& value) { SetInstanceMatchCriteria(std::move(value)); return *this;} /** *

The allocation strategy used by the Capacity Reservation Fleet.

*/ inline const Aws::String& GetAllocationStrategy() const{ return m_allocationStrategy; } /** *

The allocation strategy used by the Capacity Reservation Fleet.

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

The allocation strategy used by the Capacity Reservation Fleet.

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

The allocation strategy used by the Capacity Reservation Fleet.

*/ inline void SetAllocationStrategy(const char* value) { m_allocationStrategy.assign(value); } /** *

The allocation strategy used by the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithAllocationStrategy(const Aws::String& value) { SetAllocationStrategy(value); return *this;} /** *

The allocation strategy used by the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithAllocationStrategy(Aws::String&& value) { SetAllocationStrategy(std::move(value)); return *this;} /** *

The allocation strategy used by the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithAllocationStrategy(const char* value) { SetAllocationStrategy(value); return *this;} /** *

The date and time at which the Capacity Reservation Fleet was created.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The date and time at which the Capacity Reservation Fleet was created.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTime = value; } /** *

The date and time at which the Capacity Reservation Fleet was created.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTime = std::move(value); } /** *

The date and time at which the Capacity Reservation Fleet was created.

*/ inline CreateCapacityReservationFleetResponse& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The date and time at which the Capacity Reservation Fleet was created.

*/ inline CreateCapacityReservationFleetResponse& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The date and time at which the Capacity Reservation Fleet expires.

*/ inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; } /** *

The date and time at which the Capacity Reservation Fleet expires.

*/ inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDate = value; } /** *

The date and time at which the Capacity Reservation Fleet expires.

*/ inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDate = std::move(value); } /** *

The date and time at which the Capacity Reservation Fleet expires.

*/ inline CreateCapacityReservationFleetResponse& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;} /** *

The date and time at which the Capacity Reservation Fleet expires.

*/ inline CreateCapacityReservationFleetResponse& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;} /** *

Indicates the tenancy of Capacity Reservation Fleet.

*/ inline const FleetCapacityReservationTenancy& GetTenancy() const{ return m_tenancy; } /** *

Indicates the tenancy of Capacity Reservation Fleet.

*/ inline void SetTenancy(const FleetCapacityReservationTenancy& value) { m_tenancy = value; } /** *

Indicates the tenancy of Capacity Reservation Fleet.

*/ inline void SetTenancy(FleetCapacityReservationTenancy&& value) { m_tenancy = std::move(value); } /** *

Indicates the tenancy of Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithTenancy(const FleetCapacityReservationTenancy& value) { SetTenancy(value); return *this;} /** *

Indicates the tenancy of Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithTenancy(FleetCapacityReservationTenancy&& value) { SetTenancy(std::move(value)); return *this;} /** *

Information about the individual Capacity Reservations in the Capacity * Reservation Fleet.

*/ inline const Aws::Vector& GetFleetCapacityReservations() const{ return m_fleetCapacityReservations; } /** *

Information about the individual Capacity Reservations in the Capacity * Reservation Fleet.

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

Information about the individual Capacity Reservations in the Capacity * Reservation Fleet.

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

Information about the individual Capacity Reservations in the Capacity * Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithFleetCapacityReservations(const Aws::Vector& value) { SetFleetCapacityReservations(value); return *this;} /** *

Information about the individual Capacity Reservations in the Capacity * Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithFleetCapacityReservations(Aws::Vector&& value) { SetFleetCapacityReservations(std::move(value)); return *this;} /** *

Information about the individual Capacity Reservations in the Capacity * Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& AddFleetCapacityReservations(const FleetCapacityReservation& value) { m_fleetCapacityReservations.push_back(value); return *this; } /** *

Information about the individual Capacity Reservations in the Capacity * Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& AddFleetCapacityReservations(FleetCapacityReservation&& value) { m_fleetCapacityReservations.push_back(std::move(value)); return *this; } /** *

The tags assigned to the Capacity Reservation Fleet.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags assigned to the Capacity Reservation Fleet.

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

The tags assigned to the Capacity Reservation Fleet.

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

The tags assigned to the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags assigned to the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags assigned to the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

The tags assigned to the Capacity Reservation Fleet.

*/ inline CreateCapacityReservationFleetResponse& AddTags(Tag&& value) { m_tags.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 CreateCapacityReservationFleetResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateCapacityReservationFleetResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_capacityReservationFleetId; CapacityReservationFleetState m_state; int m_totalTargetCapacity; double m_totalFulfilledCapacity; FleetInstanceMatchCriteria m_instanceMatchCriteria; Aws::String m_allocationStrategy; Aws::Utils::DateTime m_createTime; Aws::Utils::DateTime m_endDate; FleetCapacityReservationTenancy m_tenancy; Aws::Vector m_fleetCapacityReservations; Aws::Vector m_tags; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws