public PackageDetails withErrorDetails(ErrorDetails errorDetails) {
        setErrorDetails(errorDetails);
        return this;
    }
<p>
Additional information if the package is in an error state. Null otherwise.
</p>

@param errorDetails
       Additional information if the package is in an error state. Null otherwise.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/PackageDetails.java