/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace AppSync { namespace Model { class GetIntrospectionSchemaResult { public: AWS_APPSYNC_API GetIntrospectionSchemaResult(); //We have to define these because Microsoft doesn't auto generate them AWS_APPSYNC_API GetIntrospectionSchemaResult(GetIntrospectionSchemaResult&&); AWS_APPSYNC_API GetIntrospectionSchemaResult& operator=(GetIntrospectionSchemaResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetIntrospectionSchemaResult(const GetIntrospectionSchemaResult&) = delete; GetIntrospectionSchemaResult& operator=(const GetIntrospectionSchemaResult&) = delete; AWS_APPSYNC_API GetIntrospectionSchemaResult(Aws::AmazonWebServiceResult&& result); AWS_APPSYNC_API GetIntrospectionSchemaResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The schema, in GraphQL Schema Definition Language (SDL) format.

For * more information, see the GraphQL SDL * documentation.

*/ inline Aws::IOStream& GetSchema() const { return m_schema.GetUnderlyingStream(); } /** *

The schema, in GraphQL Schema Definition Language (SDL) format.

For * more information, see the GraphQL SDL * documentation.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_schema = Aws::Utils::Stream::ResponseStream(body); } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetIntrospectionSchemaResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetIntrospectionSchemaResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetIntrospectionSchemaResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::Stream::ResponseStream m_schema; Aws::String m_requestId; }; } // namespace Model } // namespace AppSync } // namespace Aws