/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace mgn { namespace Model { class GetLaunchConfigurationResult { public: AWS_MGN_API GetLaunchConfigurationResult(); AWS_MGN_API GetLaunchConfigurationResult(const Aws::AmazonWebServiceResult& result); AWS_MGN_API GetLaunchConfigurationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Launch configuration boot mode.

*/ inline const BootMode& GetBootMode() const{ return m_bootMode; } /** *

Launch configuration boot mode.

*/ inline void SetBootMode(const BootMode& value) { m_bootMode = value; } /** *

Launch configuration boot mode.

*/ inline void SetBootMode(BootMode&& value) { m_bootMode = std::move(value); } /** *

Launch configuration boot mode.

*/ inline GetLaunchConfigurationResult& WithBootMode(const BootMode& value) { SetBootMode(value); return *this;} /** *

Launch configuration boot mode.

*/ inline GetLaunchConfigurationResult& WithBootMode(BootMode&& value) { SetBootMode(std::move(value)); return *this;} /** *

Copy Private IP during Launch Configuration.

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

Copy Private IP during Launch Configuration.

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

Copy Private IP during Launch Configuration.

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

Copy Tags during Launch Configuration.

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

Copy Tags during Launch Configuration.

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

Copy Tags during Launch Configuration.

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

Launch configuration EC2 Launch template ID.

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

Launch configuration EC2 Launch template ID.

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

Launch configuration EC2 Launch template ID.

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

Launch configuration EC2 Launch template ID.

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

Launch configuration EC2 Launch template ID.

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

Launch configuration EC2 Launch template ID.

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

Launch configuration EC2 Launch template ID.

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

Enable map auto tagging.

*/ inline bool GetEnableMapAutoTagging() const{ return m_enableMapAutoTagging; } /** *

Enable map auto tagging.

*/ inline void SetEnableMapAutoTagging(bool value) { m_enableMapAutoTagging = value; } /** *

Enable map auto tagging.

*/ inline GetLaunchConfigurationResult& WithEnableMapAutoTagging(bool value) { SetEnableMapAutoTagging(value); return *this;} /** *

Launch disposition for launch configuration.

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

Launch disposition for launch configuration.

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

Launch disposition for launch configuration.

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

Launch disposition for launch configuration.

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

Launch disposition for launch configuration.

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

Launch configuration OS licensing.

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

Launch configuration OS licensing.

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

Launch configuration OS licensing.

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

Launch configuration OS licensing.

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

Launch configuration OS licensing.

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

Map auto tagging MPE ID.

*/ inline const Aws::String& GetMapAutoTaggingMpeID() const{ return m_mapAutoTaggingMpeID; } /** *

Map auto tagging MPE ID.

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

Map auto tagging MPE ID.

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

Map auto tagging MPE ID.

*/ inline void SetMapAutoTaggingMpeID(const char* value) { m_mapAutoTaggingMpeID.assign(value); } /** *

Map auto tagging MPE ID.

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

Map auto tagging MPE ID.

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

Map auto tagging MPE ID.

*/ inline GetLaunchConfigurationResult& WithMapAutoTaggingMpeID(const char* value) { SetMapAutoTaggingMpeID(value); return *this;} /** *

Launch configuration name.

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

Launch configuration name.

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

Launch configuration name.

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

Launch configuration name.

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

Launch configuration name.

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

Launch configuration name.

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

Launch configuration name.

*/ inline GetLaunchConfigurationResult& WithName(const char* value) { SetName(value); return *this;} inline const PostLaunchActions& GetPostLaunchActions() const{ return m_postLaunchActions; } inline void SetPostLaunchActions(const PostLaunchActions& value) { m_postLaunchActions = value; } inline void SetPostLaunchActions(PostLaunchActions&& value) { m_postLaunchActions = std::move(value); } inline GetLaunchConfigurationResult& WithPostLaunchActions(const PostLaunchActions& value) { SetPostLaunchActions(value); return *this;} inline GetLaunchConfigurationResult& WithPostLaunchActions(PostLaunchActions&& value) { SetPostLaunchActions(std::move(value)); return *this;} /** *

Launch configuration Source Server ID.

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

Launch configuration Source Server ID.

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

Launch configuration Source Server ID.

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

Launch configuration Source Server ID.

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

Launch configuration Source Server ID.

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

Launch configuration Source Server ID.

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

Launch configuration Source Server ID.

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

Launch configuration Target instance type right sizing method.

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

Launch configuration Target instance type right sizing method.

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

Launch configuration Target instance type right sizing method.

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

Launch configuration Target instance type right sizing method.

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

Launch configuration Target instance type right sizing method.

*/ 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: BootMode m_bootMode; bool m_copyPrivateIp; bool m_copyTags; Aws::String m_ec2LaunchTemplateID; bool m_enableMapAutoTagging; LaunchDisposition m_launchDisposition; Licensing m_licensing; Aws::String m_mapAutoTaggingMpeID; Aws::String m_name; PostLaunchActions m_postLaunchActions; Aws::String m_sourceServerID; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; Aws::String m_requestId; }; } // namespace Model } // namespace mgn } // namespace Aws