public CreatePullThroughCacheRuleResult withCredentialArn(String credentialArn) {
        setCredentialArn(credentialArn);
        return this;
    }
<p>
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull through
cache rule.
</p>

@param credentialArn
       The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret associated with the pull
       through cache rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/CreatePullThroughCacheRuleResult.java