/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::AppSync::Model; using namespace Aws::Utils::Stream; using namespace Aws::Utils; using namespace Aws; GetIntrospectionSchemaResult::GetIntrospectionSchemaResult() { } GetIntrospectionSchemaResult::GetIntrospectionSchemaResult(GetIntrospectionSchemaResult&& toMove) : m_schema(std::move(toMove.m_schema)), m_requestId(std::move(toMove.m_requestId)) { } GetIntrospectionSchemaResult& GetIntrospectionSchemaResult::operator=(GetIntrospectionSchemaResult&& toMove) { if(this == &toMove) { return *this; } m_schema = std::move(toMove.m_schema); m_requestId = std::move(toMove.m_requestId); return *this; } GetIntrospectionSchemaResult::GetIntrospectionSchemaResult(Aws::AmazonWebServiceResult&& result) { *this = std::move(result); } GetIntrospectionSchemaResult& GetIntrospectionSchemaResult::operator =(Aws::AmazonWebServiceResult&& result) { m_schema = result.TakeOwnershipOfPayload(); const auto& headers = result.GetHeaderValueCollection(); const auto& requestIdIter = headers.find("x-amzn-requestid"); if(requestIdIter != headers.end()) { m_requestId = requestIdIter->second; } return *this; }