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

Describes a blueprint (a virtual private server image).

See * Also:

AWS * API Reference

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

The ID for the virtual private server image (e.g., * app_wordpress_4_4 or app_lamp_7_0).

*/ inline const Aws::String& GetBlueprintId() const{ return m_blueprintId; } /** *

The ID for the virtual private server image (e.g., * app_wordpress_4_4 or app_lamp_7_0).

*/ inline bool BlueprintIdHasBeenSet() const { return m_blueprintIdHasBeenSet; } /** *

The ID for the virtual private server image (e.g., * app_wordpress_4_4 or app_lamp_7_0).

*/ inline void SetBlueprintId(const Aws::String& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = value; } /** *

The ID for the virtual private server image (e.g., * app_wordpress_4_4 or app_lamp_7_0).

*/ inline void SetBlueprintId(Aws::String&& value) { m_blueprintIdHasBeenSet = true; m_blueprintId = std::move(value); } /** *

The ID for the virtual private server image (e.g., * app_wordpress_4_4 or app_lamp_7_0).

*/ inline void SetBlueprintId(const char* value) { m_blueprintIdHasBeenSet = true; m_blueprintId.assign(value); } /** *

The ID for the virtual private server image (e.g., * app_wordpress_4_4 or app_lamp_7_0).

*/ inline Blueprint& WithBlueprintId(const Aws::String& value) { SetBlueprintId(value); return *this;} /** *

The ID for the virtual private server image (e.g., * app_wordpress_4_4 or app_lamp_7_0).

*/ inline Blueprint& WithBlueprintId(Aws::String&& value) { SetBlueprintId(std::move(value)); return *this;} /** *

The ID for the virtual private server image (e.g., * app_wordpress_4_4 or app_lamp_7_0).

*/ inline Blueprint& WithBlueprintId(const char* value) { SetBlueprintId(value); return *this;} /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline Blueprint& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline Blueprint& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The friendly name of the blueprint (e.g., Amazon Linux).

*/ inline Blueprint& WithName(const char* value) { SetName(value); return *this;} /** *

The group name of the blueprint (e.g., amazon-linux).

*/ inline const Aws::String& GetGroup() const{ return m_group; } /** *

The group name of the blueprint (e.g., amazon-linux).

*/ inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; } /** *

The group name of the blueprint (e.g., amazon-linux).

*/ inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; } /** *

The group name of the blueprint (e.g., amazon-linux).

*/ inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); } /** *

The group name of the blueprint (e.g., amazon-linux).

*/ inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); } /** *

The group name of the blueprint (e.g., amazon-linux).

*/ inline Blueprint& WithGroup(const Aws::String& value) { SetGroup(value); return *this;} /** *

The group name of the blueprint (e.g., amazon-linux).

*/ inline Blueprint& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;} /** *

The group name of the blueprint (e.g., amazon-linux).

*/ inline Blueprint& WithGroup(const char* value) { SetGroup(value); return *this;} /** *

The type of the blueprint (e.g., os or app).

*/ inline const BlueprintType& GetType() const{ return m_type; } /** *

The type of the blueprint (e.g., os or app).

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the blueprint (e.g., os or app).

*/ inline void SetType(const BlueprintType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the blueprint (e.g., os or app).

*/ inline void SetType(BlueprintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the blueprint (e.g., os or app).

*/ inline Blueprint& WithType(const BlueprintType& value) { SetType(value); return *this;} /** *

The type of the blueprint (e.g., os or app).

*/ inline Blueprint& WithType(BlueprintType&& value) { SetType(std::move(value)); return *this;} /** *

The description of the blueprint.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the blueprint.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the blueprint.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the blueprint.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the blueprint.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the blueprint.

*/ inline Blueprint& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the blueprint.

*/ inline Blueprint& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the blueprint.

*/ inline Blueprint& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A Boolean value indicating whether the blueprint is active. Inactive * blueprints are listed to support customers with existing instances but are not * necessarily available for launch of new instances. Blueprints are marked * inactive when they become outdated due to operating system updates or new * application releases.

*/ inline bool GetIsActive() const{ return m_isActive; } /** *

A Boolean value indicating whether the blueprint is active. Inactive * blueprints are listed to support customers with existing instances but are not * necessarily available for launch of new instances. Blueprints are marked * inactive when they become outdated due to operating system updates or new * application releases.

*/ inline bool IsActiveHasBeenSet() const { return m_isActiveHasBeenSet; } /** *

A Boolean value indicating whether the blueprint is active. Inactive * blueprints are listed to support customers with existing instances but are not * necessarily available for launch of new instances. Blueprints are marked * inactive when they become outdated due to operating system updates or new * application releases.

*/ inline void SetIsActive(bool value) { m_isActiveHasBeenSet = true; m_isActive = value; } /** *

A Boolean value indicating whether the blueprint is active. Inactive * blueprints are listed to support customers with existing instances but are not * necessarily available for launch of new instances. Blueprints are marked * inactive when they become outdated due to operating system updates or new * application releases.

*/ inline Blueprint& WithIsActive(bool value) { SetIsActive(value); return *this;} /** *

The minimum bundle power required to run this blueprint. For example, you * need a bundle with a power value of 500 or more to create an instance that uses * a blueprint with a minimum power value of 500. 0 indicates that the * blueprint runs on all instance sizes.

*/ inline int GetMinPower() const{ return m_minPower; } /** *

The minimum bundle power required to run this blueprint. For example, you * need a bundle with a power value of 500 or more to create an instance that uses * a blueprint with a minimum power value of 500. 0 indicates that the * blueprint runs on all instance sizes.

*/ inline bool MinPowerHasBeenSet() const { return m_minPowerHasBeenSet; } /** *

The minimum bundle power required to run this blueprint. For example, you * need a bundle with a power value of 500 or more to create an instance that uses * a blueprint with a minimum power value of 500. 0 indicates that the * blueprint runs on all instance sizes.

*/ inline void SetMinPower(int value) { m_minPowerHasBeenSet = true; m_minPower = value; } /** *

The minimum bundle power required to run this blueprint. For example, you * need a bundle with a power value of 500 or more to create an instance that uses * a blueprint with a minimum power value of 500. 0 indicates that the * blueprint runs on all instance sizes.

*/ inline Blueprint& WithMinPower(int value) { SetMinPower(value); return *this;} /** *

The version number of the operating system, application, or stack (e.g., * 2016.03.0).

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version number of the operating system, application, or stack (e.g., * 2016.03.0).

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version number of the operating system, application, or stack (e.g., * 2016.03.0).

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version number of the operating system, application, or stack (e.g., * 2016.03.0).

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version number of the operating system, application, or stack (e.g., * 2016.03.0).

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version number of the operating system, application, or stack (e.g., * 2016.03.0).

*/ inline Blueprint& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version number of the operating system, application, or stack (e.g., * 2016.03.0).

*/ inline Blueprint& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version number of the operating system, application, or stack (e.g., * 2016.03.0).

*/ inline Blueprint& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The version code.

*/ inline const Aws::String& GetVersionCode() const{ return m_versionCode; } /** *

The version code.

*/ inline bool VersionCodeHasBeenSet() const { return m_versionCodeHasBeenSet; } /** *

The version code.

*/ inline void SetVersionCode(const Aws::String& value) { m_versionCodeHasBeenSet = true; m_versionCode = value; } /** *

The version code.

*/ inline void SetVersionCode(Aws::String&& value) { m_versionCodeHasBeenSet = true; m_versionCode = std::move(value); } /** *

The version code.

*/ inline void SetVersionCode(const char* value) { m_versionCodeHasBeenSet = true; m_versionCode.assign(value); } /** *

The version code.

*/ inline Blueprint& WithVersionCode(const Aws::String& value) { SetVersionCode(value); return *this;} /** *

The version code.

*/ inline Blueprint& WithVersionCode(Aws::String&& value) { SetVersionCode(std::move(value)); return *this;} /** *

The version code.

*/ inline Blueprint& WithVersionCode(const char* value) { SetVersionCode(value); return *this;} /** *

The product URL to learn more about the image or blueprint.

*/ inline const Aws::String& GetProductUrl() const{ return m_productUrl; } /** *

The product URL to learn more about the image or blueprint.

*/ inline bool ProductUrlHasBeenSet() const { return m_productUrlHasBeenSet; } /** *

The product URL to learn more about the image or blueprint.

*/ inline void SetProductUrl(const Aws::String& value) { m_productUrlHasBeenSet = true; m_productUrl = value; } /** *

The product URL to learn more about the image or blueprint.

*/ inline void SetProductUrl(Aws::String&& value) { m_productUrlHasBeenSet = true; m_productUrl = std::move(value); } /** *

The product URL to learn more about the image or blueprint.

*/ inline void SetProductUrl(const char* value) { m_productUrlHasBeenSet = true; m_productUrl.assign(value); } /** *

The product URL to learn more about the image or blueprint.

*/ inline Blueprint& WithProductUrl(const Aws::String& value) { SetProductUrl(value); return *this;} /** *

The product URL to learn more about the image or blueprint.

*/ inline Blueprint& WithProductUrl(Aws::String&& value) { SetProductUrl(std::move(value)); return *this;} /** *

The product URL to learn more about the image or blueprint.

*/ inline Blueprint& WithProductUrl(const char* value) { SetProductUrl(value); return *this;} /** *

The end-user license agreement URL for the image or blueprint.

*/ inline const Aws::String& GetLicenseUrl() const{ return m_licenseUrl; } /** *

The end-user license agreement URL for the image or blueprint.

*/ inline bool LicenseUrlHasBeenSet() const { return m_licenseUrlHasBeenSet; } /** *

The end-user license agreement URL for the image or blueprint.

*/ inline void SetLicenseUrl(const Aws::String& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = value; } /** *

The end-user license agreement URL for the image or blueprint.

*/ inline void SetLicenseUrl(Aws::String&& value) { m_licenseUrlHasBeenSet = true; m_licenseUrl = std::move(value); } /** *

The end-user license agreement URL for the image or blueprint.

*/ inline void SetLicenseUrl(const char* value) { m_licenseUrlHasBeenSet = true; m_licenseUrl.assign(value); } /** *

The end-user license agreement URL for the image or blueprint.

*/ inline Blueprint& WithLicenseUrl(const Aws::String& value) { SetLicenseUrl(value); return *this;} /** *

The end-user license agreement URL for the image or blueprint.

*/ inline Blueprint& WithLicenseUrl(Aws::String&& value) { SetLicenseUrl(std::move(value)); return *this;} /** *

The end-user license agreement URL for the image or blueprint.

*/ inline Blueprint& WithLicenseUrl(const char* value) { SetLicenseUrl(value); return *this;} /** *

The operating system platform (either Linux/Unix-based or Windows * Server-based) of the blueprint.

*/ inline const InstancePlatform& GetPlatform() const{ return m_platform; } /** *

The operating system platform (either Linux/Unix-based or Windows * Server-based) of the blueprint.

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The operating system platform (either Linux/Unix-based or Windows * Server-based) of the blueprint.

*/ inline void SetPlatform(const InstancePlatform& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The operating system platform (either Linux/Unix-based or Windows * Server-based) of the blueprint.

*/ inline void SetPlatform(InstancePlatform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The operating system platform (either Linux/Unix-based or Windows * Server-based) of the blueprint.

*/ inline Blueprint& WithPlatform(const InstancePlatform& value) { SetPlatform(value); return *this;} /** *

The operating system platform (either Linux/Unix-based or Windows * Server-based) of the blueprint.

*/ inline Blueprint& WithPlatform(InstancePlatform&& value) { SetPlatform(std::move(value)); return *this;} /** *

Virtual computer blueprints that are supported by Lightsail for Research.

*

This parameter only applies to Lightsail for Research * resources.

*/ inline const AppCategory& GetAppCategory() const{ return m_appCategory; } /** *

Virtual computer blueprints that are supported by Lightsail for Research.

*

This parameter only applies to Lightsail for Research * resources.

*/ inline bool AppCategoryHasBeenSet() const { return m_appCategoryHasBeenSet; } /** *

Virtual computer blueprints that are supported by Lightsail for Research.

*

This parameter only applies to Lightsail for Research * resources.

*/ inline void SetAppCategory(const AppCategory& value) { m_appCategoryHasBeenSet = true; m_appCategory = value; } /** *

Virtual computer blueprints that are supported by Lightsail for Research.

*

This parameter only applies to Lightsail for Research * resources.

*/ inline void SetAppCategory(AppCategory&& value) { m_appCategoryHasBeenSet = true; m_appCategory = std::move(value); } /** *

Virtual computer blueprints that are supported by Lightsail for Research.

*

This parameter only applies to Lightsail for Research * resources.

*/ inline Blueprint& WithAppCategory(const AppCategory& value) { SetAppCategory(value); return *this;} /** *

Virtual computer blueprints that are supported by Lightsail for Research.

*

This parameter only applies to Lightsail for Research * resources.

*/ inline Blueprint& WithAppCategory(AppCategory&& value) { SetAppCategory(std::move(value)); return *this;} private: Aws::String m_blueprintId; bool m_blueprintIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_group; bool m_groupHasBeenSet = false; BlueprintType m_type; bool m_typeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_isActive; bool m_isActiveHasBeenSet = false; int m_minPower; bool m_minPowerHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::String m_versionCode; bool m_versionCodeHasBeenSet = false; Aws::String m_productUrl; bool m_productUrlHasBeenSet = false; Aws::String m_licenseUrl; bool m_licenseUrlHasBeenSet = false; InstancePlatform m_platform; bool m_platformHasBeenSet = false; AppCategory m_appCategory; bool m_appCategoryHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws