public AssetStatus withError(ErrorDetails error) {
        setError(error);
        return this;
    }
<p>
Contains associated error information, if any.
</p>

@param error
       Contains associated error information, if any.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotsitewise/src/main/java/com/amazonaws/services/iotsitewise/model/AssetStatus.java