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

Whether we should copy the Private IP of the Source Server to the Recovery * Instance.

*/ inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; } /** *

Whether we should copy the Private IP of the Source Server to the Recovery * Instance.

*/ inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; } /** *

Whether we should copy the Private IP of the Source Server to the Recovery * Instance.

*/ inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; } /** *

Whether we should copy the Private IP of the Source Server to the Recovery * Instance.

*/ inline UpdateLaunchConfigurationRequest& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;} /** *

Whether we want to copy the tags of the Source Server to the EC2 machine of * the Recovery Instance.

*/ inline bool GetCopyTags() const{ return m_copyTags; } /** *

Whether we want to copy the tags of the Source Server to the EC2 machine of * the Recovery Instance.

*/ inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; } /** *

Whether we want to copy the tags of the Source Server to the EC2 machine of * the Recovery Instance.

*/ inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; } /** *

Whether we want to copy the tags of the Source Server to the EC2 machine of * the Recovery Instance.

*/ inline UpdateLaunchConfigurationRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;} /** *

The state of the Recovery Instance in EC2 after the recovery operation.

*/ inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; } /** *

The state of the Recovery Instance in EC2 after the recovery operation.

*/ inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; } /** *

The state of the Recovery Instance in EC2 after the recovery operation.

*/ inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; } /** *

The state of the Recovery Instance in EC2 after the recovery operation.

*/ inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = std::move(value); } /** *

The state of the Recovery Instance in EC2 after the recovery operation.

*/ inline UpdateLaunchConfigurationRequest& WithLaunchDisposition(const LaunchDisposition& value) { SetLaunchDisposition(value); return *this;} /** *

The state of the Recovery Instance in EC2 after the recovery operation.

*/ inline UpdateLaunchConfigurationRequest& WithLaunchDisposition(LaunchDisposition&& value) { SetLaunchDisposition(std::move(value)); return *this;} /** *

The licensing configuration to be used for this launch configuration.

*/ inline const Licensing& GetLicensing() const{ return m_licensing; } /** *

The licensing configuration to be used for this launch configuration.

*/ inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; } /** *

The licensing configuration to be used for this launch configuration.

*/ inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; } /** *

The licensing configuration to be used for this launch configuration.

*/ inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); } /** *

The licensing configuration to be used for this launch configuration.

*/ inline UpdateLaunchConfigurationRequest& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;} /** *

The licensing configuration to be used for this launch configuration.

*/ inline UpdateLaunchConfigurationRequest& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;} /** *

The name of the launch configuration.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the launch configuration.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the launch configuration.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the launch configuration.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the launch configuration.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the launch configuration.

*/ inline UpdateLaunchConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the launch configuration.

*/ inline UpdateLaunchConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the launch configuration.

*/ inline UpdateLaunchConfigurationRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The ID of the Source Server that we want to retrieve a Launch Configuration * for.

*/ inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; } /** *

The ID of the Source Server that we want to retrieve a Launch Configuration * for.

*/ inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; } /** *

The ID of the Source Server that we want to retrieve a Launch Configuration * for.

*/ inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; } /** *

The ID of the Source Server that we want to retrieve a Launch Configuration * for.

*/ inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); } /** *

The ID of the Source Server that we want to retrieve a Launch Configuration * for.

*/ inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); } /** *

The ID of the Source Server that we want to retrieve a Launch Configuration * for.

*/ inline UpdateLaunchConfigurationRequest& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;} /** *

The ID of the Source Server that we want to retrieve a Launch Configuration * for.

*/ inline UpdateLaunchConfigurationRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;} /** *

The ID of the Source Server that we want to retrieve a Launch Configuration * for.

*/ inline UpdateLaunchConfigurationRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;} /** *

Whether Elastic Disaster Recovery should try to automatically choose the * instance type that best matches the OS, CPU, and RAM of your Source Server.

*/ inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; } /** *

Whether Elastic Disaster Recovery should try to automatically choose the * instance type that best matches the OS, CPU, and RAM of your Source Server.

*/ inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; } /** *

Whether Elastic Disaster Recovery should try to automatically choose the * instance type that best matches the OS, CPU, and RAM of your Source Server.

*/ inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; } /** *

Whether Elastic Disaster Recovery should try to automatically choose the * instance type that best matches the OS, CPU, and RAM of your Source Server.

*/ inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = std::move(value); } /** *

Whether Elastic Disaster Recovery should try to automatically choose the * instance type that best matches the OS, CPU, and RAM of your Source Server.

*/ inline UpdateLaunchConfigurationRequest& WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { SetTargetInstanceTypeRightSizingMethod(value); return *this;} /** *

Whether Elastic Disaster Recovery should try to automatically choose the * instance type that best matches the OS, CPU, and RAM of your Source Server.

*/ inline UpdateLaunchConfigurationRequest& WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { SetTargetInstanceTypeRightSizingMethod(std::move(value)); return *this;} private: bool m_copyPrivateIp; bool m_copyPrivateIpHasBeenSet = false; bool m_copyTags; bool m_copyTagsHasBeenSet = false; LaunchDisposition m_launchDisposition; bool m_launchDispositionHasBeenSet = false; Licensing m_licensing; bool m_licensingHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_sourceServerID; bool m_sourceServerIDHasBeenSet = false; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws