import { getSerdePlugin } from "@aws-sdk/middleware-serde" ; import { HttpRequest as __HttpRequest , HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http" ; import { Command as $Command } from "@aws-sdk/smithy-client" ; import { FinalizeHandlerArguments , Handler , HandlerExecutionContext , HttpHandlerOptions as __HttpHandlerOptions , MetadataBearer as __MetadataBearer , MiddlewareStack , SerdeContext as __SerdeContext , } from "@aws-sdk/types" ; import { AmplifyClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes } from "../AmplifyClient" ; import { GetBranchRequest , GetBranchResult } from "../models/models_0" ; import { deserializeAws_restJson1GetBranchCommand , serializeAws_restJson1GetBranchCommand , } from "../protocols/Aws_restJson1" ; export interface GetBranchCommandInput extends GetBranchRequest { } export interface GetBranchCommandOutput extends GetBranchResult , __MetadataBearer { } example see GetBranchCommandInput for command's `input` shape.
 *  see GetBranchCommandOutput for command's `response` shape.
 *  see AmplifyClientResolvedConfig for AmplifyClient's `config` shape.
 *
  export class GetBranchCommand extends $Command < GetBranchCommandInput , GetBranchCommandOutput , AmplifyClientResolvedConfig > { constructor ( readonly input ) { super ( ) ; } internal resolveMiddleware ( clientStack , configuration , options ? ) { this . middlewareStack . use ( getSerdePlugin ( configuration , this . serialize , this . deserialize ) ) ; const stack = clientStack . concat ( this . middlewareStack ) ; const { logger } = configuration ; const clientName = "AmplifyClient" ; const commandName = "GetBranchCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : GetBranchRequest . filterSensitiveLog , outputFilterSensitiveLog : GetBranchResult . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_restJson1GetBranchCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_restJson1GetBranchCommand ( output , context ) ; } }