/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace LicenseManager { namespace Model { /** */ class CreateLicenseConfigurationRequest : public LicenseManagerRequest { public: AWS_LICENSEMANAGER_API CreateLicenseConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateLicenseConfiguration"; } AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override; AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Name of the license configuration.

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

Name of the license configuration.

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

Name of the license configuration.

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

Name of the license configuration.

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

Name of the license configuration.

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

Name of the license configuration.

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

Name of the license configuration.

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

Name of the license configuration.

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

Description of the license configuration.

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

Description of the license configuration.

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

Description of the license configuration.

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

Description of the license configuration.

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

Description of the license configuration.

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

Description of the license configuration.

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

Description of the license configuration.

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

Description of the license configuration.

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

Dimension used to track the license inventory.

*/ inline const LicenseCountingType& GetLicenseCountingType() const{ return m_licenseCountingType; } /** *

Dimension used to track the license inventory.

*/ inline bool LicenseCountingTypeHasBeenSet() const { return m_licenseCountingTypeHasBeenSet; } /** *

Dimension used to track the license inventory.

*/ inline void SetLicenseCountingType(const LicenseCountingType& value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = value; } /** *

Dimension used to track the license inventory.

*/ inline void SetLicenseCountingType(LicenseCountingType&& value) { m_licenseCountingTypeHasBeenSet = true; m_licenseCountingType = std::move(value); } /** *

Dimension used to track the license inventory.

*/ inline CreateLicenseConfigurationRequest& WithLicenseCountingType(const LicenseCountingType& value) { SetLicenseCountingType(value); return *this;} /** *

Dimension used to track the license inventory.

*/ inline CreateLicenseConfigurationRequest& WithLicenseCountingType(LicenseCountingType&& value) { SetLicenseCountingType(std::move(value)); return *this;} /** *

Number of licenses managed by the license configuration.

*/ inline long long GetLicenseCount() const{ return m_licenseCount; } /** *

Number of licenses managed by the license configuration.

*/ inline bool LicenseCountHasBeenSet() const { return m_licenseCountHasBeenSet; } /** *

Number of licenses managed by the license configuration.

*/ inline void SetLicenseCount(long long value) { m_licenseCountHasBeenSet = true; m_licenseCount = value; } /** *

Number of licenses managed by the license configuration.

*/ inline CreateLicenseConfigurationRequest& WithLicenseCount(long long value) { SetLicenseCount(value); return *this;} /** *

Indicates whether hard or soft license enforcement is used. Exceeding a hard * limit blocks the launch of new instances.

*/ inline bool GetLicenseCountHardLimit() const{ return m_licenseCountHardLimit; } /** *

Indicates whether hard or soft license enforcement is used. Exceeding a hard * limit blocks the launch of new instances.

*/ inline bool LicenseCountHardLimitHasBeenSet() const { return m_licenseCountHardLimitHasBeenSet; } /** *

Indicates whether hard or soft license enforcement is used. Exceeding a hard * limit blocks the launch of new instances.

*/ inline void SetLicenseCountHardLimit(bool value) { m_licenseCountHardLimitHasBeenSet = true; m_licenseCountHardLimit = value; } /** *

Indicates whether hard or soft license enforcement is used. Exceeding a hard * limit blocks the launch of new instances.

*/ inline CreateLicenseConfigurationRequest& WithLicenseCountHardLimit(bool value) { SetLicenseCountHardLimit(value); return *this;} /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline const Aws::Vector& GetLicenseRules() const{ return m_licenseRules; } /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline bool LicenseRulesHasBeenSet() const { return m_licenseRulesHasBeenSet; } /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline void SetLicenseRules(const Aws::Vector& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = value; } /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline void SetLicenseRules(Aws::Vector&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules = std::move(value); } /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline CreateLicenseConfigurationRequest& WithLicenseRules(const Aws::Vector& value) { SetLicenseRules(value); return *this;} /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline CreateLicenseConfigurationRequest& WithLicenseRules(Aws::Vector&& value) { SetLicenseRules(std::move(value)); return *this;} /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline CreateLicenseConfigurationRequest& AddLicenseRules(const Aws::String& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(value); return *this; } /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline CreateLicenseConfigurationRequest& AddLicenseRules(Aws::String&& value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(std::move(value)); return *this; } /** *

License rules. The syntax is #name=value (for example, * #allowedTenancy=EC2-DedicatedHost). The available rules vary by dimension, as * follows.

  • Cores dimension: * allowedTenancy | licenseAffinityToHost | * maximumCores | minimumCores

  • * Instances dimension: allowedTenancy | * maximumCores | minimumCores | * maximumSockets | minimumSockets | * maximumVcpus | minimumVcpus

  • * Sockets dimension: allowedTenancy | * licenseAffinityToHost | maximumSockets | * minimumSockets

  • vCPUs dimension: * allowedTenancy | honorVcpuOptimization | * maximumVcpus | minimumVcpus

The * unit for licenseAffinityToHost is days and the range is 1 to 180. * The possible values for allowedTenancy are * EC2-Default, EC2-DedicatedHost, and * EC2-DedicatedInstance. The possible values for * honorVcpuOptimization are True and * False.

*/ inline CreateLicenseConfigurationRequest& AddLicenseRules(const char* value) { m_licenseRulesHasBeenSet = true; m_licenseRules.push_back(value); return *this; } /** *

Tags to add to the license configuration.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Tags to add to the license configuration.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags to add to the license configuration.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags to add to the license configuration.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags to add to the license configuration.

*/ inline CreateLicenseConfigurationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Tags to add to the license configuration.

*/ inline CreateLicenseConfigurationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Tags to add to the license configuration.

*/ inline CreateLicenseConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Tags to add to the license configuration.

*/ inline CreateLicenseConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

When true, disassociates a resource when software is uninstalled.

*/ inline bool GetDisassociateWhenNotFound() const{ return m_disassociateWhenNotFound; } /** *

When true, disassociates a resource when software is uninstalled.

*/ inline bool DisassociateWhenNotFoundHasBeenSet() const { return m_disassociateWhenNotFoundHasBeenSet; } /** *

When true, disassociates a resource when software is uninstalled.

*/ inline void SetDisassociateWhenNotFound(bool value) { m_disassociateWhenNotFoundHasBeenSet = true; m_disassociateWhenNotFound = value; } /** *

When true, disassociates a resource when software is uninstalled.

*/ inline CreateLicenseConfigurationRequest& WithDisassociateWhenNotFound(bool value) { SetDisassociateWhenNotFound(value); return *this;} /** *

Product information.

*/ inline const Aws::Vector& GetProductInformationList() const{ return m_productInformationList; } /** *

Product information.

*/ inline bool ProductInformationListHasBeenSet() const { return m_productInformationListHasBeenSet; } /** *

Product information.

*/ inline void SetProductInformationList(const Aws::Vector& value) { m_productInformationListHasBeenSet = true; m_productInformationList = value; } /** *

Product information.

*/ inline void SetProductInformationList(Aws::Vector&& value) { m_productInformationListHasBeenSet = true; m_productInformationList = std::move(value); } /** *

Product information.

*/ inline CreateLicenseConfigurationRequest& WithProductInformationList(const Aws::Vector& value) { SetProductInformationList(value); return *this;} /** *

Product information.

*/ inline CreateLicenseConfigurationRequest& WithProductInformationList(Aws::Vector&& value) { SetProductInformationList(std::move(value)); return *this;} /** *

Product information.

*/ inline CreateLicenseConfigurationRequest& AddProductInformationList(const ProductInformation& value) { m_productInformationListHasBeenSet = true; m_productInformationList.push_back(value); return *this; } /** *

Product information.

*/ inline CreateLicenseConfigurationRequest& AddProductInformationList(ProductInformation&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; LicenseCountingType m_licenseCountingType; bool m_licenseCountingTypeHasBeenSet = false; long long m_licenseCount; bool m_licenseCountHasBeenSet = false; bool m_licenseCountHardLimit; bool m_licenseCountHardLimitHasBeenSet = false; Aws::Vector m_licenseRules; bool m_licenseRulesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; bool m_disassociateWhenNotFound; bool m_disassociateWhenNotFoundHasBeenSet = false; Aws::Vector m_productInformationList; bool m_productInformationListHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws