/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Organizations::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdatePolicyRequest::UpdatePolicyRequest() : m_policyIdHasBeenSet(false), m_nameHasBeenSet(false), m_descriptionHasBeenSet(false), m_contentHasBeenSet(false) { } Aws::String UpdatePolicyRequest::SerializePayload() const { JsonValue payload; if(m_policyIdHasBeenSet) { payload.WithString("PolicyId", m_policyId); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_contentHasBeenSet) { payload.WithString("Content", m_content); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdatePolicyRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.UpdatePolicy")); return headers; }