/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace mgn { namespace Model { class LaunchConfigurationTemplate { public: AWS_MGN_API LaunchConfigurationTemplate(); AWS_MGN_API LaunchConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue); AWS_MGN_API LaunchConfigurationTemplate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

ARN of the Launch Configuration Template.

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

ARN of the Launch Configuration Template.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

ARN of the Launch Configuration Template.

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

ARN of the Launch Configuration Template.

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

ARN of the Launch Configuration Template.

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

ARN of the Launch Configuration Template.

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

ARN of the Launch Configuration Template.

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

ARN of the Launch Configuration Template.

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

Associate public Ip address.

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

Associate public Ip address.

*/ inline bool AssociatePublicIpAddressHasBeenSet() const { return m_associatePublicIpAddressHasBeenSet; } /** *

Associate public Ip address.

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

Associate public Ip address.

*/ inline LaunchConfigurationTemplate& 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 bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; } /** *

Launch configuration template boot mode.

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

Launch configuration template boot mode.

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

Launch configuration template boot mode.

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

Launch configuration template boot mode.

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

Copy private Ip.

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

Copy private Ip.

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

Copy private Ip.

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

Copy private Ip.

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

Copy tags.

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

Copy tags.

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

Copy tags.

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

Copy tags.

*/ inline LaunchConfigurationTemplate& 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 bool Ec2LaunchTemplateIDHasBeenSet() const { return m_ec2LaunchTemplateIDHasBeenSet; } /** *

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

EC2 launch template ID.

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

Enable map auto tagging.

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

Enable map auto tagging.

*/ inline bool EnableMapAutoTaggingHasBeenSet() const { return m_enableMapAutoTaggingHasBeenSet; } /** *

Enable map auto tagging.

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

Enable map auto tagging.

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

Large volume config.

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

Large volume config.

*/ inline bool LargeVolumeConfHasBeenSet() const { return m_largeVolumeConfHasBeenSet; } /** *

Large volume config.

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

Large volume config.

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

Large volume config.

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

Large volume config.

*/ inline LaunchConfigurationTemplate& 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 bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; } /** *

ID of the Launch Configuration Template.

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

ID of the Launch Configuration Template.

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

ID of the Launch Configuration Template.

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

ID of the Launch Configuration Template.

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

ID of the Launch Configuration Template.

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

ID of the Launch Configuration Template.

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

Launch disposition.

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

Launch disposition.

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

Launch disposition.

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

Launch disposition.

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

Launch disposition.

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

Launch disposition.

*/ inline LaunchConfigurationTemplate& WithLaunchDisposition(LaunchDisposition&& value) { SetLaunchDisposition(std::move(value)); return *this;} inline const Licensing& GetLicensing() const{ return m_licensing; } inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; } inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; } inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); } inline LaunchConfigurationTemplate& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;} inline LaunchConfigurationTemplate& 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 bool MapAutoTaggingMpeIDHasBeenSet() const { return m_mapAutoTaggingMpeIDHasBeenSet; } /** *

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

*/ inline LaunchConfigurationTemplate& 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 bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; } /** *

Post Launch Actions of the Launch Configuration Template.

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

Post Launch Actions of the Launch Configuration Template.

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

Post Launch Actions of the Launch Configuration Template.

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

Post Launch Actions of the Launch Configuration Template.

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

Small volume config.

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

Small volume config.

*/ inline bool SmallVolumeConfHasBeenSet() const { return m_smallVolumeConfHasBeenSet; } /** *

Small volume config.

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

Small volume config.

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

Small volume config.

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

Small volume config.

*/ inline LaunchConfigurationTemplate& 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 bool SmallVolumeMaxSizeHasBeenSet() const { return m_smallVolumeMaxSizeHasBeenSet; } /** *

Small volume maximum size.

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

Small volume maximum size.

*/ inline LaunchConfigurationTemplate& 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 bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

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

Tags of the Launch Configuration Template.

*/ inline LaunchConfigurationTemplate& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; 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 bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; } /** *

Target instance type right-sizing method.

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

Target instance type right-sizing method.

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

Target instance type right-sizing method.

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

Target instance type right-sizing method.

*/ inline LaunchConfigurationTemplate& WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { SetTargetInstanceTypeRightSizingMethod(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } inline LaunchConfigurationTemplate& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline LaunchConfigurationTemplate& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline LaunchConfigurationTemplate& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; bool m_associatePublicIpAddress; bool m_associatePublicIpAddressHasBeenSet = false; BootMode m_bootMode; bool m_bootModeHasBeenSet = false; bool m_copyPrivateIp; bool m_copyPrivateIpHasBeenSet = false; bool m_copyTags; bool m_copyTagsHasBeenSet = false; Aws::String m_ec2LaunchTemplateID; bool m_ec2LaunchTemplateIDHasBeenSet = false; bool m_enableMapAutoTagging; bool m_enableMapAutoTaggingHasBeenSet = false; LaunchTemplateDiskConf m_largeVolumeConf; bool m_largeVolumeConfHasBeenSet = false; Aws::String m_launchConfigurationTemplateID; bool m_launchConfigurationTemplateIDHasBeenSet = false; LaunchDisposition m_launchDisposition; bool m_launchDispositionHasBeenSet = false; Licensing m_licensing; bool m_licensingHasBeenSet = false; Aws::String m_mapAutoTaggingMpeID; bool m_mapAutoTaggingMpeIDHasBeenSet = false; PostLaunchActions m_postLaunchActions; bool m_postLaunchActionsHasBeenSet = false; LaunchTemplateDiskConf m_smallVolumeConf; bool m_smallVolumeConfHasBeenSet = false; long long m_smallVolumeMaxSize; bool m_smallVolumeMaxSizeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws