/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An object representing a node group launch template specification. The launch
* template can't include
* You must
* specify either the launch template ID or the launch template name in the
* request, but not both.SubnetId
,
* IamInstanceProfile
,
* RequestSpotInstances
,
* HibernationOptions
, or
* TerminateInstances
, or the node group deployment or update
* will fail. For more information about launch templates, see
* CreateLaunchTemplate
in the Amazon EC2 API Reference. For more
* information about using launch templates with Amazon EKS, see Launch
* template support in the Amazon EKS User Guide.See Also:
AWS
* API Reference
The name of the launch template.
You must specify either the launch * template name or the launch template ID in the request, but not both.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the launch template.
You must specify either the launch * template name or the launch template ID in the request, but not both.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the launch template.
You must specify either the launch * template name or the launch template ID in the request, but not both.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the launch template.
You must specify either the launch * template name or the launch template ID in the request, but not both.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the launch template.
You must specify either the launch * template name or the launch template ID in the request, but not both.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the launch template.
You must specify either the launch * template name or the launch template ID in the request, but not both.
*/ inline LaunchTemplateSpecification& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the launch template.
You must specify either the launch * template name or the launch template ID in the request, but not both.
*/ inline LaunchTemplateSpecification& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the launch template.
You must specify either the launch * template name or the launch template ID in the request, but not both.
*/ inline LaunchTemplateSpecification& WithName(const char* value) { SetName(value); return *this;} /** *The version number of the launch template to use. If no version is specified, * then the template's default version is used.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The version number of the launch template to use. If no version is specified, * then the template's default version is used.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The version number of the launch template to use. If no version is specified, * then the template's default version is used.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The version number of the launch template to use. If no version is specified, * then the template's default version is used.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The version number of the launch template to use. If no version is specified, * then the template's default version is used.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The version number of the launch template to use. If no version is specified, * then the template's default version is used.
*/ inline LaunchTemplateSpecification& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The version number of the launch template to use. If no version is specified, * then the template's default version is used.
*/ inline LaunchTemplateSpecification& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The version number of the launch template to use. If no version is specified, * then the template's default version is used.
*/ inline LaunchTemplateSpecification& WithVersion(const char* value) { SetVersion(value); return *this;} /** *The ID of the launch template.
You must specify either the launch * template ID or the launch template name in the request, but not both.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the launch template.
You must specify either the launch * template ID or the launch template name in the request, but not both.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the launch template.
You must specify either the launch * template ID or the launch template name in the request, but not both.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the launch template.
You must specify either the launch * template ID or the launch template name in the request, but not both.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the launch template.
You must specify either the launch * template ID or the launch template name in the request, but not both.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the launch template.
You must specify either the launch * template ID or the launch template name in the request, but not both.
*/ inline LaunchTemplateSpecification& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the launch template.
You must specify either the launch * template ID or the launch template name in the request, but not both.
*/ inline LaunchTemplateSpecification& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the launch template.
You must specify either the launch * template ID or the launch template name in the request, but not both.
*/ inline LaunchTemplateSpecification& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws