/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Lightsail::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; GetBlueprintsRequest::GetBlueprintsRequest() : m_includeInactive(false), m_includeInactiveHasBeenSet(false), m_pageTokenHasBeenSet(false), m_appCategory(AppCategory::NOT_SET), m_appCategoryHasBeenSet(false) { } Aws::String GetBlueprintsRequest::SerializePayload() const { JsonValue payload; if(m_includeInactiveHasBeenSet) { payload.WithBool("includeInactive", m_includeInactive); } if(m_pageTokenHasBeenSet) { payload.WithString("pageToken", m_pageToken); } if(m_appCategoryHasBeenSet) { payload.WithString("appCategory", AppCategoryMapper::GetNameForAppCategory(m_appCategory)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection GetBlueprintsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Lightsail_20161128.GetBlueprints")); return headers; }