/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/mgn/Mgn_EXPORTS.h> #include <aws/mgn/MgnRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/mgn/model/BootMode.h> #include <aws/mgn/model/LaunchDisposition.h> #include <aws/mgn/model/Licensing.h> #include <aws/mgn/model/PostLaunchActions.h> #include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h> #include <utility> namespace Aws { namespace mgn { namespace Model { /** */ class UpdateLaunchConfigurationRequest : public MgnRequest { public: AWS_MGN_API UpdateLaunchConfigurationRequest(); // 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 "UpdateLaunchConfiguration"; } AWS_MGN_API Aws::String SerializePayload() const override; /** * <p>Update Launch configuration Account ID.</p> */ inline const Aws::String& GetAccountID() const{ return m_accountID; } /** * <p>Update Launch configuration Account ID.</p> */ inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; } /** * <p>Update Launch configuration Account ID.</p> */ inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; } /** * <p>Update Launch configuration Account ID.</p> */ inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); } /** * <p>Update Launch configuration Account ID.</p> */ inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); } /** * <p>Update Launch configuration Account ID.</p> */ inline UpdateLaunchConfigurationRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;} /** * <p>Update Launch configuration Account ID.</p> */ inline UpdateLaunchConfigurationRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;} /** * <p>Update Launch configuration Account ID.</p> */ inline UpdateLaunchConfigurationRequest& WithAccountID(const char* value) { SetAccountID(value); return *this;} /** * <p>Update Launch configuration boot mode request.</p> */ inline const BootMode& GetBootMode() const{ return m_bootMode; } /** * <p>Update Launch configuration boot mode request.</p> */ inline bool BootModeHasBeenSet() const { return m_bootModeHasBeenSet; } /** * <p>Update Launch configuration boot mode request.</p> */ inline void SetBootMode(const BootMode& value) { m_bootModeHasBeenSet = true; m_bootMode = value; } /** * <p>Update Launch configuration boot mode request.</p> */ inline void SetBootMode(BootMode&& value) { m_bootModeHasBeenSet = true; m_bootMode = std::move(value); } /** * <p>Update Launch configuration boot mode request.</p> */ inline UpdateLaunchConfigurationRequest& WithBootMode(const BootMode& value) { SetBootMode(value); return *this;} /** * <p>Update Launch configuration boot mode request.</p> */ inline UpdateLaunchConfigurationRequest& WithBootMode(BootMode&& value) { SetBootMode(std::move(value)); return *this;} /** * <p>Update Launch configuration copy Private IP request.</p> */ inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; } /** * <p>Update Launch configuration copy Private IP request.</p> */ inline bool CopyPrivateIpHasBeenSet() const { return m_copyPrivateIpHasBeenSet; } /** * <p>Update Launch configuration copy Private IP request.</p> */ inline void SetCopyPrivateIp(bool value) { m_copyPrivateIpHasBeenSet = true; m_copyPrivateIp = value; } /** * <p>Update Launch configuration copy Private IP request.</p> */ inline UpdateLaunchConfigurationRequest& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;} /** * <p>Update Launch configuration copy Tags request.</p> */ inline bool GetCopyTags() const{ return m_copyTags; } /** * <p>Update Launch configuration copy Tags request.</p> */ inline bool CopyTagsHasBeenSet() const { return m_copyTagsHasBeenSet; } /** * <p>Update Launch configuration copy Tags request.</p> */ inline void SetCopyTags(bool value) { m_copyTagsHasBeenSet = true; m_copyTags = value; } /** * <p>Update Launch configuration copy Tags request.</p> */ inline UpdateLaunchConfigurationRequest& WithCopyTags(bool value) { SetCopyTags(value); return *this;} /** * <p>Enable map auto tagging.</p> */ inline bool GetEnableMapAutoTagging() const{ return m_enableMapAutoTagging; } /** * <p>Enable map auto tagging.</p> */ inline bool EnableMapAutoTaggingHasBeenSet() const { return m_enableMapAutoTaggingHasBeenSet; } /** * <p>Enable map auto tagging.</p> */ inline void SetEnableMapAutoTagging(bool value) { m_enableMapAutoTaggingHasBeenSet = true; m_enableMapAutoTagging = value; } /** * <p>Enable map auto tagging.</p> */ inline UpdateLaunchConfigurationRequest& WithEnableMapAutoTagging(bool value) { SetEnableMapAutoTagging(value); return *this;} /** * <p>Update Launch configuration launch disposition request.</p> */ inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; } /** * <p>Update Launch configuration launch disposition request.</p> */ inline bool LaunchDispositionHasBeenSet() const { return m_launchDispositionHasBeenSet; } /** * <p>Update Launch configuration launch disposition request.</p> */ inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = value; } /** * <p>Update Launch configuration launch disposition request.</p> */ inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDispositionHasBeenSet = true; m_launchDisposition = std::move(value); } /** * <p>Update Launch configuration launch disposition request.</p> */ inline UpdateLaunchConfigurationRequest& WithLaunchDisposition(const LaunchDisposition& value) { SetLaunchDisposition(value); return *this;} /** * <p>Update Launch configuration launch disposition request.</p> */ inline UpdateLaunchConfigurationRequest& WithLaunchDisposition(LaunchDisposition&& value) { SetLaunchDisposition(std::move(value)); return *this;} /** * <p>Update Launch configuration licensing request.</p> */ inline const Licensing& GetLicensing() const{ return m_licensing; } /** * <p>Update Launch configuration licensing request.</p> */ inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; } /** * <p>Update Launch configuration licensing request.</p> */ inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; } /** * <p>Update Launch configuration licensing request.</p> */ inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); } /** * <p>Update Launch configuration licensing request.</p> */ inline UpdateLaunchConfigurationRequest& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;} /** * <p>Update Launch configuration licensing request.</p> */ inline UpdateLaunchConfigurationRequest& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;} /** * <p>Launch configuration map auto tagging MPE ID.</p> */ inline const Aws::String& GetMapAutoTaggingMpeID() const{ return m_mapAutoTaggingMpeID; } /** * <p>Launch configuration map auto tagging MPE ID.</p> */ inline bool MapAutoTaggingMpeIDHasBeenSet() const { return m_mapAutoTaggingMpeIDHasBeenSet; } /** * <p>Launch configuration map auto tagging MPE ID.</p> */ inline void SetMapAutoTaggingMpeID(const Aws::String& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = value; } /** * <p>Launch configuration map auto tagging MPE ID.</p> */ inline void SetMapAutoTaggingMpeID(Aws::String&& value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID = std::move(value); } /** * <p>Launch configuration map auto tagging MPE ID.</p> */ inline void SetMapAutoTaggingMpeID(const char* value) { m_mapAutoTaggingMpeIDHasBeenSet = true; m_mapAutoTaggingMpeID.assign(value); } /** * <p>Launch configuration map auto tagging MPE ID.</p> */ inline UpdateLaunchConfigurationRequest& WithMapAutoTaggingMpeID(const Aws::String& value) { SetMapAutoTaggingMpeID(value); return *this;} /** * <p>Launch configuration map auto tagging MPE ID.</p> */ inline UpdateLaunchConfigurationRequest& WithMapAutoTaggingMpeID(Aws::String&& value) { SetMapAutoTaggingMpeID(std::move(value)); return *this;} /** * <p>Launch configuration map auto tagging MPE ID.</p> */ inline UpdateLaunchConfigurationRequest& WithMapAutoTaggingMpeID(const char* value) { SetMapAutoTaggingMpeID(value); return *this;} /** * <p>Update Launch configuration name request.</p> */ inline const Aws::String& GetName() const{ return m_name; } /** * <p>Update Launch configuration name request.</p> */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** * <p>Update Launch configuration name request.</p> */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** * <p>Update Launch configuration name request.</p> */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** * <p>Update Launch configuration name request.</p> */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** * <p>Update Launch configuration name request.</p> */ inline UpdateLaunchConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** * <p>Update Launch configuration name request.</p> */ inline UpdateLaunchConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** * <p>Update Launch configuration name request.</p> */ inline UpdateLaunchConfigurationRequest& WithName(const char* value) { SetName(value); return *this;} inline const PostLaunchActions& GetPostLaunchActions() const{ return m_postLaunchActions; } inline bool PostLaunchActionsHasBeenSet() const { return m_postLaunchActionsHasBeenSet; } inline void SetPostLaunchActions(const PostLaunchActions& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = value; } inline void SetPostLaunchActions(PostLaunchActions&& value) { m_postLaunchActionsHasBeenSet = true; m_postLaunchActions = std::move(value); } inline UpdateLaunchConfigurationRequest& WithPostLaunchActions(const PostLaunchActions& value) { SetPostLaunchActions(value); return *this;} inline UpdateLaunchConfigurationRequest& WithPostLaunchActions(PostLaunchActions&& value) { SetPostLaunchActions(std::move(value)); return *this;} /** * <p>Update Launch configuration by Source Server ID request.</p> */ inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; } /** * <p>Update Launch configuration by Source Server ID request.</p> */ inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; } /** * <p>Update Launch configuration by Source Server ID request.</p> */ inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; } /** * <p>Update Launch configuration by Source Server ID request.</p> */ inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); } /** * <p>Update Launch configuration by Source Server ID request.</p> */ inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); } /** * <p>Update Launch configuration by Source Server ID request.</p> */ inline UpdateLaunchConfigurationRequest& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;} /** * <p>Update Launch configuration by Source Server ID request.</p> */ inline UpdateLaunchConfigurationRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;} /** * <p>Update Launch configuration by Source Server ID request.</p> */ inline UpdateLaunchConfigurationRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;} /** * <p>Update Launch configuration Target instance right sizing request.</p> */ inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; } /** * <p>Update Launch configuration Target instance right sizing request.</p> */ inline bool TargetInstanceTypeRightSizingMethodHasBeenSet() const { return m_targetInstanceTypeRightSizingMethodHasBeenSet; } /** * <p>Update Launch configuration Target instance right sizing request.</p> */ inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = value; } /** * <p>Update Launch configuration Target instance right sizing request.</p> */ inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethodHasBeenSet = true; m_targetInstanceTypeRightSizingMethod = std::move(value); } /** * <p>Update Launch configuration Target instance right sizing request.</p> */ inline UpdateLaunchConfigurationRequest& WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { SetTargetInstanceTypeRightSizingMethod(value); return *this;} /** * <p>Update Launch configuration Target instance right sizing request.</p> */ inline UpdateLaunchConfigurationRequest& WithTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { SetTargetInstanceTypeRightSizingMethod(std::move(value)); return *this;} private: Aws::String m_accountID; bool m_accountIDHasBeenSet = 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; LaunchDisposition m_launchDisposition; bool m_launchDispositionHasBeenSet = false; Licensing m_licensing; bool m_licensingHasBeenSet = false; Aws::String m_mapAutoTaggingMpeID; bool m_mapAutoTaggingMpeIDHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; PostLaunchActions m_postLaunchActions; bool m_postLaunchActionsHasBeenSet = false; Aws::String m_sourceServerID; bool m_sourceServerIDHasBeenSet = false; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws