public DisassociateResourceResponseElement withError(AssociateResourceError error) {
        setError(error);
        return this;
    }
<p>
An <code>AssociateResourceError</code> that's shown if the resource disassociation fails.
</p>

@param error
       An <code>AssociateResourceError</code> that's shown if the resource disassociation fails.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-billingconductor/src/main/java/com/amazonaws/services/billingconductor/model/DisassociateResourceResponseElement.java