/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace drs { namespace Model { /** *

Account level Launch Configuration Template.

See Also:

AWS * API Reference

*/ class LaunchConfigurationTemplate { public: AWS_DRS_API LaunchConfigurationTemplate(); AWS_DRS_API LaunchConfigurationTemplate(Aws::Utils::Json::JsonView jsonValue); AWS_DRS_API LaunchConfigurationTemplate& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DRS_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;} /** *

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;} /** *

S3 bucket ARN to export Source Network templates.

*/ inline const Aws::String& GetExportBucketArn() const{ return m_exportBucketArn; } /** *

S3 bucket ARN to export Source Network templates.

*/ inline bool ExportBucketArnHasBeenSet() const { return m_exportBucketArnHasBeenSet; } /** *

S3 bucket ARN to export Source Network templates.

*/ inline void SetExportBucketArn(const Aws::String& value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn = value; } /** *

S3 bucket ARN to export Source Network templates.

*/ inline void SetExportBucketArn(Aws::String&& value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn = std::move(value); } /** *

S3 bucket ARN to export Source Network templates.

*/ inline void SetExportBucketArn(const char* value) { m_exportBucketArnHasBeenSet = true; m_exportBucketArn.assign(value); } /** *

S3 bucket ARN to export Source Network templates.

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

S3 bucket ARN to export Source Network templates.

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

S3 bucket ARN to export Source Network templates.

*/ inline LaunchConfigurationTemplate& WithExportBucketArn(const char* value) { SetExportBucketArn(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;} /** *

Licensing.

*/ inline const Licensing& GetLicensing() const{ return m_licensing; } /** *

Licensing.

*/ inline bool LicensingHasBeenSet() const { return m_licensingHasBeenSet; } /** *

Licensing.

*/ inline void SetLicensing(const Licensing& value) { m_licensingHasBeenSet = true; m_licensing = value; } /** *

Licensing.

*/ inline void SetLicensing(Licensing&& value) { m_licensingHasBeenSet = true; m_licensing = std::move(value); } /** *

Licensing.

*/ inline LaunchConfigurationTemplate& WithLicensing(const Licensing& value) { SetLicensing(value); return *this;} /** *

Licensing.

*/ inline LaunchConfigurationTemplate& WithLicensing(Licensing&& value) { SetLicensing(std::move(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;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; bool m_copyPrivateIp; bool m_copyPrivateIpHasBeenSet = false; bool m_copyTags; bool m_copyTagsHasBeenSet = false; Aws::String m_exportBucketArn; bool m_exportBucketArnHasBeenSet = false; Aws::String m_launchConfigurationTemplateID; bool m_launchConfigurationTemplateIDHasBeenSet = false; LaunchDisposition m_launchDisposition; bool m_launchDispositionHasBeenSet = false; Licensing m_licensing; bool m_licensingHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; TargetInstanceTypeRightSizingMethod m_targetInstanceTypeRightSizingMethod; bool m_targetInstanceTypeRightSizingMethodHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws