public DirectConnectGatewayAttachment withStateChangeError(String stateChangeError) {
        setStateChangeError(stateChangeError);
        return this;
    }
<p>
The error message if the state of an object failed to advance.
</p>

@param stateChangeError
       The error message if the state of an object failed to advance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/DirectConnectGatewayAttachment.java