/** * 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 EC2 { namespace Model { /** */ class DeleteFleetsRequest : public EC2Request { public: AWS_EC2_API DeleteFleetsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DeleteFleets"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline DeleteFleetsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The IDs of the EC2 Fleets.

*/ inline const Aws::Vector& GetFleetIds() const{ return m_fleetIds; } /** *

The IDs of the EC2 Fleets.

*/ inline bool FleetIdsHasBeenSet() const { return m_fleetIdsHasBeenSet; } /** *

The IDs of the EC2 Fleets.

*/ inline void SetFleetIds(const Aws::Vector& value) { m_fleetIdsHasBeenSet = true; m_fleetIds = value; } /** *

The IDs of the EC2 Fleets.

*/ inline void SetFleetIds(Aws::Vector&& value) { m_fleetIdsHasBeenSet = true; m_fleetIds = std::move(value); } /** *

The IDs of the EC2 Fleets.

*/ inline DeleteFleetsRequest& WithFleetIds(const Aws::Vector& value) { SetFleetIds(value); return *this;} /** *

The IDs of the EC2 Fleets.

*/ inline DeleteFleetsRequest& WithFleetIds(Aws::Vector&& value) { SetFleetIds(std::move(value)); return *this;} /** *

The IDs of the EC2 Fleets.

*/ inline DeleteFleetsRequest& AddFleetIds(const Aws::String& value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(value); return *this; } /** *

The IDs of the EC2 Fleets.

*/ inline DeleteFleetsRequest& AddFleetIds(Aws::String&& value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(std::move(value)); return *this; } /** *

The IDs of the EC2 Fleets.

*/ inline DeleteFleetsRequest& AddFleetIds(const char* value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(value); return *this; } /** *

Indicates whether to terminate the associated instances when the EC2 Fleet is * deleted. The default is to terminate the instances.

To let the instances * continue to run after the EC2 Fleet is deleted, specify * no-terminate-instances. Supported only for fleets of type * maintain and request.

For instant * fleets, you cannot specify NoTerminateInstances. A deleted * instant fleet with running instances is not supported.

*/ inline bool GetTerminateInstances() const{ return m_terminateInstances; } /** *

Indicates whether to terminate the associated instances when the EC2 Fleet is * deleted. The default is to terminate the instances.

To let the instances * continue to run after the EC2 Fleet is deleted, specify * no-terminate-instances. Supported only for fleets of type * maintain and request.

For instant * fleets, you cannot specify NoTerminateInstances. A deleted * instant fleet with running instances is not supported.

*/ inline bool TerminateInstancesHasBeenSet() const { return m_terminateInstancesHasBeenSet; } /** *

Indicates whether to terminate the associated instances when the EC2 Fleet is * deleted. The default is to terminate the instances.

To let the instances * continue to run after the EC2 Fleet is deleted, specify * no-terminate-instances. Supported only for fleets of type * maintain and request.

For instant * fleets, you cannot specify NoTerminateInstances. A deleted * instant fleet with running instances is not supported.

*/ inline void SetTerminateInstances(bool value) { m_terminateInstancesHasBeenSet = true; m_terminateInstances = value; } /** *

Indicates whether to terminate the associated instances when the EC2 Fleet is * deleted. The default is to terminate the instances.

To let the instances * continue to run after the EC2 Fleet is deleted, specify * no-terminate-instances. Supported only for fleets of type * maintain and request.

For instant * fleets, you cannot specify NoTerminateInstances. A deleted * instant fleet with running instances is not supported.

*/ inline DeleteFleetsRequest& WithTerminateInstances(bool value) { SetTerminateInstances(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::Vector m_fleetIds; bool m_fleetIdsHasBeenSet = false; bool m_terminateInstances; bool m_terminateInstancesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws