public CreatePackageVersionResult withErrorReason(String errorReason) {
        setErrorReason(errorReason);
        return this;
    }
<p>
Error reason for a package version failure during creation or update.
</p>

@param errorReason
       Error reason for a package version failure during creation or update.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/CreatePackageVersionResult.java