PoolInformation.withAutoPoolSpecification(AutoPoolSpecification autoPoolSpecification) 方法
定义
Set if auto pool creation fails, the Batch service moves the job to a completed state, and the pool creation error is set in the job's scheduling error property. The Batch service manages the lifetime (both creation and, unless keepAlive is specified, deletion) of the auto pool. Any user actions that affect the lifetime of the auto pool while the job is active will result in unexpected behavior. You must specify either the pool ID or the auto pool specification, but not both.
public PoolInformation withAutoPoolSpecification(AutoPoolSpecification autoPoolSpecification)
参数
- autoPoolSpecification
- AutoPoolSpecification
the autoPoolSpecification value to set
返回
the PoolInformation object itself.