public CreateLocationObjectStorageRequest withSubdirectory(String subdirectory) {
        setSubdirectory(subdirectory);
        return this;
    }
<p>
Specifies the object prefix for your object storage server. If this is a source location, DataSync only copies
objects with this prefix. If this is a destination location, DataSync writes all objects with this prefix.
</p>

@param subdirectory
       Specifies the object prefix for your object storage server. If this is a source location, DataSync only
       copies objects with this prefix. If this is a destination location, DataSync writes all objects with this
       prefix.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/CreateLocationObjectStorageRequest.java