1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #include <aws/license-manager/model/DeleteGrantRequest.h> 7 #include <aws/core/utils/json/JsonSerializer.h> 8 9 #include <utility> 10 11 using namespace Aws::LicenseManager::Model; 12 using namespace Aws::Utils::Json; 13 using namespace Aws::Utils; 14 DeleteGrantRequest()15DeleteGrantRequest::DeleteGrantRequest() : 16 m_grantArnHasBeenSet(false), 17 m_statusReasonHasBeenSet(false), 18 m_versionHasBeenSet(false) 19 { 20 } 21 SerializePayload() const22Aws::String DeleteGrantRequest::SerializePayload() const 23 { 24 JsonValue payload; 25 26 if(m_grantArnHasBeenSet) 27 { 28 payload.WithString("GrantArn", m_grantArn); 29 30 } 31 32 if(m_statusReasonHasBeenSet) 33 { 34 payload.WithString("StatusReason", m_statusReason); 35 36 } 37 38 if(m_versionHasBeenSet) 39 { 40 payload.WithString("Version", m_version); 41 42 } 43 44 return payload.View().WriteReadable(); 45 } 46 GetRequestSpecificHeaders() const47Aws::Http::HeaderValueCollection DeleteGrantRequest::GetRequestSpecificHeaders() const 48 { 49 Aws::Http::HeaderValueCollection headers; 50 headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSLicenseManager.DeleteGrant")); 51 return headers; 52 53 } 54 55 56 57 58