/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::VerifiedPermissions::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DeletePolicyRequest::DeletePolicyRequest() : m_policyStoreIdHasBeenSet(false), m_policyIdHasBeenSet(false) { } Aws::String DeletePolicyRequest::SerializePayload() const { JsonValue payload; if(m_policyStoreIdHasBeenSet) { payload.WithString("policyStoreId", m_policyStoreId); } if(m_policyIdHasBeenSet) { payload.WithString("policyId", m_policyId); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DeletePolicyRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "VerifiedPermissions.DeletePolicy")); return headers; }