/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace imagebuilder { namespace Model { /** *

Identifies the launch template that the associated Windows AMI uses for * launching an instance when faster launching is enabled.

You can * specify either the launchTemplateName or the * launchTemplateId, but not both.

See Also:

* AWS * API Reference

*/ class FastLaunchLaunchTemplateSpecification { public: AWS_IMAGEBUILDER_API FastLaunchLaunchTemplateSpecification(); AWS_IMAGEBUILDER_API FastLaunchLaunchTemplateSpecification(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API FastLaunchLaunchTemplateSpecification& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the launch template to use for faster launching for a Windows * AMI.

*/ inline const Aws::String& GetLaunchTemplateId() const{ return m_launchTemplateId; } /** *

The ID of the launch template to use for faster launching for a Windows * AMI.

*/ inline bool LaunchTemplateIdHasBeenSet() const { return m_launchTemplateIdHasBeenSet; } /** *

The ID of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateId(const Aws::String& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = value; } /** *

The ID of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateId(Aws::String&& value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId = std::move(value); } /** *

The ID of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateId(const char* value) { m_launchTemplateIdHasBeenSet = true; m_launchTemplateId.assign(value); } /** *

The ID of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateId(const Aws::String& value) { SetLaunchTemplateId(value); return *this;} /** *

The ID of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateId(Aws::String&& value) { SetLaunchTemplateId(std::move(value)); return *this;} /** *

The ID of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateId(const char* value) { SetLaunchTemplateId(value); return *this;} /** *

The name of the launch template to use for faster launching for a Windows * AMI.

*/ inline const Aws::String& GetLaunchTemplateName() const{ return m_launchTemplateName; } /** *

The name of the launch template to use for faster launching for a Windows * AMI.

*/ inline bool LaunchTemplateNameHasBeenSet() const { return m_launchTemplateNameHasBeenSet; } /** *

The name of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateName(const Aws::String& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = value; } /** *

The name of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateName(Aws::String&& value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName = std::move(value); } /** *

The name of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateName(const char* value) { m_launchTemplateNameHasBeenSet = true; m_launchTemplateName.assign(value); } /** *

The name of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateName(const Aws::String& value) { SetLaunchTemplateName(value); return *this;} /** *

The name of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateName(Aws::String&& value) { SetLaunchTemplateName(std::move(value)); return *this;} /** *

The name of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateName(const char* value) { SetLaunchTemplateName(value); return *this;} /** *

The version of the launch template to use for faster launching for a Windows * AMI.

*/ inline const Aws::String& GetLaunchTemplateVersion() const{ return m_launchTemplateVersion; } /** *

The version of the launch template to use for faster launching for a Windows * AMI.

*/ inline bool LaunchTemplateVersionHasBeenSet() const { return m_launchTemplateVersionHasBeenSet; } /** *

The version of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateVersion(const Aws::String& value) { m_launchTemplateVersionHasBeenSet = true; m_launchTemplateVersion = value; } /** *

The version of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateVersion(Aws::String&& value) { m_launchTemplateVersionHasBeenSet = true; m_launchTemplateVersion = std::move(value); } /** *

The version of the launch template to use for faster launching for a Windows * AMI.

*/ inline void SetLaunchTemplateVersion(const char* value) { m_launchTemplateVersionHasBeenSet = true; m_launchTemplateVersion.assign(value); } /** *

The version of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateVersion(const Aws::String& value) { SetLaunchTemplateVersion(value); return *this;} /** *

The version of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateVersion(Aws::String&& value) { SetLaunchTemplateVersion(std::move(value)); return *this;} /** *

The version of the launch template to use for faster launching for a Windows * AMI.

*/ inline FastLaunchLaunchTemplateSpecification& WithLaunchTemplateVersion(const char* value) { SetLaunchTemplateVersion(value); return *this;} private: Aws::String m_launchTemplateId; bool m_launchTemplateIdHasBeenSet = false; Aws::String m_launchTemplateName; bool m_launchTemplateNameHasBeenSet = false; Aws::String m_launchTemplateVersion; bool m_launchTemplateVersionHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws