204 lines
6.9 KiB
C++
204 lines
6.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/eks/EKS_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace EKS
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>An object representing a node group launch template specification. The launch
|
|
* template cannot include <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html">
|
|
* <code>SubnetId</code> </a>, <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IamInstanceProfile.html">
|
|
* <code>IamInstanceProfile</code> </a>, <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html">
|
|
* <code>RequestSpotInstances</code> </a>, <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html">
|
|
* <code>HibernationOptions</code> </a>, or <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TerminateInstances.html">
|
|
* <code>TerminateInstances</code> </a>, or the node group deployment or update
|
|
* will fail. For more information about launch templates, see <a
|
|
* href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html">
|
|
* <code>CreateLaunchTemplate</code> </a> in the Amazon EC2 API Reference. For more
|
|
* information about using launch templates with Amazon EKS, see <a
|
|
* href="https://docs.aws.amazon.com/eks/latest/userguide/launch-templates.html">Launch
|
|
* template support</a> in the Amazon EKS User Guide.</p> <p>Specify either
|
|
* <code>name</code> or <code>id</code>, but not both.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/LaunchTemplateSpecification">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_EKS_API LaunchTemplateSpecification
|
|
{
|
|
public:
|
|
LaunchTemplateSpecification();
|
|
LaunchTemplateSpecification(Aws::Utils::Json::JsonView jsonValue);
|
|
LaunchTemplateSpecification& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The name of the launch template.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the launch template.</p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the launch template.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the launch template.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the launch template.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the launch template.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the launch template.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the launch template.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The version of the launch template to use. If no version is specified, then
|
|
* the template's default version is used.</p>
|
|
*/
|
|
inline const Aws::String& GetVersion() const{ return m_version; }
|
|
|
|
/**
|
|
* <p>The version of the launch template to use. If no version is specified, then
|
|
* the template's default version is used.</p>
|
|
*/
|
|
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The version of the launch template to use. If no version is specified, then
|
|
* the template's default version is used.</p>
|
|
*/
|
|
inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
|
|
|
|
/**
|
|
* <p>The version of the launch template to use. If no version is specified, then
|
|
* the template's default version is used.</p>
|
|
*/
|
|
inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
|
|
|
|
/**
|
|
* <p>The version of the launch template to use. If no version is specified, then
|
|
* the template's default version is used.</p>
|
|
*/
|
|
inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
|
|
|
|
/**
|
|
* <p>The version of the launch template to use. If no version is specified, then
|
|
* the template's default version is used.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
|
|
|
|
/**
|
|
* <p>The version of the launch template to use. If no version is specified, then
|
|
* the template's default version is used.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The version of the launch template to use. If no version is specified, then
|
|
* the template's default version is used.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithVersion(const char* value) { SetVersion(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the launch template.</p>
|
|
*/
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|
|
|
/**
|
|
* <p>The ID of the launch template.</p>
|
|
*/
|
|
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the launch template.</p>
|
|
*/
|
|
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
|
|
|
|
/**
|
|
* <p>The ID of the launch template.</p>
|
|
*/
|
|
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the launch template.</p>
|
|
*/
|
|
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the launch template.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the launch template.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the launch template.</p>
|
|
*/
|
|
inline LaunchTemplateSpecification& WithId(const char* value) { SetId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
Aws::String m_version;
|
|
bool m_versionHasBeenSet;
|
|
|
|
Aws::String m_id;
|
|
bool m_idHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EKS
|
|
} // namespace Aws
|