/** * 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 namespace Aws { namespace LicenseManager { namespace Model { /** */ class UpdateLicenseConfigurationRequest : public LicenseManagerRequest { public: AWS_LICENSEMANAGER_API UpdateLicenseConfigurationRequest(); // 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 "UpdateLicenseConfiguration"; } AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override; AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Amazon Resource Name (ARN) of the license configuration.

*/ inline const Aws::String& GetLicenseConfigurationArn() const{ return m_licenseConfigurationArn; } /** *

Amazon Resource Name (ARN) of the license configuration.

*/ inline bool LicenseConfigurationArnHasBeenSet() const { return m_licenseConfigurationArnHasBeenSet; } /** *

Amazon Resource Name (ARN) of the license configuration.

*/ inline void SetLicenseConfigurationArn(const Aws::String& value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = value; } /** *

Amazon Resource Name (ARN) of the license configuration.

*/ inline void SetLicenseConfigurationArn(Aws::String&& value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn = std::move(value); } /** *

Amazon Resource Name (ARN) of the license configuration.

*/ inline void SetLicenseConfigurationArn(const char* value) { m_licenseConfigurationArnHasBeenSet = true; m_licenseConfigurationArn.assign(value); } /** *

Amazon Resource Name (ARN) of the license configuration.

*/ inline UpdateLicenseConfigurationRequest& WithLicenseConfigurationArn(const Aws::String& value) { SetLicenseConfigurationArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the license configuration.

*/ inline UpdateLicenseConfigurationRequest& WithLicenseConfigurationArn(Aws::String&& value) { SetLicenseConfigurationArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the license configuration.

*/ inline UpdateLicenseConfigurationRequest& WithLicenseConfigurationArn(const char* value) { SetLicenseConfigurationArn(value); return *this;} /** *

New status of the license configuration.

*/ inline const LicenseConfigurationStatus& GetLicenseConfigurationStatus() const{ return m_licenseConfigurationStatus; } /** *

New status of the license configuration.

*/ inline bool LicenseConfigurationStatusHasBeenSet() const { return m_licenseConfigurationStatusHasBeenSet; } /** *

New status of the license configuration.

*/ inline void SetLicenseConfigurationStatus(const LicenseConfigurationStatus& value) { m_licenseConfigurationStatusHasBeenSet = true; m_licenseConfigurationStatus = value; } /** *

New status of the license configuration.

*/ inline void SetLicenseConfigurationStatus(LicenseConfigurationStatus&& value) { m_licenseConfigurationStatusHasBeenSet = true; m_licenseConfigurationStatus = std::move(value); } /** *

New status of the license configuration.

*/ inline UpdateLicenseConfigurationRequest& WithLicenseConfigurationStatus(const LicenseConfigurationStatus& value) { SetLicenseConfigurationStatus(value); return *this;} /** *

New status of the license configuration.

*/ inline UpdateLicenseConfigurationRequest& WithLicenseConfigurationStatus(LicenseConfigurationStatus&& value) { SetLicenseConfigurationStatus(std::move(value)); return *this;} /** *

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New license rule. The only rule that you can add after you create a license * configuration is licenseAffinityToHost.

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

New number of licenses managed by the license configuration.

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

New number of licenses managed by the license configuration.

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

New number of licenses managed by the license configuration.

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

New number of licenses managed by the license configuration.

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

New hard limit of the number of available licenses.

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

New hard limit of the number of available licenses.

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

New hard limit of the number of available licenses.

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

New hard limit of the number of available licenses.

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

New name of the license configuration.

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

New name of the license configuration.

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

New name of the license configuration.

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

New name of the license configuration.

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

New name of the license configuration.

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

New name of the license configuration.

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

New name of the license configuration.

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

New name of the license configuration.

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

New description of the license configuration.

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

New description of the license configuration.

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

New description of the license configuration.

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

New description of the license configuration.

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

New description of the license configuration.

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

New description of the license configuration.

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

New description of the license configuration.

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

New description of the license configuration.

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

New product information.

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

New product information.

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

New product information.

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

New product information.

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

New product information.

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

New product information.

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

New product information.

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

New product information.

*/ inline UpdateLicenseConfigurationRequest& AddProductInformationList(ProductInformation&& value) { m_productInformationListHasBeenSet = true; m_productInformationList.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 UpdateLicenseConfigurationRequest& WithDisassociateWhenNotFound(bool value) { SetDisassociateWhenNotFound(value); return *this;} private: Aws::String m_licenseConfigurationArn; bool m_licenseConfigurationArnHasBeenSet = false; LicenseConfigurationStatus m_licenseConfigurationStatus; bool m_licenseConfigurationStatusHasBeenSet = false; Aws::Vector m_licenseRules; bool m_licenseRulesHasBeenSet = false; long long m_licenseCount; bool m_licenseCountHasBeenSet = false; bool m_licenseCountHardLimit; bool m_licenseCountHardLimitHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_productInformationList; bool m_productInformationListHasBeenSet = false; bool m_disassociateWhenNotFound; bool m_disassociateWhenNotFoundHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws