public ValidationErrorsEntry withErrorMessage(String errorMessage) {
        setErrorMessage(errorMessage);
        return this;
    }
<p>
Displays error messages if validation encounters problems during validation of the resource policy.
</p>

@param errorMessage
       Displays error messages if validation encounters problems during validation of the resource policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-secretsmanager/src/main/java/com/amazonaws/services/secretsmanager/model/ValidationErrorsEntry.java