public CreateRepositoryResult withRepository(Repository repository) {
        setRepository(repository);
        return this;
    }
<p>
The repository that was created.
</p>

@param repository
       The repository that was created.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecrpublic/src/main/java/com/amazonaws/services/ecrpublic/model/CreateRepositoryResult.java