/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace LicenseManager { namespace Model { /** */ class DeleteGrantRequest : public LicenseManagerRequest { public: AWS_LICENSEMANAGER_API DeleteGrantRequest(); // 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 "DeleteGrant"; } AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override; AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Amazon Resource Name (ARN) of the grant.

*/ inline const Aws::String& GetGrantArn() const{ return m_grantArn; } /** *

Amazon Resource Name (ARN) of the grant.

*/ inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; } /** *

Amazon Resource Name (ARN) of the grant.

*/ inline void SetGrantArn(const Aws::String& value) { m_grantArnHasBeenSet = true; m_grantArn = value; } /** *

Amazon Resource Name (ARN) of the grant.

*/ inline void SetGrantArn(Aws::String&& value) { m_grantArnHasBeenSet = true; m_grantArn = std::move(value); } /** *

Amazon Resource Name (ARN) of the grant.

*/ inline void SetGrantArn(const char* value) { m_grantArnHasBeenSet = true; m_grantArn.assign(value); } /** *

Amazon Resource Name (ARN) of the grant.

*/ inline DeleteGrantRequest& WithGrantArn(const Aws::String& value) { SetGrantArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the grant.

*/ inline DeleteGrantRequest& WithGrantArn(Aws::String&& value) { SetGrantArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the grant.

*/ inline DeleteGrantRequest& WithGrantArn(const char* value) { SetGrantArn(value); return *this;} /** *

The Status reason for the delete request.

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

The Status reason for the delete request.

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

The Status reason for the delete request.

*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

The Status reason for the delete request.

*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

The Status reason for the delete request.

*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *

The Status reason for the delete request.

*/ inline DeleteGrantRequest& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

The Status reason for the delete request.

*/ inline DeleteGrantRequest& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

The Status reason for the delete request.

*/ inline DeleteGrantRequest& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

Current version of the grant.

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

Current version of the grant.

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

Current version of the grant.

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

Current version of the grant.

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

Current version of the grant.

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

Current version of the grant.

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

Current version of the grant.

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

Current version of the grant.

*/ inline DeleteGrantRequest& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_grantArn; bool m_grantArnHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws