public PutBucketVersioningRequest withBucket(String bucket) {
        setBucket(bucket);
        return this;
    }
<p>
The S3 on Outposts bucket to set the versioning state for.
</p>

@param bucket
       The S3 on Outposts bucket to set the versioning state for.
@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/PutBucketVersioningRequest.java