public RepositorySyncDefinition withDirectory(String directory) {
        setDirectory(directory);
        return this;
    }
<p>
The directory in the repository.
</p>

@param directory
       The directory in the repository.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/RepositorySyncDefinition.java