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

ARN of the Launch Configuration Template.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

ARN of the Launch Configuration Template.

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

ARN of the Launch Configuration Template.

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

ARN of the Launch Configuration Template.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

ARN of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

ARN of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

ARN of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

Associate public Ip address.

*/ inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; } /** *

Associate public Ip address.

*/ inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddress = value; } /** *

Associate public Ip address.

*/ inline CreateLaunchConfigurationTemplateResult& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;} /** *

Launch configuration template boot mode.

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

Launch configuration template boot mode.

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

Launch configuration template boot mode.

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

Launch configuration template boot mode.

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

Launch configuration template boot mode.

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

Copy private Ip.

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

Copy private Ip.

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

Copy private Ip.

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

Copy tags.

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

Copy tags.

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

Copy tags.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

*/ inline CreateLaunchConfigurationTemplateResult& 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 CreateLaunchConfigurationTemplateResult& WithEnableMapAutoTagging(bool value) { SetEnableMapAutoTagging(value); return *this;} /** *

Large volume config.

*/ inline const LaunchTemplateDiskConf& GetLargeVolumeConf() const{ return m_largeVolumeConf; } /** *

Large volume config.

*/ inline void SetLargeVolumeConf(const LaunchTemplateDiskConf& value) { m_largeVolumeConf = value; } /** *

Large volume config.

*/ inline void SetLargeVolumeConf(LaunchTemplateDiskConf&& value) { m_largeVolumeConf = std::move(value); } /** *

Large volume config.

*/ inline CreateLaunchConfigurationTemplateResult& WithLargeVolumeConf(const LaunchTemplateDiskConf& value) { SetLargeVolumeConf(value); return *this;} /** *

Large volume config.

*/ inline CreateLaunchConfigurationTemplateResult& WithLargeVolumeConf(LaunchTemplateDiskConf&& value) { SetLargeVolumeConf(std::move(value)); return *this;} /** *

ID of the Launch Configuration Template.

*/ inline const Aws::String& GetLaunchConfigurationTemplateID() const{ return m_launchConfigurationTemplateID; } /** *

ID of the Launch Configuration Template.

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

ID of the Launch Configuration Template.

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

ID of the Launch Configuration Template.

*/ inline void SetLaunchConfigurationTemplateID(const char* value) { m_launchConfigurationTemplateID.assign(value); } /** *

ID of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithLaunchConfigurationTemplateID(const Aws::String& value) { SetLaunchConfigurationTemplateID(value); return *this;} /** *

ID of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithLaunchConfigurationTemplateID(Aws::String&& value) { SetLaunchConfigurationTemplateID(std::move(value)); return *this;} /** *

ID of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithLaunchConfigurationTemplateID(const char* value) { SetLaunchConfigurationTemplateID(value); return *this;} /** *

Launch disposition.

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

Launch disposition.

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

Launch disposition.

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

Launch disposition.

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

Launch disposition.

*/ inline CreateLaunchConfigurationTemplateResult& WithLaunchDisposition(LaunchDisposition&& value) { SetLaunchDisposition(std::move(value)); return *this;} inline const Licensing& GetLicensing() const{ return m_licensing; } inline void SetLicensing(const Licensing& value) { m_licensing = value; } inline void SetLicensing(Licensing&& value) { m_licensing = std::move(value); } inline CreateLaunchConfigurationTemplateResult& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;} inline CreateLaunchConfigurationTemplateResult& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;} /** *

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Post Launch Actions of the Launch Configuration Template.

*/ inline const PostLaunchActions& GetPostLaunchActions() const{ return m_postLaunchActions; } /** *

Post Launch Actions of the Launch Configuration Template.

*/ inline void SetPostLaunchActions(const PostLaunchActions& value) { m_postLaunchActions = value; } /** *

Post Launch Actions of the Launch Configuration Template.

*/ inline void SetPostLaunchActions(PostLaunchActions&& value) { m_postLaunchActions = std::move(value); } /** *

Post Launch Actions of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithPostLaunchActions(const PostLaunchActions& value) { SetPostLaunchActions(value); return *this;} /** *

Post Launch Actions of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithPostLaunchActions(PostLaunchActions&& value) { SetPostLaunchActions(std::move(value)); return *this;} /** *

Small volume config.

*/ inline const LaunchTemplateDiskConf& GetSmallVolumeConf() const{ return m_smallVolumeConf; } /** *

Small volume config.

*/ inline void SetSmallVolumeConf(const LaunchTemplateDiskConf& value) { m_smallVolumeConf = value; } /** *

Small volume config.

*/ inline void SetSmallVolumeConf(LaunchTemplateDiskConf&& value) { m_smallVolumeConf = std::move(value); } /** *

Small volume config.

*/ inline CreateLaunchConfigurationTemplateResult& WithSmallVolumeConf(const LaunchTemplateDiskConf& value) { SetSmallVolumeConf(value); return *this;} /** *

Small volume config.

*/ inline CreateLaunchConfigurationTemplateResult& WithSmallVolumeConf(LaunchTemplateDiskConf&& value) { SetSmallVolumeConf(std::move(value)); return *this;} /** *

Small volume maximum size.

*/ inline long long GetSmallVolumeMaxSize() const{ return m_smallVolumeMaxSize; } /** *

Small volume maximum size.

*/ inline void SetSmallVolumeMaxSize(long long value) { m_smallVolumeMaxSize = value; } /** *

Small volume maximum size.

*/ inline CreateLaunchConfigurationTemplateResult& WithSmallVolumeMaxSize(long long value) { SetSmallVolumeMaxSize(value); return *this;} /** *

Tags of the Launch Configuration Template.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags of the Launch Configuration Template.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

Tags of the Launch Configuration Template.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

Tags of the Launch Configuration Template.

*/ inline CreateLaunchConfigurationTemplateResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

Target instance type right-sizing method.

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

Target instance type right-sizing method.

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

Target instance type right-sizing method.

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

Target instance type right-sizing method.

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

Target instance type right-sizing method.

*/ inline CreateLaunchConfigurationTemplateResult& 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 CreateLaunchConfigurationTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateLaunchConfigurationTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateLaunchConfigurationTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; bool m_associatePublicIpAddress; BootMode m_bootMode; bool m_copyPrivateIp; bool m_copyTags; Aws::String m_ec2LaunchTemplateID; bool m_enableMapAutoTagging; LaunchTemplateDiskConf m_largeVolumeConf; Aws::String m_launchConfigurationTemplateID; LaunchDisposition m_launchDisposition; Licensing m_licensing; Aws::String m_mapAutoTaggingMpeID; PostLaunchActions m_postLaunchActions; LaunchTemplateDiskConf m_smallVolumeConf; long long m_smallVolumeMaxSize; Aws::Map m_tags; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; Aws::String m_requestId; }; } // namespace Model } // namespace mgn } // namespace Aws