public AutomaticTapeCreationRule withPoolId(String poolId) {
        setPoolId(poolId);
        return this;
    }
<p>
The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in the
Amazon S3 storage class that is associated with the pool. When you use your backup application to eject the tape,
the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to
the pool.
</p>

@param poolId
       The ID of the pool that you want to add your tape to for archiving. The tape in this pool is archived in
       the Amazon S3 storage class that is associated with the pool. When you use your backup application to
       eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep
       Archive) that corresponds to the pool.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/model/AutomaticTapeCreationRule.java