/** * 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 an Amazon EC2 launch template to use for a specific * account.

See Also:

AWS * API Reference

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

Identifies the Amazon EC2 launch template to use.

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

Identifies the Amazon EC2 launch template to use.

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

Identifies the Amazon EC2 launch template to use.

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

Identifies the Amazon EC2 launch template to use.

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

Identifies the Amazon EC2 launch template to use.

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

Identifies the Amazon EC2 launch template to use.

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

Identifies the Amazon EC2 launch template to use.

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

Identifies the Amazon EC2 launch template to use.

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

The account ID that this configuration applies to.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The account ID that this configuration applies to.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The account ID that this configuration applies to.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The account ID that this configuration applies to.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The account ID that this configuration applies to.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The account ID that this configuration applies to.

*/ inline LaunchTemplateConfiguration& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The account ID that this configuration applies to.

*/ inline LaunchTemplateConfiguration& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The account ID that this configuration applies to.

*/ inline LaunchTemplateConfiguration& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

Set the specified Amazon EC2 launch template as the default launch template * for the specified account.

*/ inline bool GetSetDefaultVersion() const{ return m_setDefaultVersion; } /** *

Set the specified Amazon EC2 launch template as the default launch template * for the specified account.

*/ inline bool SetDefaultVersionHasBeenSet() const { return m_setDefaultVersionHasBeenSet; } /** *

Set the specified Amazon EC2 launch template as the default launch template * for the specified account.

*/ inline void SetSetDefaultVersion(bool value) { m_setDefaultVersionHasBeenSet = true; m_setDefaultVersion = value; } /** *

Set the specified Amazon EC2 launch template as the default launch template * for the specified account.

*/ inline LaunchTemplateConfiguration& WithSetDefaultVersion(bool value) { SetSetDefaultVersion(value); return *this;} private: Aws::String m_launchTemplateId; bool m_launchTemplateIdHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; bool m_setDefaultVersion; bool m_setDefaultVersionHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws