public EncryptionEntity withPublicKeyId(String publicKeyId) {
        setPublicKeyId(publicKeyId);
        return this;
    }
<p>
The public key associated with a set of field-level encryption patterns, to be used when encrypting the fields
that match the patterns.
</p>

@param publicKeyId
       The public key associated with a set of field-level encryption patterns, to be used when encrypting the
       fields that match the patterns.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/EncryptionEntity.java