/** * 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 drs { namespace Model { /** */ class TerminateRecoveryInstancesRequest : public DrsRequest { public: AWS_DRS_API TerminateRecoveryInstancesRequest(); // 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 "TerminateRecoveryInstances"; } AWS_DRS_API Aws::String SerializePayload() const override; /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline const Aws::Vector& GetRecoveryInstanceIDs() const{ return m_recoveryInstanceIDs; } /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline bool RecoveryInstanceIDsHasBeenSet() const { return m_recoveryInstanceIDsHasBeenSet; } /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline void SetRecoveryInstanceIDs(const Aws::Vector& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs = value; } /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline void SetRecoveryInstanceIDs(Aws::Vector&& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs = std::move(value); } /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline TerminateRecoveryInstancesRequest& WithRecoveryInstanceIDs(const Aws::Vector& value) { SetRecoveryInstanceIDs(value); return *this;} /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline TerminateRecoveryInstancesRequest& WithRecoveryInstanceIDs(Aws::Vector&& value) { SetRecoveryInstanceIDs(std::move(value)); return *this;} /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline TerminateRecoveryInstancesRequest& AddRecoveryInstanceIDs(const Aws::String& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs.push_back(value); return *this; } /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline TerminateRecoveryInstancesRequest& AddRecoveryInstanceIDs(Aws::String&& value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs.push_back(std::move(value)); return *this; } /** *

The IDs of the Recovery Instances that should be terminated.

*/ inline TerminateRecoveryInstancesRequest& AddRecoveryInstanceIDs(const char* value) { m_recoveryInstanceIDsHasBeenSet = true; m_recoveryInstanceIDs.push_back(value); return *this; } private: Aws::Vector m_recoveryInstanceIDs; bool m_recoveryInstanceIDsHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws