public Repository withRepositoryArn(String repositoryArn) {
        setRepositoryArn(repositoryArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the <code>arn:aws:ecr</code>
namespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner,
repository namespace, and repository name. For example,
<code>arn:aws:ecr:region:012345678910:repository/test</code>.
</p>

@param repositoryArn
       The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the
       <code>arn:aws:ecr</code> namespace, followed by the region of the repository, Amazon Web Services account
       ID of the repository owner, repository namespace, and repository name. For example,
       <code>arn:aws:ecr:region:012345678910:repository/test</code>.
@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/Repository.java