public void patchPool ( String poolId , StartTask startTask , Collection < CertificateReference > certificateReferences , Collection < ApplicationPackageReference > applicationPackageReferences , Collection < MetadataItem > metadata , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { PoolPatchOptions options = new PoolPatchOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; PoolPatchParameter param = new PoolPatchParameter ( ) . withStartTask ( startTask ) ; if ( metadata != null ) { param . withMetadata ( new LinkedList <> ( metadata ) ) ; } if ( applicationPackageReferences != null ) { param . withApplicationPackageReferences ( new LinkedList <> ( applicationPackageReferences ) ) ; } if ( certificateReferences != null ) { param . withCertificateReferences ( new LinkedList <> ( certificateReferences ) ) ; } this . parentBatchClient . protocolLayer ( ) . pools ( ) . patch ( poolId , param , options ) ; }
Updates the specified pool . This method only replaces the properties specified with non - null values .