/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The launch template to use. You must specify either the launch template ID or
* launch template name in the request, but not both.See Also:
AWS
* API Reference
The ID of the launch template.
You must specify the
* LaunchTemplateId
or the LaunchTemplateName
, but not
* both.
The ID of the launch template.
You must specify the
* LaunchTemplateId
or the LaunchTemplateName
, but not
* both.
The ID of the launch template.
You must specify the
* LaunchTemplateId
or the LaunchTemplateName
, but not
* both.
The ID of the launch template.
You must specify the
* LaunchTemplateId
or the LaunchTemplateName
, but not
* both.
The ID of the launch template.
You must specify the
* LaunchTemplateId
or the LaunchTemplateName
, but not
* both.
The ID of the launch template.
You must specify the
* LaunchTemplateId
or the LaunchTemplateName
, but not
* both.
The ID of the launch template.
You must specify the
* LaunchTemplateId
or the LaunchTemplateName
, but not
* both.
The ID of the launch template.
You must specify the
* LaunchTemplateId
or the LaunchTemplateName
, but not
* both.
The name of the launch template.
You must specify the
* LaunchTemplateName
or the LaunchTemplateId
, but not
* both.
The name of the launch template.
You must specify the
* LaunchTemplateName
or the LaunchTemplateId
, but not
* both.
The name of the launch template.
You must specify the
* LaunchTemplateName
or the LaunchTemplateId
, but not
* both.
The name of the launch template.
You must specify the
* LaunchTemplateName
or the LaunchTemplateId
, but not
* both.
The name of the launch template.
You must specify the
* LaunchTemplateName
or the LaunchTemplateId
, but not
* both.
The name of the launch template.
You must specify the
* LaunchTemplateName
or the LaunchTemplateId
, but not
* both.
The name of the launch template.
You must specify the
* LaunchTemplateName
or the LaunchTemplateId
, but not
* both.
The name of the launch template.
You must specify the
* LaunchTemplateName
or the LaunchTemplateId
, but not
* both.
The launch template version number, $Latest
, or
* $Default
.
If the value is $Latest
, Amazon EC2
* uses the latest version of the launch template.
If the value is
* $Default
, Amazon EC2 uses the default version of the launch
* template.
Default: The default version of the launch template.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The launch template version number, $Latest
, or
* $Default
.
If the value is $Latest
, Amazon EC2
* uses the latest version of the launch template.
If the value is
* $Default
, Amazon EC2 uses the default version of the launch
* template.
Default: The default version of the launch template.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The launch template version number, $Latest
, or
* $Default
.
If the value is $Latest
, Amazon EC2
* uses the latest version of the launch template.
If the value is
* $Default
, Amazon EC2 uses the default version of the launch
* template.
Default: The default version of the launch template.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The launch template version number, $Latest
, or
* $Default
.
If the value is $Latest
, Amazon EC2
* uses the latest version of the launch template.
If the value is
* $Default
, Amazon EC2 uses the default version of the launch
* template.
Default: The default version of the launch template.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The launch template version number, $Latest
, or
* $Default
.
If the value is $Latest
, Amazon EC2
* uses the latest version of the launch template.
If the value is
* $Default
, Amazon EC2 uses the default version of the launch
* template.
Default: The default version of the launch template.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The launch template version number, $Latest
, or
* $Default
.
If the value is $Latest
, Amazon EC2
* uses the latest version of the launch template.
If the value is
* $Default
, Amazon EC2 uses the default version of the launch
* template.
Default: The default version of the launch template.
*/ inline LaunchTemplateSpecification& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The launch template version number, $Latest
, or
* $Default
.
If the value is $Latest
, Amazon EC2
* uses the latest version of the launch template.
If the value is
* $Default
, Amazon EC2 uses the default version of the launch
* template.
Default: The default version of the launch template.
*/ inline LaunchTemplateSpecification& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The launch template version number, $Latest
, or
* $Default
.
If the value is $Latest
, Amazon EC2
* uses the latest version of the launch template.
If the value is
* $Default
, Amazon EC2 uses the default version of the launch
* template.
Default: The default version of the launch template.
*/ inline LaunchTemplateSpecification& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_launchTemplateId; bool m_launchTemplateIdHasBeenSet = false; Aws::String m_launchTemplateName; bool m_launchTemplateNameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws