/** * 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 RejectGrantRequest : public LicenseManagerRequest { public: AWS_LICENSEMANAGER_API RejectGrantRequest(); // 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 "RejectGrant"; } 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 RejectGrantRequest& WithGrantArn(const Aws::String& value) { SetGrantArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the grant.

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

Amazon Resource Name (ARN) of the grant.

*/ inline RejectGrantRequest& WithGrantArn(const char* value) { SetGrantArn(value); return *this;} private: Aws::String m_grantArn; bool m_grantArnHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws