public SourceS3Location withBucket(String bucket) {
        setBucket(bucket);
        return this;
    }
<p>
Name of the bucket.
</p>

@param bucket
       Name of the bucket.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationcostprofiler/src/main/java/com/amazonaws/services/applicationcostprofiler/model/SourceS3Location.java