/** * 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 mgn { namespace Model { /** */ class UpdateLaunchConfigurationTemplateRequest : public MgnRequest { public: AWS_MGN_API UpdateLaunchConfigurationTemplateRequest(); // 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 "UpdateLaunchConfigurationTemplate"; } AWS_MGN_API Aws::String SerializePayload() const override; /** *

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 UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& WithBootMode(const BootMode& value) { SetBootMode(value); return *this;} /** *

Launch configuration template boot mode.

*/ inline UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& WithCopyTags(bool value) { SetCopyTags(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 UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& WithLargeVolumeConf(const LaunchTemplateDiskConf& value) { SetLargeVolumeConf(value); return *this;} /** *

Large volume config.

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

Launch Configuration Template ID.

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

Launch Configuration Template ID.

*/ inline bool LaunchConfigurationTemplateIDHasBeenSet() const { return m_launchConfigurationTemplateIDHasBeenSet; } /** *

Launch Configuration Template ID.

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

Launch Configuration Template ID.

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

Launch Configuration Template ID.

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

Launch Configuration Template ID.

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

Launch Configuration Template ID.

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

Launch Configuration Template ID.

*/ inline UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& WithLaunchDisposition(const LaunchDisposition& value) { SetLaunchDisposition(value); return *this;} /** *

Launch disposition.

*/ inline UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;} inline UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& WithMapAutoTaggingMpeID(const Aws::String& value) { SetMapAutoTaggingMpeID(value); return *this;} /** *

Launch configuration template map auto tagging MPE ID.

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

Launch configuration template map auto tagging MPE ID.

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

Post Launch Action to execute on the Test or Cutover instance.

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

Post Launch Action to execute on the Test or Cutover instance.

*/ inline bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; } /** *

Post Launch Action to execute on the Test or Cutover instance.

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

Post Launch Action to execute on the Test or Cutover instance.

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

Post Launch Action to execute on the Test or Cutover instance.

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

Post Launch Action to execute on the Test or Cutover instance.

*/ inline UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& WithSmallVolumeConf(const LaunchTemplateDiskConf& value) { SetSmallVolumeConf(value); return *this;} /** *

Small volume config.

*/ inline UpdateLaunchConfigurationTemplateRequest& 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 UpdateLaunchConfigurationTemplateRequest& WithSmallVolumeMaxSize(long long value) { SetSmallVolumeMaxSize(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 UpdateLaunchConfigurationTemplateRequest& WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { SetTargetInstanceTypeRightSizingMethod(value); return *this;} /** *

Target instance type right-sizing method.

*/ inline UpdateLaunchConfigurationTemplateRequest& WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { SetTargetInstanceTypeRightSizingMethod(std::move(value)); return *this;} private: 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; 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; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws