/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace drs { namespace Model { class GetLaunchConfigurationResult { public: AWS_DRS_API GetLaunchConfigurationResult(); AWS_DRS_API GetLaunchConfigurationResult(const Aws::AmazonWebServiceResult& result); AWS_DRS_API GetLaunchConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetCopyPrivateIp(bool value) { m_copyPrivateIp = value; } /** *

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

*/ inline GetLaunchConfigurationResult& 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 void SetCopyTags(bool value) { m_copyTags = value; } /** *

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

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

The EC2 launch template ID of this launch configuration.

*/ inline const Aws::String& GetEc2LaunchTemplateID() const{ return m_ec2LaunchTemplateID; } /** *

The EC2 launch template ID of this launch configuration.

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

The EC2 launch template ID of this launch configuration.

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

The EC2 launch template ID of this launch configuration.

*/ inline void SetEc2LaunchTemplateID(const char* value) { m_ec2LaunchTemplateID.assign(value); } /** *

The EC2 launch template ID of this launch configuration.

*/ inline GetLaunchConfigurationResult& WithEc2LaunchTemplateID(const Aws::String& value) { SetEc2LaunchTemplateID(value); return *this;} /** *

The EC2 launch template ID of this launch configuration.

*/ inline GetLaunchConfigurationResult& WithEc2LaunchTemplateID(Aws::String&& value) { SetEc2LaunchTemplateID(std::move(value)); return *this;} /** *

The EC2 launch template ID of this launch configuration.

*/ inline GetLaunchConfigurationResult& WithEc2LaunchTemplateID(const char* value) { SetEc2LaunchTemplateID(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 void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDisposition = value; } /** *

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

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

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

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

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

*/ inline GetLaunchConfigurationResult& 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 void SetLicensing(const Licensing& value) { m_licensing = value; } /** *

The licensing configuration to be used for this launch configuration.

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

The licensing configuration to be used for this launch configuration.

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

The licensing configuration to be used for this launch configuration.

*/ inline GetLaunchConfigurationResult& 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 void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the launch configuration.

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

The name of the launch configuration.

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

The name of the launch configuration.

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

The name of the launch configuration.

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

The name of the launch configuration.

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

The ID of the Source Server for this launch configuration.

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

The ID of the Source Server for this launch configuration.

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

The ID of the Source Server for this launch configuration.

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

The ID of the Source Server for this launch configuration.

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

The ID of the Source Server for this launch configuration.

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

The ID of the Source Server for this launch configuration.

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

The ID of the Source Server for this launch configuration.

*/ inline GetLaunchConfigurationResult& 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 void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { 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_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 GetLaunchConfigurationResult& 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 GetLaunchConfigurationResult& WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { SetTargetInstanceTypeRightSizingMethod(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetLaunchConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetLaunchConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetLaunchConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_copyPrivateIp; bool m_copyTags; Aws::String m_ec2LaunchTemplateID; LaunchDisposition m_launchDisposition; Licensing m_licensing; Aws::String m_name; Aws::String m_sourceServerID; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; Aws::String m_requestId; }; } // namespace Model } // namespace drs } // namespace Aws