public S3CopyObjectOperation withTargetResource(String targetResource) {
        setTargetResource(targetResource);
        return this;
    }
<p>
Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation.
</p>
<ul>
<li>
<p>
<b>General purpose buckets</b> - For example, to copy objects to a general purpose bucket named
<code>destinationBucket</code>, set the <code>TargetResource</code> property to
<code>arn:aws:s3:::destinationBucket</code>.
</p>
</li>
<li>
<p>
<b>Directory buckets</b> - For example, to copy objects to a directory bucket named
<code>destinationBucket</code> in the Availability Zone; identified by the AZ ID <code>usw2-az1</code>, set the
<code>TargetResource</code> property to
<code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>
.
</p>
</li>
</ul>

@param targetResource
       Specifies the destination bucket Amazon Resource Name (ARN) for the batch copy operation.</p>
       <ul>
       <li>
       <p>
       <b>General purpose buckets</b> - For example, to copy objects to a general purpose bucket named
       <code>destinationBucket</code>, set the <code>TargetResource</code> property to
       <code>arn:aws:s3:::destinationBucket</code>.
       </p>
       </li>
       <li>
       <p>
       <b>Directory buckets</b> - For example, to copy objects to a directory bucket named
       <code>destinationBucket</code> in the Availability Zone; identified by the AZ ID <code>usw2-az1</code>,
       set the <code>TargetResource</code> property to
       <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>
       .
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/S3CopyObjectOperation.java