public GetRepositoryPolicyResult withPolicyText(String policyText) {
        setPolicyText(policyText);
        return this;
    }
<p>
The repository policy text that's associated with the repository. The policy text will be in JSON format.
</p>

@param policyText
       The repository policy text that's associated with the repository. The policy text will be in JSON format.
@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/GetRepositoryPolicyResult.java