/** * 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; ListChildrenRequest::ListChildrenRequest() : m_parentIdHasBeenSet(false), m_childType(ChildType::NOT_SET), m_childTypeHasBeenSet(false), m_nextTokenHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false) { } Aws::String ListChildrenRequest::SerializePayload() const { JsonValue payload; if(m_parentIdHasBeenSet) { payload.WithString("ParentId", m_parentId); } if(m_childTypeHasBeenSet) { payload.WithString("ChildType", ChildTypeMapper::GetNameForChildType(m_childType)); } if(m_nextTokenHasBeenSet) { payload.WithString("NextToken", m_nextToken); } if(m_maxResultsHasBeenSet) { payload.WithInteger("MaxResults", m_maxResults); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListChildrenRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSOrganizationsV20161128.ListChildren")); return headers; }