/** * 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/core/utils/memory/stl/AWSString.h> #include <aws/mgn/model/BootMode.h> #include <aws/mgn/model/LaunchTemplateDiskConf.h> #include <aws/mgn/model/LaunchDisposition.h> #include <aws/mgn/model/Licensing.h> #include <aws/mgn/model/PostLaunchActions.h> #include <aws/core/utils/memory/stl/AWSMap.h> #include <aws/mgn/model/TargetInstanceTypeRightSizingMethod.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace mgn { namespace Model { class UpdateLaunchConfigurationTemplateResult { public: AWS_MGN_API UpdateLaunchConfigurationTemplateResult(); AWS_MGN_API UpdateLaunchConfigurationTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); AWS_MGN_API UpdateLaunchConfigurationTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); /** * <p>ARN of the Launch Configuration Template.</p> */ inline const Aws::String& GetArn() const{ return m_arn; } /** * <p>ARN of the Launch Configuration Template.</p> */ inline void SetArn(const Aws::String& value) { m_arn = value; } /** * <p>ARN of the Launch Configuration Template.</p> */ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** * <p>ARN of the Launch Configuration Template.</p> */ inline void SetArn(const char* value) { m_arn.assign(value); } /** * <p>ARN of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** * <p>ARN of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** * <p>ARN of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithArn(const char* value) { SetArn(value); return *this;} /** * <p>Associate public Ip address.</p> */ inline bool GetAssociatePublicIpAddress() const{ return m_associatePublicIpAddress; } /** * <p>Associate public Ip address.</p> */ inline void SetAssociatePublicIpAddress(bool value) { m_associatePublicIpAddress = value; } /** * <p>Associate public Ip address.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithAssociatePublicIpAddress(bool value) { SetAssociatePublicIpAddress(value); return *this;} /** * <p>Launch configuration template boot mode.</p> */ inline const BootMode& GetBootMode() const{ return m_bootMode; } /** * <p>Launch configuration template boot mode.</p> */ inline void SetBootMode(const BootMode& value) { m_bootMode = value; } /** * <p>Launch configuration template boot mode.</p> */ inline void SetBootMode(BootMode&& value) { m_bootMode = std::move(value); } /** * <p>Launch configuration template boot mode.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithBootMode(const BootMode& value) { SetBootMode(value); return *this;} /** * <p>Launch configuration template boot mode.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithBootMode(BootMode&& value) { SetBootMode(std::move(value)); return *this;} /** * <p>Copy private Ip.</p> */ inline bool GetCopyPrivateIp() const{ return m_copyPrivateIp; } /** * <p>Copy private Ip.</p> */ inline void SetCopyPrivateIp(bool value) { m_copyPrivateIp = value; } /** * <p>Copy private Ip.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithCopyPrivateIp(bool value) { SetCopyPrivateIp(value); return *this;} /** * <p>Copy tags.</p> */ inline bool GetCopyTags() const{ return m_copyTags; } /** * <p>Copy tags.</p> */ inline void SetCopyTags(bool value) { m_copyTags = value; } /** * <p>Copy tags.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithCopyTags(bool value) { SetCopyTags(value); return *this;} /** * <p>EC2 launch template ID.</p> */ inline const Aws::String& GetEc2LaunchTemplateID() const{ return m_ec2LaunchTemplateID; } /** * <p>EC2 launch template ID.</p> */ inline void SetEc2LaunchTemplateID(const Aws::String& value) { m_ec2LaunchTemplateID = value; } /** * <p>EC2 launch template ID.</p> */ inline void SetEc2LaunchTemplateID(Aws::String&& value) { m_ec2LaunchTemplateID = std::move(value); } /** * <p>EC2 launch template ID.</p> */ inline void SetEc2LaunchTemplateID(const char* value) { m_ec2LaunchTemplateID.assign(value); } /** * <p>EC2 launch template ID.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithEc2LaunchTemplateID(const Aws::String& value) { SetEc2LaunchTemplateID(value); return *this;} /** * <p>EC2 launch template ID.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithEc2LaunchTemplateID(Aws::String&& value) { SetEc2LaunchTemplateID(std::move(value)); return *this;} /** * <p>EC2 launch template ID.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithEc2LaunchTemplateID(const char* value) { SetEc2LaunchTemplateID(value); return *this;} /** * <p>Enable map auto tagging.</p> */ inline bool GetEnableMapAutoTagging() const{ return m_enableMapAutoTagging; } /** * <p>Enable map auto tagging.</p> */ inline void SetEnableMapAutoTagging(bool value) { m_enableMapAutoTagging = value; } /** * <p>Enable map auto tagging.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithEnableMapAutoTagging(bool value) { SetEnableMapAutoTagging(value); return *this;} /** * <p>Large volume config.</p> */ inline const LaunchTemplateDiskConf& GetLargeVolumeConf() const{ return m_largeVolumeConf; } /** * <p>Large volume config.</p> */ inline void SetLargeVolumeConf(const LaunchTemplateDiskConf& value) { m_largeVolumeConf = value; } /** * <p>Large volume config.</p> */ inline void SetLargeVolumeConf(LaunchTemplateDiskConf&& value) { m_largeVolumeConf = std::move(value); } /** * <p>Large volume config.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithLargeVolumeConf(const LaunchTemplateDiskConf& value) { SetLargeVolumeConf(value); return *this;} /** * <p>Large volume config.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithLargeVolumeConf(LaunchTemplateDiskConf&& value) { SetLargeVolumeConf(std::move(value)); return *this;} /** * <p>ID of the Launch Configuration Template.</p> */ inline const Aws::String& GetLaunchConfigurationTemplateID() const{ return m_launchConfigurationTemplateID; } /** * <p>ID of the Launch Configuration Template.</p> */ inline void SetLaunchConfigurationTemplateID(const Aws::String& value) { m_launchConfigurationTemplateID = value; } /** * <p>ID of the Launch Configuration Template.</p> */ inline void SetLaunchConfigurationTemplateID(Aws::String&& value) { m_launchConfigurationTemplateID = std::move(value); } /** * <p>ID of the Launch Configuration Template.</p> */ inline void SetLaunchConfigurationTemplateID(const char* value) { m_launchConfigurationTemplateID.assign(value); } /** * <p>ID of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithLaunchConfigurationTemplateID(const Aws::String& value) { SetLaunchConfigurationTemplateID(value); return *this;} /** * <p>ID of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithLaunchConfigurationTemplateID(Aws::String&& value) { SetLaunchConfigurationTemplateID(std::move(value)); return *this;} /** * <p>ID of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithLaunchConfigurationTemplateID(const char* value) { SetLaunchConfigurationTemplateID(value); return *this;} /** * <p>Launch disposition.</p> */ inline const LaunchDisposition& GetLaunchDisposition() const{ return m_launchDisposition; } /** * <p>Launch disposition.</p> */ inline void SetLaunchDisposition(const LaunchDisposition& value) { m_launchDisposition = value; } /** * <p>Launch disposition.</p> */ inline void SetLaunchDisposition(LaunchDisposition&& value) { m_launchDisposition = std::move(value); } /** * <p>Launch disposition.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithLaunchDisposition(const LaunchDisposition& value) { SetLaunchDisposition(value); return *this;} /** * <p>Launch disposition.</p> */ inline UpdateLaunchConfigurationTemplateResult& 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 UpdateLaunchConfigurationTemplateResult& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;} inline UpdateLaunchConfigurationTemplateResult& WithLicensing(Licensing&& value) { SetLicensing(std::move(value)); return *this;} /** * <p>Launch configuration template map auto tagging MPE ID.</p> */ inline const Aws::String& GetMapAutoTaggingMpeID() const{ return m_mapAutoTaggingMpeID; } /** * <p>Launch configuration template map auto tagging MPE ID.</p> */ inline void SetMapAutoTaggingMpeID(const Aws::String& value) { m_mapAutoTaggingMpeID = value; } /** * <p>Launch configuration template map auto tagging MPE ID.</p> */ inline void SetMapAutoTaggingMpeID(Aws::String&& value) { m_mapAutoTaggingMpeID = std::move(value); } /** * <p>Launch configuration template map auto tagging MPE ID.</p> */ inline void SetMapAutoTaggingMpeID(const char* value) { m_mapAutoTaggingMpeID.assign(value); } /** * <p>Launch configuration template map auto tagging MPE ID.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithMapAutoTaggingMpeID(const Aws::String& value) { SetMapAutoTaggingMpeID(value); return *this;} /** * <p>Launch configuration template map auto tagging MPE ID.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithMapAutoTaggingMpeID(Aws::String&& value) { SetMapAutoTaggingMpeID(std::move(value)); return *this;} /** * <p>Launch configuration template map auto tagging MPE ID.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithMapAutoTaggingMpeID(const char* value) { SetMapAutoTaggingMpeID(value); return *this;} /** * <p>Post Launch Actions of the Launch Configuration Template.</p> */ inline const PostLaunchActions& GetPostLaunchActions() const{ return m_postLaunchActions; } /** * <p>Post Launch Actions of the Launch Configuration Template.</p> */ inline void SetPostLaunchActions(const PostLaunchActions& value) { m_postLaunchActions = value; } /** * <p>Post Launch Actions of the Launch Configuration Template.</p> */ inline void SetPostLaunchActions(PostLaunchActions&& value) { m_postLaunchActions = std::move(value); } /** * <p>Post Launch Actions of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithPostLaunchActions(const PostLaunchActions& value) { SetPostLaunchActions(value); return *this;} /** * <p>Post Launch Actions of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithPostLaunchActions(PostLaunchActions&& value) { SetPostLaunchActions(std::move(value)); return *this;} /** * <p>Small volume config.</p> */ inline const LaunchTemplateDiskConf& GetSmallVolumeConf() const{ return m_smallVolumeConf; } /** * <p>Small volume config.</p> */ inline void SetSmallVolumeConf(const LaunchTemplateDiskConf& value) { m_smallVolumeConf = value; } /** * <p>Small volume config.</p> */ inline void SetSmallVolumeConf(LaunchTemplateDiskConf&& value) { m_smallVolumeConf = std::move(value); } /** * <p>Small volume config.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithSmallVolumeConf(const LaunchTemplateDiskConf& value) { SetSmallVolumeConf(value); return *this;} /** * <p>Small volume config.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithSmallVolumeConf(LaunchTemplateDiskConf&& value) { SetSmallVolumeConf(std::move(value)); return *this;} /** * <p>Small volume maximum size.</p> */ inline long long GetSmallVolumeMaxSize() const{ return m_smallVolumeMaxSize; } /** * <p>Small volume maximum size.</p> */ inline void SetSmallVolumeMaxSize(long long value) { m_smallVolumeMaxSize = value; } /** * <p>Small volume maximum size.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithSmallVolumeMaxSize(long long value) { SetSmallVolumeMaxSize(value); return *this;} /** * <p>Tags of the Launch Configuration Template.</p> */ inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; } /** * <p>Tags of the Launch Configuration Template.</p> */ inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; } /** * <p>Tags of the Launch Configuration Template.</p> */ inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); } /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;} /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;} /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** * <p>Tags of the Launch Configuration Template.</p> */ inline UpdateLaunchConfigurationTemplateResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** * <p>Target instance type right-sizing method.</p> */ inline const TargetInstanceTypeRightSizingMethod& GetTargetInstanceTypeRightSizingMethod() const{ return m_targetInstanceTypeRightSizingMethod; } /** * <p>Target instance type right-sizing method.</p> */ inline void SetTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { m_targetInstanceTypeRightSizingMethod = value; } /** * <p>Target instance type right-sizing method.</p> */ inline void SetTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod&& value) { m_targetInstanceTypeRightSizingMethod = std::move(value); } /** * <p>Target instance type right-sizing method.</p> */ inline UpdateLaunchConfigurationTemplateResult& WithTargetInstanceTypeRightSizingMethod(const TargetInstanceTypeRightSizingMethod& value) { SetTargetInstanceTypeRightSizingMethod(value); return *this;} /** * <p>Target instance type right-sizing method.</p> */ inline UpdateLaunchConfigurationTemplateResult& 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 UpdateLaunchConfigurationTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateLaunchConfigurationTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateLaunchConfigurationTemplateResult& 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<Aws::String, Aws::String> m_tags; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; Aws::String m_requestId; }; } // namespace Model } // namespace mgn } // namespace Aws