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

Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline UpdateLicenseSpecificationsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline UpdateLicenseSpecificationsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline UpdateLicenseSpecificationsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

ARNs of the license configurations to add.

*/ inline const Aws::Vector& GetAddLicenseSpecifications() const{ return m_addLicenseSpecifications; } /** *

ARNs of the license configurations to add.

*/ inline bool AddLicenseSpecificationsHasBeenSet() const { return m_addLicenseSpecificationsHasBeenSet; } /** *

ARNs of the license configurations to add.

*/ inline void SetAddLicenseSpecifications(const Aws::Vector& value) { m_addLicenseSpecificationsHasBeenSet = true; m_addLicenseSpecifications = value; } /** *

ARNs of the license configurations to add.

*/ inline void SetAddLicenseSpecifications(Aws::Vector&& value) { m_addLicenseSpecificationsHasBeenSet = true; m_addLicenseSpecifications = std::move(value); } /** *

ARNs of the license configurations to add.

*/ inline UpdateLicenseSpecificationsForResourceRequest& WithAddLicenseSpecifications(const Aws::Vector& value) { SetAddLicenseSpecifications(value); return *this;} /** *

ARNs of the license configurations to add.

*/ inline UpdateLicenseSpecificationsForResourceRequest& WithAddLicenseSpecifications(Aws::Vector&& value) { SetAddLicenseSpecifications(std::move(value)); return *this;} /** *

ARNs of the license configurations to add.

*/ inline UpdateLicenseSpecificationsForResourceRequest& AddAddLicenseSpecifications(const LicenseSpecification& value) { m_addLicenseSpecificationsHasBeenSet = true; m_addLicenseSpecifications.push_back(value); return *this; } /** *

ARNs of the license configurations to add.

*/ inline UpdateLicenseSpecificationsForResourceRequest& AddAddLicenseSpecifications(LicenseSpecification&& value) { m_addLicenseSpecificationsHasBeenSet = true; m_addLicenseSpecifications.push_back(std::move(value)); return *this; } /** *

ARNs of the license configurations to remove.

*/ inline const Aws::Vector& GetRemoveLicenseSpecifications() const{ return m_removeLicenseSpecifications; } /** *

ARNs of the license configurations to remove.

*/ inline bool RemoveLicenseSpecificationsHasBeenSet() const { return m_removeLicenseSpecificationsHasBeenSet; } /** *

ARNs of the license configurations to remove.

*/ inline void SetRemoveLicenseSpecifications(const Aws::Vector& value) { m_removeLicenseSpecificationsHasBeenSet = true; m_removeLicenseSpecifications = value; } /** *

ARNs of the license configurations to remove.

*/ inline void SetRemoveLicenseSpecifications(Aws::Vector&& value) { m_removeLicenseSpecificationsHasBeenSet = true; m_removeLicenseSpecifications = std::move(value); } /** *

ARNs of the license configurations to remove.

*/ inline UpdateLicenseSpecificationsForResourceRequest& WithRemoveLicenseSpecifications(const Aws::Vector& value) { SetRemoveLicenseSpecifications(value); return *this;} /** *

ARNs of the license configurations to remove.

*/ inline UpdateLicenseSpecificationsForResourceRequest& WithRemoveLicenseSpecifications(Aws::Vector&& value) { SetRemoveLicenseSpecifications(std::move(value)); return *this;} /** *

ARNs of the license configurations to remove.

*/ inline UpdateLicenseSpecificationsForResourceRequest& AddRemoveLicenseSpecifications(const LicenseSpecification& value) { m_removeLicenseSpecificationsHasBeenSet = true; m_removeLicenseSpecifications.push_back(value); return *this; } /** *

ARNs of the license configurations to remove.

*/ inline UpdateLicenseSpecificationsForResourceRequest& AddRemoveLicenseSpecifications(LicenseSpecification&& value) { m_removeLicenseSpecificationsHasBeenSet = true; m_removeLicenseSpecifications.push_back(std::move(value)); return *this; } private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::Vector m_addLicenseSpecifications; bool m_addLicenseSpecificationsHasBeenSet = false; Aws::Vector m_removeLicenseSpecifications; bool m_removeLicenseSpecificationsHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws