public RepositorySyncDefinition withDirectory(String directory) {
        setDirectory(directory);
        return this;
    }
<p>
The configuration file for a repository sync definition. This value comes from creating or updating the
<code>config-file</code> field of a <code>sync-configuration</code>.
</p>

@param directory
       The configuration file for a repository sync definition. This value comes from creating or updating the
       <code>config-file</code> field of a <code>sync-configuration</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codestarconnections/src/main/java/com/amazonaws/services/codestarconnections/model/RepositorySyncDefinition.java