/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::FMS::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PutAppsListRequest::PutAppsListRequest() : m_appsListHasBeenSet(false), m_tagListHasBeenSet(false) { } Aws::String PutAppsListRequest::SerializePayload() const { JsonValue payload; if(m_appsListHasBeenSet) { payload.WithObject("AppsList", m_appsList.Jsonize()); } if(m_tagListHasBeenSet) { Aws::Utils::Array tagListJsonList(m_tagList.size()); for(unsigned tagListIndex = 0; tagListIndex < tagListJsonList.GetLength(); ++tagListIndex) { tagListJsonList[tagListIndex].AsObject(m_tagList[tagListIndex].Jsonize()); } payload.WithArray("TagList", std::move(tagListJsonList)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection PutAppsListRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSFMS_20180101.PutAppsList")); return headers; }