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 { ComprehendMedicalClientResolvedConfig , ServiceInputTypes , ServiceOutputTypes , } from "../ComprehendMedicalClient" ; import { StartEntitiesDetectionV2JobRequest , StartEntitiesDetectionV2JobResponse } from "../models/models_0" ; import { deserializeAws_json1_1StartEntitiesDetectionV2JobCommand , serializeAws_json1_1StartEntitiesDetectionV2JobCommand , } from "../protocols/Aws_json1_1" ; export interface StartEntitiesDetectionV2JobCommandInput extends StartEntitiesDetectionV2JobRequest { } export interface StartEntitiesDetectionV2JobCommandOutput extends StartEntitiesDetectionV2JobResponse , __MetadataBearer { } example see StartEntitiesDetectionV2JobCommandInput for command's `input` shape.
 *  see StartEntitiesDetectionV2JobCommandOutput for command's `response` shape.
 *  see ComprehendMedicalClientResolvedConfig for ComprehendMedicalClient's `config` shape.
 *
  export class StartEntitiesDetectionV2JobCommand extends $Command < StartEntitiesDetectionV2JobCommandInput , StartEntitiesDetectionV2JobCommandOutput , ComprehendMedicalClientResolvedConfig > { 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 = "ComprehendMedicalClient" ; const commandName = "StartEntitiesDetectionV2JobCommand" ; const handlerExecutionContext = { logger , clientName , commandName , inputFilterSensitiveLog : StartEntitiesDetectionV2JobRequest . filterSensitiveLog , outputFilterSensitiveLog : StartEntitiesDetectionV2JobResponse . filterSensitiveLog , } ; const { requestHandler } = configuration ; return stack . resolve ( ( request ) => requestHandler . handle ( request . request as __HttpRequest , options || { } ) , handlerExecutionContext ) ; } private serialize ( input , context ) { return serializeAws_json1_1StartEntitiesDetectionV2JobCommand ( input , context ) ; } private deserialize ( output , context ) { return deserializeAws_json1_1StartEntitiesDetectionV2JobCommand ( output , context ) ; } }